ALSA: hda/ca0132 - setup/cleanup streams
authorHsin-Yu Chao <hychao@chromium.org>
Wed, 19 Feb 2014 06:27:07 +0000 (14:27 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Feb 2014 06:50:16 +0000 (07:50 +0100)
commit28fba95087a7f3d107a3a6728aef7dbfaf3fd782
tree7d021605c1c56ab399120b495172e1d620440bbc
parent4913e0bf239dafee356bc7fab61806cc2518930c
ALSA: hda/ca0132 - setup/cleanup streams

When a HDMI stream is opened with the same stream tag
as a following opened stream to ca0132, audio will be
heard from two ports simultaneously.
Fix this issue by change to use snd_hda_codec_setup_stream
and snd_hda_codec_cleanup_stream instead, so that an
inactive stream can be marked as 'dirty' when found
with a conflict stream tag, and then get purified.

Signed-off-by: Hsin-Yu Chao <hychao@chromium.org>
Reviewed-by: Chih-Chung Chang <chihchung@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c