Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1511831

Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage

From Kenneth Westfield <kwestfie@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage
Date 2016-10-29 18:20 +0200
Message-ID <sxEwq-pd-11@gated-at.bofh.it> (permalink)
References <sxhq9-1EL-3@gated-at.bofh.it> <sxhqa-1EL-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Oct 28, 2016 at 04:32:19PM +0100, Srinivas Kandagatla wrote:
> This patch fixes lpass-platform driver which was broken in v4.9-rc1.
> lpass_pcm_data data structure holds information specific to stream.
> Holding a single private pointer to it in global lpass_data
> will not work, because it would be overwritten by for each pcm instance.
> 
> This code was breaking playback when we have both playback and capture
> pcm streams, as playback settings are over written by capture settings.
> 
> Fix this by moving channel allocation logic out of pcm_new to pcm_open
> so that we can store the stream specific information private_data of
> snd_pcm_runtime.
> 
> Fixes: 6adcbdcd4b6e ("ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()")
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
>  sound/soc/qcom/lpass-platform.c | 151 ++++++++++++++++++----------------------
>  sound/soc/qcom/lpass.h          |   1 -
>  2 files changed, 67 insertions(+), 85 deletions(-)

After you address Mark's comments:

Acked-by: Kenneth Westfield <kwestfie@codeaurora.org>

-- 
Kenneth Westfield
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, 
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] ASoC: lpass-platform: Fixes and Cleanup. Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-10-28 17:40 +0200
  [PATCH 3/3] ASoC: lpass-cpu: add module licence and description Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-10-28 17:40 +0200
  [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-10-28 17:40 +0200
    Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage Mark Brown <broonie@kernel.org> - 2016-10-28 20:40 +0200
      Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-10-28 23:20 +0200
    Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage Kenneth Westfield <kwestfie@codeaurora.org> - 2016-10-29 18:20 +0200
  [PATCH 1/3] ASoC: lpass-platform: use dma_ch instead of rdma_ch/wrdma_ch Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-10-28 17:40 +0200
    Re: [PATCH 1/3] ASoC: lpass-platform: use dma_ch instead of  rdma_ch/wrdma_ch Kenneth Westfield <kwestfie@codeaurora.org> - 2016-10-29 18:20 +0200

csiph-web