[alsa-devel] ALSA hw sample rate conversion support

Clemens Ladisch clemens at ladisch.de
Wed Mar 30 15:27:59 CEST 2011


Aisheng Dong wrote:
> Does ALSA core support hw sample rate conversion now?

Yes; this has always been supported for chips like Emu10k1.

> I wonder if current ALSA core provide interface to support hw sample
> rate conversion?

In your driver, set the ..._CONTINUOUS flag in the rates field (see the
section "Hardware Description" in the doc), and in the hw_params
callback, program the SRC according to the selected rate.


Regards,
Clemens


More information about the Alsa-devel mailing list