ALSA: hda/ca0132 - setup/cleanup streams
authorHsin-Yu Chao <hychao@chromium.org>
Wed, 19 Feb 2014 06:27:07 +0000 (14:27 +0800)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:42 +0000 (17:13 +0100)
commit35f73ed5d4715c385a7bcbb1ca642016b2660d05
tree8e1bd6b02064c94eb59994fd91417fe37d8c6a9e
parentb68faad19e60c00ae354fe41a8e2e03dfc799cb8
ALSA: hda/ca0132 - setup/cleanup streams

commit 28fba95087a7f3d107a3a6728aef7dbfaf3fd782 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/pci/hda/patch_ca0132.c