Skip to contentSkip to conversation

ASoC: soc-pcm: fix incorrect channels and sample_bits wiping off

PATCH In review Nicolin Chen 2 participants 3 messages Nov 19, 2013 – Nov 20, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: soc-pcm: fix incorrect channels and sample_bits wiping off

This patch wipes off the corresponding channels and sample_bits for codec_dai.

---
@Mark Brown
Sir, I find the previous symmetry patch hasn't been merged into for-next. So are you willing to apply this one or let me refine the previous PATCH and resend that one?

 sound/soc/soc-pcm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-pcm.c +2 -2
index e1c5a00..60d9cfb 100644
@@ -452,8 +452,8 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
 
 	if (!codec_dai->active) {
 		codec_dai->rate = 0;
-		cpu_dai->channels = 0;
-		cpu_dai->sample_bits = 0;
+		codec_dai->channels = 0;
+		codec_dai->sample_bits = 0;
 	}
 
 	/* Muting the DAC suppresses artifacts caused during digital
Signature · 1 line
1.8.4
maintainer
#1 lore raw
Quoted 3 lines · Nicolin Chen

Sir, I find the previous symmetry patch hasn't been merged into for-next. So are you willing to apply this one or let me refine the previous PATCH and resend that one?

I applied this but squashed it down into the previous patch which is probably what the resend would've done.

#2 lore raw
Quoted 8 lines · Mark Brown
Quoted 3 lines · Nicolin Chen

Sir, I find the previous symmetry patch hasn't been merged into for-next. So are you willing to apply this one or let me refine the previous PATCH and resend that one?

I applied this but squashed it down into the previous patch which is probably what the resend would've done.

Exactly. Thank you, sir.
Nicolin Chen