[alsa-devel] Additing a new Hardware Specific feature in the ALSA driver
Eliot Blennerhassett
linux at audioscience.com
Mon Dec 22 22:48:32 CET 2008
SUBHRANIL CHOUDHURY wrote:
> Eliot,
> Suppose i need to change the DAC gain, ADC gain of the audio codec and
> also disable and enable AGC of the codec i need to put some IOCTLs in
> the driver.
> So, in case of ALSA how do i implement those IOCTLs in the driver and
> also expose them to the application through the ALSA library.
No! For this kind of control You just need to implement standard alsa
controls in your driver.
BOOLEAN: AGC ON/OFF
INTEGER: DAC gain.
See "writing an ALSA driver" for details, and study the source of any
ALSA driver.
http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/c843.htm
--
Eliot
More information about the Alsa-devel
mailing list