alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Nicolin Chen <b42378@freescale.com>
To: broonie@kernel.org, lgirdwood@gmail.com
Cc: tiwai@suse.de, alsa-devel@alsa-project.org
Subject: [PATCH] ASoC: soc-pcm: fix incorrect channels and sample_bits wiping off
Date: Tue, 19 Nov 2013 17:57:54 +0800	[thread overview]
Message-ID: <1384855074-17596-1-git-send-email-b42378@freescale.com> (raw)

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

Signed-off-by: Nicolin Chen <b42378@freescale.com>
---
@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(-)

diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index e1c5a00..60d9cfb 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -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
-- 
1.8.4

             reply	other threads:[~2013-11-19  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19  9:57 Nicolin Chen [this message]
2013-11-19 19:11 ` [PATCH] ASoC: soc-pcm: fix incorrect channels and sample_bits wiping off Mark Brown
2013-11-20  2:06   ` Nicolin Chen

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=1384855074-17596-1-git-send-email-b42378@freescale.com \
    --to=b42378@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).