From: Xiubo Li <Li.Xiubo@freescale.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com>, <lars@metafoo.de> Cc: <alsa-devel@alsa-project.org>, <linux-kernel@vger.kernel.org>, Xiubo Li <Li.Xiubo@freescale.com> Subject: [RFC][PATCH 3/3] ASoC: core: remove the default regmap I/O setting up from soc_probe_codec() Date: Tue, 4 Mar 2014 16:25:29 +0800 [thread overview] Message-ID: <1393921529-28985-4-git-send-email-Li.Xiubo@freescale.com> (raw) In-Reply-To: <1393921529-28985-1-git-send-email-Li.Xiubo@freescale.com> Since all the CODEC drivers has using the snd_soc_register_codec() to set up the CODEC I/O while the CODEC probing, so this could be removed entirely. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> --- sound/soc/soc-core.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 0fb502f..bc3a930 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1137,16 +1137,6 @@ static int soc_probe_codec(struct snd_soc_card *card, codec->dapm.idle_bias_off = driver->idle_bias_off; - if (!codec->write && dev_get_regmap(codec->dev, NULL)) { - /* Set the default I/O up try regmap */ - ret = snd_soc_codec_set_cache_io(codec, NULL); - if (ret < 0) { - dev_err(codec->dev, - "Failed to set cache I/O: %d\n", ret); - goto err_probe; - } - } - if (driver->probe) { ret = driver->probe(codec); if (ret < 0) { -- 1.8.4
WARNING: multiple messages have this Message-ID (diff)
From: Xiubo Li <Li.Xiubo@freescale.com> To: broonie@kernel.org, lgirdwood@gmail.com, lars@metafoo.de Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Xiubo Li <Li.Xiubo@freescale.com> Subject: [RFC][PATCH 3/3] ASoC: core: remove the default regmap I/O setting up from soc_probe_codec() Date: Tue, 4 Mar 2014 16:25:29 +0800 [thread overview] Message-ID: <1393921529-28985-4-git-send-email-Li.Xiubo@freescale.com> (raw) In-Reply-To: <1393921529-28985-1-git-send-email-Li.Xiubo@freescale.com> Since all the CODEC drivers has using the snd_soc_register_codec() to set up the CODEC I/O while the CODEC probing, so this could be removed entirely. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> --- sound/soc/soc-core.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 0fb502f..bc3a930 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1137,16 +1137,6 @@ static int soc_probe_codec(struct snd_soc_card *card, codec->dapm.idle_bias_off = driver->idle_bias_off; - if (!codec->write && dev_get_regmap(codec->dev, NULL)) { - /* Set the default I/O up try regmap */ - ret = snd_soc_codec_set_cache_io(codec, NULL); - if (ret < 0) { - dev_err(codec->dev, - "Failed to set cache I/O: %d\n", ret); - goto err_probe; - } - } - if (driver->probe) { ret = driver->probe(codec); if (ret < 0) { -- 1.8.4
next prev parent reply other threads:[~2014-03-04 9:32 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-04 8:25 [RFC][PATCH 0/3] Remove set_cache_io entirely from ASoC probe Xiubo Li 2014-03-04 8:25 ` Xiubo Li 2014-03-04 8:25 ` [RFC][PATCH 1/3] ASoC: core: Move the default regmap I/O setting to snd_soc_register_codec() Xiubo Li 2014-03-04 8:25 ` Xiubo Li 2014-03-04 9:50 ` [alsa-devel] " Lars-Peter Clausen 2014-03-05 1:32 ` Li.Xiubo 2014-03-04 8:25 ` [RFC][PATCH 2/3] ASoc: codec: remove the set_cache_io() entirely from CODEC ASoC probe Xiubo Li 2014-03-04 8:25 ` Xiubo Li 2014-03-04 8:25 ` Xiubo Li [this message] 2014-03-04 8:25 ` [RFC][PATCH 3/3] ASoC: core: remove the default regmap I/O setting up from soc_probe_codec() 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=1393921529-28985-4-git-send-email-Li.Xiubo@freescale.com \ --to=li.xiubo@freescale.com \ --cc=alsa-devel@alsa-project.org \ --cc=broonie@kernel.org \ --cc=lars@metafoo.de \ --cc=lgirdwood@gmail.com \ --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: linkBe 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.