From: "Li.Xiubo@freescale.com" <Li.Xiubo@freescale.com>
To: Mark Brown <broonie@kernel.org>
Cc: "lars@metafoo.de" <lars@metafoo.de>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCHv3 1/3] ASoC: codec: Simplify ASoC probe code.
Date: Mon, 3 Mar 2014 07:24:36 +0000 [thread overview]
Message-ID: <5bc570ec866541a68df5813ffbe3168e@BY2PR03MB505.namprd03.prod.outlook.com> (raw)
In-Reply-To: <20140303045952.GO2411@sirena.org.uk>
> > static int ak4535_probe(struct snd_soc_codec *codec)
> > {
> > - struct ak4535_priv *ak4535 = snd_soc_codec_get_drvdata(codec);
> > - int ret;
> > -
> > - codec->control_data = ak4535->regmap;
> > - ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP);
> > - if (ret < 0) {
> > - dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
> > - return ret;
> > - }
> > /* power on device */
> > ak4535_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
>
> Are you sure that the set_bias_level() call doesn't do anything with
> I/O? Can I suggest sending a patch that just does the drivers that only
> do set_cache_io() and nothing else in probe - that would be really quick
> and simple to fix.
>
> > - ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP);
> > - if (ret < 0) {
> > - dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
> > - return ret;
> > - }
> > -
> > /* Default to using ALC auto offset calibration mode. */
> > snd_soc_update_bits(codec, DA7213_ALC_CTRL1,
> > DA7213_ALC_CALIB_MODE_MAN, 0);
>
> This one will fail.
Sorry, I'm not very understand why will this fail ? Before the ASoC probe,
the ASoC core will set the I/O.
:)
next prev parent reply other threads:[~2014-03-03 7:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-03 2:42 [PATCHv3 0/3] Simplify the CODEC " Xiubo Li
2014-03-03 2:42 ` [PATCHv3 1/3] ASoC: codec: Simplify " Xiubo Li
2014-03-03 4:59 ` Mark Brown
2014-03-03 7:24 ` Li.Xiubo [this message]
2014-03-04 4:36 ` Mark Brown
2014-03-10 3:51 ` Li.Xiubo
2014-03-10 6:57 ` [alsa-devel] " Lars-Peter Clausen
2014-03-10 7:38 ` Mark Brown
2014-03-10 7:47 ` Lars-Peter Clausen
2014-03-10 7:56 ` Li.Xiubo
2014-03-10 14:54 ` Timur Tabi
2014-03-03 2:42 ` [PATCHv3 2/3] ASoC: io: New signature for snd_soc_codec_set_cache_io() Xiubo Li
2014-03-03 2:42 ` [PATCHv3 3/3] ASoC: core: Fix check before setting default I/O up try regmap Xiubo Li
-- strict thread matches above, loose matches on Subject: below --
2014-03-03 2:36 [PATCHv3 0/3] Simplify the CODEC ASoC probe code Xiubo Li
2014-03-03 2:36 ` [PATCHv3 1/3] ASoC: codec: Simplify " Xiubo Li
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=5bc570ec866541a68df5813ffbe3168e@BY2PR03MB505.namprd03.prod.outlook.com \
--to=li.xiubo@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lars@metafoo.de \
--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
all inboxes | Powered by JetHome®