From: Liam Girdwood <lrg@slimlogic.co.uk>
To: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
ext Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH] ASoC: tpa6130a2: Support for limiting gain
Date: Thu, 06 May 2010 15:03:53 +0100 [thread overview]
Message-ID: <1273154633.2992.40.camel@odin> (raw)
In-Reply-To: <201005061421.29408.peter.ujfalusi@nokia.com>
On Thu, 2010-05-06 at 14:21 +0300, Peter Ujfalusi wrote:
> On Thursday 06 May 2010 12:49:42 ext Mark Brown wrote:
> > On Thu, May 06, 2010 at 10:37:18AM +0300, Peter Ujfalusi wrote:
> > > Add support for platform dependent gain limiting on the
> > > tpa6130a2 (and tpa6140a2) Headset amplifier.
> > >
> > > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> >
> > Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>
> Thanks,
>
> > but we should really provide a generic implementation of this.
>
> Yeah, would be really useful.
> What I was wondering about is the cases when you have a codec + amp in a
> system..
> If we take for example twl4030 and the tpa6130 connected together:
> than we have 4 levels of gain control inside of twl, than one additional level
> on the tpa side.
> What would be nice is to somehow limit the whole chain, but it seams really
> complicated thing because of the big amount of combinations that you can
> actually achieve the same level at the output.
>
> So the gain-chain limitation is really holistic problem IMHO.
>
> But I guess the core could gain support for limiting individual volume controls.
> Some soc-limit-gain("kcontrol name", min, max)
> Than it goes through the controls on the card, finds the kcontrol, and fixers up
> the limits..
> So machine drivers can fix up the gain limits on their cards with ease, and no
> additional support from the codec/amp drivers are going to be needed
> Hmm, this would be neat!
>
> Sounds interesting, I might look at this ;)
Applied. We can always update this when core has this feature.
Thanks
Liam
next prev parent reply other threads:[~2010-05-06 14:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 7:37 [PATCH] ASoC: tpa6130a2: Support for limiting gain Peter Ujfalusi
2010-05-06 9:49 ` Mark Brown
2010-05-06 11:21 ` Peter Ujfalusi
2010-05-06 14:03 ` Liam Girdwood [this message]
2010-05-07 15:40 ` Mark Brown
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=1273154633.2992.40.camel@odin \
--to=lrg@slimlogic.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=peter.ujfalusi@nokia.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