* A small bug in soc-pcm.c
@ 2016-09-24 1:53 pengdonglin137
2016-09-24 17:56 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: pengdonglin137 @ 2016-09-24 1:53 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, alsa-devel, linux-kernel
Hi All,
I found a small bug in soc-pcm.c. For example, we can see kernel logs as follows:
[ 518.707401] SLIMBUS_0_TX: ASoC: trigger BE MSM8996 Media1 cmd 0 // should be SLIMBUS_0_TX other than MSM8996 Media1
[ 518.707414] MSM8996 Media1: ASoC: post trigger FE MSM8996 Media1 cmd 0
Here is the patch.
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 60d702f..8c037ef 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -1790,7 +1790,7 @@ int dpcm_be_dai_shutdown(struct snd_soc_pcm_runtime *fe, int stream)
continue;
dev_dbg(be->dev, "ASoC: close BE %s\n",
- dpcm->fe->dai_link->name);
+ dpcm->be->dai_link->name);
soc_pcm_close(be_substream);
be_substream->runtime = NULL;
@@ -1856,7 +1856,7 @@ int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream)
continue;
dev_dbg(be->dev, "ASoC: hw_free BE %s\n",
- dpcm->fe->dai_link->name);
+ dpcm->be->dai_link->name);
soc_pcm_hw_free(be_substream);
@@ -1934,7 +1934,7 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
continue;
dev_dbg(be->dev, "ASoC: hw_params BE %s\n",
- dpcm->fe->dai_link->name);
+ dpcm->be->dai_link->name);
ret = soc_pcm_hw_params(be_substream, &dpcm->hw_params);
if (ret < 0) {
@@ -2014,7 +2014,7 @@ static int dpcm_do_trigger(struct snd_soc_dpcm *dpcm,
int ret;
dev_dbg(dpcm->be->dev, "ASoC: trigger BE %s cmd %d\n",
- dpcm->fe->dai_link->name, cmd);
+ dpcm->be->dai_link->name, cmd);
ret = soc_pcm_trigger(substream, cmd);
if (ret < 0)
@@ -2229,7 +2229,7 @@ int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
continue;
dev_dbg(be->dev, "ASoC: prepare BE %s\n",
- dpcm->fe->dai_link->name);
+ dpcm->be->dai_link->name);
ret = soc_pcm_prepare(be_substream);
if (ret < 0) {
Thanks,
Donglin Peng
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: A small bug in soc-pcm.c
2016-09-24 1:53 A small bug in soc-pcm.c pengdonglin137
@ 2016-09-24 17:56 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2016-09-24 17:56 UTC (permalink / raw)
To: pengdonglin137; +Cc: lgirdwood, perex, tiwai, alsa-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 705 bytes --]
On Sat, Sep 24, 2016 at 09:53:18AM +0800, pengdonglin137 wrote:
> Hi All,
> I found a small bug in soc-pcm.c. For example, we can see kernel logs as follows:
>
> [ 518.707401] SLIMBUS_0_TX: ASoC: trigger BE MSM8996 Media1 cmd 0 // should be SLIMBUS_0_TX other than MSM8996 Media1
> [ 518.707414] MSM8996 Media1: ASoC: post trigger FE MSM8996 Media1 cmd 0
>
> Here is the patch.
>
> diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
> index 60d702f..8c037ef 100644
Please resend this patch using the process covered in the kernel in
Documentation/SubmittingPatches. In particular it is very important
that you provide a Signed-off-by - this is needed for licensing reasons.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-25 6:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-24 1:53 A small bug in soc-pcm.c pengdonglin137
2016-09-24 17:56 ` 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.