All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Li.Xiubo@freescale.com" <Li.Xiubo@freescale.com>
To: Mark Brown <broonie@kernel.org>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"kuninori.morimoto.gx@renesas.com"
	<kuninori.morimoto.gx@renesas.com>,
	"abrestic@chromium.org" <abrestic@chromium.org>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
	"timur@tabi.org" <timur@tabi.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"peter.ujfalusi@ti.com" <peter.ujfalusi@ti.com>,
	"mr.swami.reddy@ti.com" <mr.swami.reddy@ti.com>,
	"voice.shen@atmel.com" <voice.shen@atmel.com>,
	"mike.dyer@md-soft.co.uk" <mike.dyer@md-soft.co.uk>,
	"bardliao@realtek.com" <bardliao@realtek.com>,
	"mahaijuns@gmail.com" <mahaijuns@gmail.com>,
	"s.trumtrar@pengutronix.de" <s.trumtrar@pengutronix.de>,
	"rf@opensource.wolfsonmicro.com" <rf@opensource.wolfsonmicro.com>,
	"LW@KARO-electronics.de" <LW@KARO-electronics.de>,
	"swarren@nvidia.com" <swarren@nvidia.com>,
	"shc_work@mail.ru" <shc_work@mail.ru>
Subject: Re: [PATCH] ASoC: io: Clean up snd_soc_codec_set_cache_io()
Date: Thu, 27 Feb 2014 10:18:03 +0000	[thread overview]
Message-ID: <8475b38a0b7c48188bb81bd085245c93@BY2PR03MB505.namprd03.prod.outlook.com> (raw)
In-Reply-To: <20140227041140.GC9383@sirena.org.uk>

> Subject: Re: [PATCH] ASoC: io: Clean up snd_soc_codec_set_cache_io()
> 
> On Thu, Feb 27, 2014 at 09:37:45AM +0800, Xiubo Li wrote:
> 
> > I'm also thinking could we just discard snd_soc_codec_set_cache_io()
> > calling from each individual driver to simply the code? And just bind
> > it to devm_regmap_init_i2c() and devm_regmap_init_spi()...
> 
> > Is there any other limitations for snd_soc_codec_set_cache_io() usage?
> 
> That's the goal overall, I'm not sure it's worth going through and
> changing the signature of the function and then later going through and
> merging it, it's just too much churn.  The main thing we need to do in
> order to do that is to make sure nothing is relying on specific
> sequencing during startup, probably by providing a way to manually set
> the regmap pointer in the main device probe function rather than in the
> ASoC one.

Yes, that's also what I'm thinking about.

And for most CODEC drivers which the REGMAP is used, the soc_probe_codec()
will do the stuff work of snd_soc_codec_set_cache_io(), which the CODEC's 
ASoC probe will do too, and almost at the same time.

Then the CODEC drivers stuff work of this is redundant, so we could just
discard the snd_soc_codec_set_cache_io() for the CODEC drivers to simplify
the code.

I'll send one RFC patch of this, and please ignore this patch.

Thanks,

--
Best Regards,
Xiubo 

      reply	other threads:[~2014-02-27 10:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27  1:37 [PATCH] ASoC: io: Clean up snd_soc_codec_set_cache_io() Xiubo Li
2014-02-27  1:37 ` Xiubo Li
2014-02-27  4:11 ` Mark Brown
2014-02-27 10:18   ` Li.Xiubo [this message]

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=8475b38a0b7c48188bb81bd085245c93@BY2PR03MB505.namprd03.prod.outlook.com \
    --to=li.xiubo@freescale.com \
    --cc=LW@KARO-electronics.de \
    --cc=abrestic@chromium.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=bardliao@realtek.com \
    --cc=broonie@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mahaijuns@gmail.com \
    --cc=mike.dyer@md-soft.co.uk \
    --cc=mr.swami.reddy@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=rf@opensource.wolfsonmicro.com \
    --cc=s.trumtrar@pengutronix.de \
    --cc=shc_work@mail.ru \
    --cc=swarren@nvidia.com \
    --cc=timur@tabi.org \
    --cc=viresh.kumar@linaro.org \
    --cc=voice.shen@atmel.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.