Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com>
Cc: alsa-devel@alsa-project.org, ichiro.suzuki@miraclelinux.com,
	broonie@kernel.org, shreyas.nc@intel.com, jeeja.kp@intel.com,
	yukie.kato@miraclelinux.com
Subject: Re: [PATCH] ASoC: Intel: Skylake: code cleanup for pin fixup limitation
Date: Fri, 10 Mar 2017 22:24:44 +0530	[thread overview]
Message-ID: <20170310165443.GW2843@localhost> (raw)
In-Reply-To: <20170308084702.20558-1-takashi.sakamoto@miraclelinux.com>

Hi Takashi-San,

On Wed, Mar 08, 2017 at 05:47:02PM +0900, Takashi Sakamoto wrote:
> As a commit 4cd9899f0d16 ("ASoC: Intel: Skylake: Add multiple pin
> formats") describes, 'fixups is applied to pin 0 only'. On the other
> hand, the commit left some codes as what they were. This might
> confuses readers.
> 
> This commit fixes the issue. This doesn't change driver behaviour at all.

Thanks, this also looks good. So,

Acked-by: Vinod Koul <vinod.koul@intel.com>
Tested-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>

> 
> Fixes: 4cd9899f0d16 ("ASoC: Intel: Skylake: Add multiple pin formats")
> Signed-off-by: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com>
> ---
>  sound/soc/intel/skylake/skl-topology.c | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
> index f38f8e6..8651359 100644
> --- a/sound/soc/intel/skylake/skl-topology.c
> +++ b/sound/soc/intel/skylake/skl-topology.c
> @@ -310,13 +310,11 @@ static void skl_tplg_update_buffer_size(struct skl_sst *ctx,
>  		multiplier = 5;
>  
>  	mcfg->ibs = DIV_ROUND_UP(in_fmt->s_freq, 1000) *
> -			(mcfg->in_fmt->channels) *
> -			(mcfg->in_fmt->bit_depth >> 3) *
> +			in_fmt->channels * (in_fmt->bit_depth >> 3) *
>  			multiplier;
>  
> -	mcfg->obs = DIV_ROUND_UP(mcfg->out_fmt->s_freq, 1000) *
> -			(mcfg->out_fmt->channels) *
> -			(mcfg->out_fmt->bit_depth >> 3) *
> +	mcfg->obs = DIV_ROUND_UP(out_fmt->s_freq, 1000) *
> +			out_fmt->channels * (out_fmt->bit_depth >> 3) *
>  			multiplier;
>  }
>  
> -- 
> 2.9.3
> 

-- 
~Vinod

  reply	other threads:[~2017-03-10 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08  8:47 [PATCH] ASoC: Intel: Skylake: code cleanup for pin fixup limitation Takashi Sakamoto
2017-03-10 16:54 ` Vinod Koul [this message]
2017-03-13 16:59 ` Applied "ASoC: Intel: Skylake: code cleanup for pin fixup limitation" to the asoc tree 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=20170310165443.GW2843@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ichiro.suzuki@miraclelinux.com \
    --cc=jeeja.kp@intel.com \
    --cc=shreyas.nc@intel.com \
    --cc=takashi.sakamoto@miraclelinux.com \
    --cc=yukie.kato@miraclelinux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox