From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: alsa-devel@alsa-project.org, Saeed Bishara <saeed@marvell.com>,
Martin Michlmayr <tbm@cyrius.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [patch 1/3] ASoC: add support for alc562[123] codecs
Date: Wed, 8 Sep 2010 11:08:27 +0100 [thread overview]
Message-ID: <20100908100826.GA1219@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <87d3spd6wn.fsf@lechat.rtp-net.org>
On Tue, Sep 07, 2010 at 03:23:20PM +0200, Arnaud Patard wrote:
> Mark Brown <broonie@opensource.wolfsonmicro.com> writes:
> > It looks like it'd be simpler to do something like:
> > { "HPL", NULL, "HP" },
> > { "HPR", NULL, "HP" },
> > then have the two ADC channels feed into the left and right channels of
> > the headphone while having the single switches feed into the HP widget
> > (which would be a NOPM dummy widget for routing purposes).
> hmm... I'm not sure to understand correctly. The two bits
> ALC5623_PWR_ADD2_?_HP_MIXER are for the HP mixers. There are 2 mixers
> but I'm doing like there's only 1 mixer due to the single bit inputs.
> Can you please give more details about your suggestion ?
Add on to the above things like this:
{ "HPL", "ADC Switch", "ADCL" },
{ "HPR", "ADC Switch", "ADCR" },
{ "HP", "AUX Switch", "Aux" },
so you get separate left/right control where you have stereo control
while still getting the mono control on the virtual mono HP widget.
> >> +#define ALC5623_ADD1_POWER_EN_5622 \
> >> + (ALC5623_PWR_ADD1_MAIN_I2S_EN | ALC5623_PWR_ADD1_MIC1_BIAS_EN \
> >> + | ALC5623_PWR_ADD1_SHORT_CURR_DET_EN \
> >> + | ALC5623_PWR_ADD1_HP_OUT_AMP)
> > Most of the stuff in here looks like it ought to be managed by DAPM?
> hmm... I thought it was easier/better done like this. Is it a hard
> requirement ?
Given that you're already defining widgets for things like the I2S (the
AIF widgets) it seems silly not to. For the micbias I'd say it's a hard
requirement since driving the micbias when not needed is potenially
harmful.
> > Since we now support out of line resume for ASoC devices (so we don't
> > hold up the rest of the system) it should be possible to just do this
> > stuff in the set_bias_level() function rather than faffing around with
> > delayed work like this. This is less racy.
> I was even wondering about removing that stuff but as it was there in
> original driver, I choose to keep it. WDYT ?
If you look at the current WM8753 driver you'll see that it's been
removed from there.
> >> + if (alc5623->add_ctrl) {
> >> + snd_soc_write(codec, ALC5623_ADD_CTRL_REG,
> >> + alc5623->add_ctrl);
> >> + }
> > Hrm?
> this register contains some board specific values and I didn't see how
> it could be handled except by using platform_data.
What are they?
> >> +#ifndef _INCLUDE_LINUX_ALC5623_H
> >> +#define _INCLUDE_LINUX_ALC5623_H
> >> +struct alc5623_platform_data {
> >> + unsigned int add_ctrl;
> >> + unsigned int jack_det_ctrl;
> >> +};
> > Some documentation explaining what these are would probably be useful.
> The names are really near to the names in the specs. As you need to look
> at the specs to have their values, I thought it would be enough.
So saying something like "Values to be written to the add_ctrl and
jack_det_ctrl registers" would cover it. Remember, if a software
engineer is picking up a preexisting driver they may never even look at
the datasheet.
next prev parent reply other threads:[~2010-09-08 10:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 7:01 [patch 0/3] ASoC: t5325 audio support Arnaud Patard
2010-09-07 7:01 ` [patch 1/3] ASoC: add support for alc562[123] codecs Arnaud Patard
2010-09-07 10:21 ` Mark Brown
2010-09-07 13:23 ` Arnaud Patard
2010-09-08 10:08 ` Mark Brown [this message]
2010-09-07 7:01 ` [patch 2/3] kirkwood: Add audio support to hp t5325 thin clients Arnaud Patard
2010-09-07 10:21 ` Mark Brown
2010-09-07 7:01 ` [patch 3/3] t5325: add audio support Arnaud Patard
2010-09-07 10:23 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2010-10-12 9:44 [patch 0/3] ALC562[123] / t5325 sound support - try 2 Arnaud Patard
2010-10-12 9:44 ` [patch 1/3] ASoC: add support for alc562[123] codecs Arnaud Patard
2010-10-12 17:16 ` Mark Brown
2010-10-13 17:58 ` Arnaud Patard
2010-10-13 18:03 ` Mark Brown
2010-10-13 18:22 ` Arnaud Patard
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=20100908100826.GA1219@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=arnaud.patard@rtp-net.org \
--cc=lrg@slimlogic.co.uk \
--cc=saeed@marvell.com \
--cc=tbm@cyrius.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 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.