From: Liam Girdwood <lrg@ti.com>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH 1/3] ASoC: snd_soc_codec_{readable, writable}_register change default to true
Date: Mon, 29 Aug 2011 10:28:32 +0100 [thread overview]
Message-ID: <4E5B5BC0.4090007@ti.com> (raw)
In-Reply-To: <1314462254-11717-1-git-send-email-lars@metafoo.de>
On 27/08/11 17:24, Lars-Peter Clausen wrote:
> Change the default return value of snd_soc_codec_{readable,writable}_register to
> true when no codec specific callback for this function is given. Otherwise all
> registers of that codec will neither be readable nor writable, which is most
> certainly not what we want.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
> sound/soc/soc-core.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index fd173f6..4065d4e 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -1635,7 +1635,7 @@ int snd_soc_codec_readable_register(struct snd_soc_codec *codec,
> if (codec->readable_register)
> return codec->readable_register(codec, reg);
> else
> - return 0;
> + return 1;
> }
> EXPORT_SYMBOL_GPL(snd_soc_codec_readable_register);
>
> @@ -1653,7 +1653,7 @@ int snd_soc_codec_writable_register(struct snd_soc_codec *codec,
> if (codec->writable_register)
> return codec->writable_register(codec, reg);
> else
> - return 0;
> + return 1;
> }
> EXPORT_SYMBOL_GPL(snd_soc_codec_writable_register);
>
All
Acked-by: Liam Girdwood <lrg@ti.com>
next prev parent reply other threads:[~2011-08-29 9:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-27 16:24 [PATCH 1/3] ASoC: snd_soc_codec_{readable, writable}_register change default to true Lars-Peter Clausen
2011-08-27 16:24 ` [PATCH 2/3] ASoC: Fix register cache sync register_writable WARN_ONs Lars-Peter Clausen
2011-08-27 16:24 ` [PATCH 3/3] ASoC: soc_codec_reg_show use snd_soc_codec_readable_register Lars-Peter Clausen
2011-08-29 9:28 ` Liam Girdwood [this message]
2011-08-31 8:47 ` [PATCH 1/3] ASoC: snd_soc_codec_{readable, writable}_register change default to true Mark Brown
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=4E5B5BC0.4090007@ti.com \
--to=lrg@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lars@metafoo.de \
/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.