* Additing a new Hardware Specific feature in the ALSA driver @ 2008-12-20 13:54 SUBHRANIL CHOUDHURY 2008-12-21 21:01 ` Eliot Blennerhassett 0 siblings, 1 reply; 4+ messages in thread From: SUBHRANIL CHOUDHURY @ 2008-12-20 13:54 UTC (permalink / raw) To: alsa-devel Dear all, I am new to ALSA programming. Suppose if i have to add some hardware specific feature in the ALSA sound driver and expose to the application via the ALSA library, how can do that? Please reply if you have some inputs. Anything is welcome. Thanks in advance. Regards, Subhranil ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Additing a new Hardware Specific feature in the ALSA driver 2008-12-20 13:54 Additing a new Hardware Specific feature in the ALSA driver SUBHRANIL CHOUDHURY @ 2008-12-21 21:01 ` Eliot Blennerhassett [not found] ` <35fa40850812212118i479dcd57s35c3d50b7b8ab40d@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Eliot Blennerhassett @ 2008-12-21 21:01 UTC (permalink / raw) To: SUBHRANIL CHOUDHURY; +Cc: alsa-devel SUBHRANIL CHOUDHURY wrote: > Dear all, > I am new to ALSA programming. > Suppose if i have to add some hardware specific feature in the ALSA sound > driver and expose to the application via the ALSA library, how can do that? > > Please reply if you have some inputs. > Anything is welcome. > Thanks in advance. > Please give more information about the kind of feature. Standard alsa controls support arrays of integers, boolean, bytes or enumerated lists of strings as controls. Beyond that you can consider using the hwdep facility which basically gives you a special device file which can implement your special file operations eg ioctl regards Eliot ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <35fa40850812212118i479dcd57s35c3d50b7b8ab40d@mail.gmail.com>]
* Re: Additing a new Hardware Specific feature in the ALSA driver [not found] ` <35fa40850812212118i479dcd57s35c3d50b7b8ab40d@mail.gmail.com> @ 2008-12-22 21:48 ` Eliot Blennerhassett 0 siblings, 0 replies; 4+ messages in thread From: Eliot Blennerhassett @ 2008-12-22 21:48 UTC (permalink / raw) To: alsa-devel; +Cc: SUBHRANIL CHOUDHURY 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Additing a new Hardware Specific feature in the ALSA driver
@ 2008-12-20 14:13 SUBHRANIL CHOUDHURY
0 siblings, 0 replies; 4+ messages in thread
From: SUBHRANIL CHOUDHURY @ 2008-12-20 14:13 UTC (permalink / raw)
To: Mark Brown; +Cc: Takashi Iwai, alsa-devel
On Sat, Dec 20, 2008 at 7:41 PM, SUBHRANIL CHOUDHURY <subhra85@gmail.com>wrote:
>
>
> Dear all,
> I am new to ALSA programming.
> Suppose if i have to add some hardware specific feature in the ALSA sound
> driver and expose to the application via the ALSA library, how can do that?
>
> Please reply if you have some inputs.
> Anything is welcome.
> Thanks in advance.
>
> Regards,
> Subhranil
^ permalink raw reply [flat|nested] 4+ messages in threadend of thread, other threads:[~2008-12-22 21:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-20 13:54 Additing a new Hardware Specific feature in the ALSA driver SUBHRANIL CHOUDHURY
2008-12-21 21:01 ` Eliot Blennerhassett
[not found] ` <35fa40850812212118i479dcd57s35c3d50b7b8ab40d@mail.gmail.com>
2008-12-22 21:48 ` Eliot Blennerhassett
-- strict thread matches above, loose matches on Subject: below --
2008-12-20 14:13 SUBHRANIL CHOUDHURY
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.