Re: [alsa-devel] regarding setting of fragment size in usbaudio driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(please don't top-post)

Amit Nagal wrote:
> i used SNDCTL_DSP_GETBLKSIZE ioctl to find the fragment size of driver
> . i found it to be 16k .
> 
> 1) now if the application reads 4k data from userspace , read call
> will remain blocked for audio driver's fragment size usb data read (
> 16k)
>  or app_request_size(4k) ?

If, when read() is called, there is enough data in the buffer, it will
return that data and return immediately.  Otherwise, it will wait for
the hardware to reach the next period boundary (in OSS: fragment
boundary) and try again.

If you want to have shorter waits, use lower fragment sizes.


Regards,
Clemens

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux