All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sound: codecs: pcm1792x: clean function exit
@ 2016-01-14  9:00 Raphael Poggi
  2016-01-27 12:08 ` Raphaël Poggi
  0 siblings, 1 reply; 3+ messages in thread
From: Raphael Poggi @ 2016-01-14  9:00 UTC (permalink / raw)
  To: broonie, lgirdwood; +Cc: alsa-devel, michael, Raphael Poggi

Signed-off-by: Raphael Poggi <poggi.raph@gmail.com>
---
 sound/soc/codecs/pcm179x.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
index a56c7b7..e04d13c 100644
--- a/sound/soc/codecs/pcm179x.c
+++ b/sound/soc/codecs/pcm179x.c
@@ -91,14 +91,9 @@ static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute)
 {
 	struct snd_soc_codec *codec = dai->codec;
 	struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec);
-	int ret;
 
-	ret = regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE,
+	return regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE,
 				 PCM179X_MUTE_MASK, !!mute);
-	if (ret < 0)
-		return ret;
-
-	return 0;
 }
 
 static int pcm179x_hw_params(struct snd_pcm_substream *substream,
@@ -107,7 +102,7 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream,
 {
 	struct snd_soc_codec *codec = dai->codec;
 	struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec);
-	int val = 0, ret;
+	int val = 0;
 
 	priv->rate = params_rate(params);
 
@@ -145,12 +140,8 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream,
 
 	val = val << PCM179X_FMT_SHIFT | PCM179X_ATLD_ENABLE;
 
-	ret = regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL,
+	return regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL,
 				 PCM179X_FMT_MASK | PCM179X_ATLD_ENABLE, val);
-	if (ret < 0)
-		return ret;
-
-	return 0;
 }
 
 static const struct snd_soc_dai_ops pcm179x_dai_ops = {
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sound: codecs: pcm1792x: clean function exit
  2016-01-14  9:00 [PATCH] sound: codecs: pcm1792x: clean function exit Raphael Poggi
@ 2016-01-27 12:08 ` Raphaël Poggi
  2016-01-28 23:59   ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Raphaël Poggi @ 2016-01-27 12:08 UTC (permalink / raw)
  To: broonie, lgirdwood; +Cc: alsa-devel, Michael Trimarchi, Raphael Poggi

ping ?

2016-01-14 10:00 GMT+01:00 Raphael Poggi <poggi.raph@gmail.com>:
> Signed-off-by: Raphael Poggi <poggi.raph@gmail.com>
> ---
>  sound/soc/codecs/pcm179x.c | 15 +++------------
>  1 file changed, 3 insertions(+), 12 deletions(-)
>
> diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
> index a56c7b7..e04d13c 100644
> --- a/sound/soc/codecs/pcm179x.c
> +++ b/sound/soc/codecs/pcm179x.c
> @@ -91,14 +91,9 @@ static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute)
>  {
>         struct snd_soc_codec *codec = dai->codec;
>         struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec);
> -       int ret;
>
> -       ret = regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE,
> +       return regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE,
>                                  PCM179X_MUTE_MASK, !!mute);
> -       if (ret < 0)
> -               return ret;
> -
> -       return 0;
>  }
>
>  static int pcm179x_hw_params(struct snd_pcm_substream *substream,
> @@ -107,7 +102,7 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream,
>  {
>         struct snd_soc_codec *codec = dai->codec;
>         struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec);
> -       int val = 0, ret;
> +       int val = 0;
>
>         priv->rate = params_rate(params);
>
> @@ -145,12 +140,8 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream,
>
>         val = val << PCM179X_FMT_SHIFT | PCM179X_ATLD_ENABLE;
>
> -       ret = regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL,
> +       return regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL,
>                                  PCM179X_FMT_MASK | PCM179X_ATLD_ENABLE, val);
> -       if (ret < 0)
> -               return ret;
> -
> -       return 0;
>  }
>
>  static const struct snd_soc_dai_ops pcm179x_dai_ops = {
> --
> 2.1.0
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sound: codecs: pcm1792x: clean function exit
  2016-01-27 12:08 ` Raphaël Poggi
@ 2016-01-28 23:59   ` Mark Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-01-28 23:59 UTC (permalink / raw)
  To: Raphaël Poggi; +Cc: alsa-devel, Michael Trimarchi, lgirdwood


[-- Attachment #1.1: Type: text/plain, Size: 565 bytes --]

On Wed, Jan 27, 2016 at 01:08:04PM +0100, Raphaël Poggi wrote:
> ping ?
> 
> 2016-01-14 10:00 GMT+01:00 Raphael Poggi <poggi.raph@gmail.com>:

Please allow a reasonable time for review (especially during the merge
window), people get busy, go on holiday or otherwise don't have time to
answer immediately.

Please also don't top post, reply in line with needed context.  This
allows readers to readily follow the flow of conversation and understand
what you are talking about and also helps ensure that everything in the
discussion is being addressed.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-28 23:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14  9:00 [PATCH] sound: codecs: pcm1792x: clean function exit Raphael Poggi
2016-01-27 12:08 ` Raphaël Poggi
2016-01-28 23:59   ` Mark Brown

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.