From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 2/5] ASoC: Add ADAU1361/ADAU1761 audio CODEC support
Date: Thu, 29 Aug 2013 10:02:47 +0200 [thread overview]
Message-ID: <521F0027.5010002@metafoo.de> (raw)
In-Reply-To: <20130828172400.GM10783@sirena.org.uk>
On 08/28/2013 07:24 PM, Mark Brown wrote:
> On Wed, Aug 28, 2013 at 05:20:10PM +0200, Lars-Peter Clausen wrote:
>
>> +static const char * const adau1761_bias_select_text[] = {
>> + "Normal operation", "Enhanced performance", "Power saving",
>> +};
>> +
>> +static const char * const adau1761_bias_select_extreme_text[] = {
>> + "Normal operation", "Extreme power saving", "Enhanced performance",
>> + "Power saving",
>> +};
>
> Not a requirement and perhaps it has no effect but these seem like they
> ought to integrate with the bias level configuration - since only the
> clocks seem to be managed by set_bias_level() the driver could
> presumably save a bit of power by dropping down to the minimal power
> consumption bias while the device is idle. This is what the STANDBY to
> ON transition is all about.
Hm, I'm not sure if it makes a difference since all the components have
individual power control bits that are managed by DAPM. I would expect the
bias current setting to only make a difference if the component is actually
powered up. I'll check with the designers, but I think this can still be
improved later on if it turns out that it saves power.
>
>> +static const struct snd_kcontrol_new adau1761_jack_detect_controls[] = {
>> + SOC_SINGLE("Jack Detect Switch", ADAU1761_DIGMIC_JACKDETECT, 4, 1, 0),
>> +};
>
> Why is this a user visible control and not using the jack detection
> framework support?
>
The CODEC unfortunately does not support reporting the jack state. All it
can do is mute the speaker output in hardware if something is plugged into
the headphone jack. The switch allows the users to control whether the
output should be auto-muted or not.
next prev parent reply other threads:[~2013-08-29 8:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 15:20 [PATCH 1/5] ASoC: Add ADAU1X61 and ADAU1X81 CODECs common code Lars-Peter Clausen
2013-08-28 15:20 ` [PATCH 2/5] ASoC: Add ADAU1361/ADAU1761 audio CODEC support Lars-Peter Clausen
2013-08-28 17:24 ` Mark Brown
2013-08-29 8:02 ` Lars-Peter Clausen [this message]
2013-08-29 9:53 ` Mark Brown
2013-08-28 15:20 ` [PATCH 3/5] ASoC: Add ADAU1381/ADAU1781 " Lars-Peter Clausen
2013-08-28 15:20 ` [PATCH 4/5] ASoC: Blackfin: ADAU1X61 eval board support Lars-Peter Clausen
2013-08-28 17:24 ` Mark Brown
2013-08-28 15:20 ` [PATCH 5/5] ASoC: Blackfin: ADAU1X81 " Lars-Peter Clausen
2013-08-28 16:59 ` [PATCH 1/5] ASoC: Add ADAU1X61 and ADAU1X81 CODECs common code Mark Brown
2013-08-29 7:58 ` Lars-Peter Clausen
2013-08-29 10:13 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2014-05-27 8:53 Lars-Peter Clausen
2014-05-27 8:53 ` [PATCH 2/5] ASoC: Add ADAU1361/ADAU1761 audio CODEC support Lars-Peter Clausen
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=521F0027.5010002@metafoo.de \
--to=lars@metafoo.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@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;
as well as URLs for NNTP newsgroup(s).