22 Dec
2008
22 Dec
'08
10:48 p.m.
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