Re: maximum tolerable sampling frequency difference for a driver

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

 



chri wrote:
> Let's say that the driver cannot set the exact sampling frequency
> asked via hwparms ...

This never happens.

The driver tells the ALSA framework what frequencies it supports, either
by setting individual bits in the .rates field, or by installing a
constraint by calling snd_pcm_hw_constraint_list() or some other of the
constraint functions when the device is opened.  ALSA then makes sure
that the driver always gets values in hw_params that meet these
constraints.

When an application requests a frequency that is not supported by the
device, it is the application that must decide whether the actual
frequency is acceptable.


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux