Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@alsa-project.org
Cc: SUBHRANIL CHOUDHURY <subhra85@gmail.com>
Subject: Re: Additing a new Hardware Specific feature in the ALSA driver
Date: Tue, 23 Dec 2008 10:48:32 +1300	[thread overview]
Message-ID: <49500B30.8030201@audioscience.com> (raw)
In-Reply-To: <35fa40850812212118i479dcd57s35c3d50b7b8ab40d@mail.gmail.com>

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

  parent reply	other threads:[~2008-12-22 21:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-20 14:13 SUBHRANIL CHOUDHURY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49500B30.8030201@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=subhra85@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox