public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frank Mandarino <fmandarino@endrelia.com>
To: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: Re: audio codec control
Date: Wed, 17 Oct 2007 08:57:09 -0400	[thread overview]
Message-ID: <471606A5.90807@endrelia.com> (raw)
In-Reply-To: <21590.1909782135$1192548826@news.gmane.org>

Pierre Savary wrote:
> Hello,
> 
> thank you for your help about my previous request concerning a problem in
> audio capture on CS42L51 codec. 
> 
> For your information, my problem came from a bad configuration of an ARM9
> register. As my register settings, the capture had to start with an event on
> RD pin, which is not connected with the codec on my board. Setting the START
> bits to 0 = "continuous" solved my problem.
> 
> Today, I need some more help to understand how your driver is used from an
> external application. Notably, how do you call the controls "Master Playback
> Volume", "Master Playback ZC Switch", "Capture Volume", etc, but also the
> "Input Select" and "Output Mixer", for example ?
> Shouldn't we modify the field at91_pcm_ops->ioctl (in
> /sound/soc/at91/at91-pcm.c), which is now set to the common function
> snd_pcm_lib_ioctl, in order to launch codec-related commands ?
> 
> Thank you in advance for your help.
> 
> 
> Sylvain
> 
> 
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
> 

Pierre and/or Sylvain,

I'm not sure how you call the controls from an external application.  I
have only used the alsa-utils amixer command to set the controls, and
alsactl to save the settings in /etc/asound.state and then restore them
at boot.

So you could look at the amixer source to see how they are called.

The available controls are normally defined in the ASoC codec driver,
and you shouldn't need to modify the at91_pcm_ops->ioctl pointer to
access them.

../fam
-- 
Frank Mandarino                                fmandarino(a)endrelia.com
Endrelia Technologies Inc.
Toronto, Ontario, Canada


           reply	other threads:[~2007-10-17 13:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <21590.1909782135$1192548826@news.gmane.org>]

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=471606A5.90807@endrelia.com \
    --to=fmandarino@endrelia.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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