All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@linaro.org>
Subject: Re: [PATCH 1/5] ASoC: ad1836: Use params_width() rather than explicit memory format
Date: Thu, 09 Jan 2014 11:27:27 +0100	[thread overview]
Message-ID: <52CE798F.3040201@metafoo.de> (raw)
In-Reply-To: <1389207089-23741-1-git-send-email-broonie@kernel.org>

On 01/08/2014 07:51 PM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>

It would have been nice to have a least a small explanation why this is a
better approach. It might not be immediately obvious to somebody reading the
log later on.

> 
> Signed-off-by: Mark Brown <broonie@linaro.org>

All five patches in this series

Acked-by: Lars-Peter Clausen <lars@metafoo.de>

Thanks.

> ---
>  sound/soc/codecs/ad1836.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
> index d7c983862cf0..77f459868579 100644
> --- a/sound/soc/codecs/ad1836.c
> +++ b/sound/soc/codecs/ad1836.c
> @@ -168,15 +168,15 @@ static int ad1836_hw_params(struct snd_pcm_substream *substream,
>  	int word_len = 0;
>  
>  	/* bit size */
> -	switch (params_format(params)) {
> -	case SNDRV_PCM_FORMAT_S16_LE:
> +	switch (params_width(params)) {
> +	case 16:
>  		word_len = AD1836_WORD_LEN_16;
>  		break;
> -	case SNDRV_PCM_FORMAT_S20_3LE:
> +	case 20:
>  		word_len = AD1836_WORD_LEN_20;
>  		break;
> -	case SNDRV_PCM_FORMAT_S24_LE:
> -	case SNDRV_PCM_FORMAT_S32_LE:
> +	case 24:
> +	case 32:
>  		word_len = AD1836_WORD_LEN_24;
>  		break;
>  	default:
> 

  parent reply	other threads:[~2014-01-09 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08 18:51 [PATCH 1/5] ASoC: ad1836: Use params_width() rather than explicit memory format Mark Brown
2014-01-08 18:51 ` [PATCH 2/5] ASoC: ad193x: Use params_width() rather than " Mark Brown
2014-01-08 18:51 ` [PATCH 3/5] ASoC: adau1373: " Mark Brown
2014-01-08 18:51 ` [PATCH 4/5] ASoC: adau1701: " Mark Brown
2014-01-08 18:51 ` [PATCH 5/5] ASoC: adav80x: " Mark Brown
2014-01-09 10:27 ` Lars-Peter Clausen [this message]
2014-01-09 14:00   ` [PATCH 1/5] ASoC: ad1836: Use params_width() rather than explicit " 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=52CE798F.3040201@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=broonie@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linaro-kernel@lists.linaro.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 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.