From 89f5a0a20071509ad7dd5f59dc35ca60df615e2a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 27 Sep 2011 17:33:45 +0200 Subject: [PATCH] --- yaml --- r: 270373 b: refs/heads/master c: 218264ae9ab3e12a785e1faeb2e15c8ae7172863 h: refs/heads/master i: 270371: e4361b8228374ce5cd856584c790712610145dcd v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_codec.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 28f083744cec..09ec3ecd003a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5ec02a1cfa9497f585721ec775c9b3e2783ff6fb +refs/heads/master: 218264ae9ab3e12a785e1faeb2e15c8ae7172863 diff --git a/trunk/sound/pci/hda/hda_codec.c b/trunk/sound/pci/hda/hda_codec.c index 6b611d50d03f..e3db19610411 100644 --- a/trunk/sound/pci/hda/hda_codec.c +++ b/trunk/sound/pci/hda/hda_codec.c @@ -1491,8 +1491,11 @@ static void really_cleanup_stream(struct hda_codec *codec, struct hda_cvt_setup *q) { hda_nid_t nid = q->nid; - snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CHANNEL_STREAMID, 0); - snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, 0); + if (q->stream_tag || q->channel_id) + snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_CHANNEL_STREAMID, 0); + if (q->format_id) + snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_STREAM_FORMAT, 0 +); memset(q, 0, sizeof(*q)); q->nid = nid; }