summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-02-13 15:05:59 +0100
committerTakashi Iwai <tiwai@suse.de>2009-02-13 15:05:59 +0100
commit7c56c29a3bee36f71c7e37de88c9261d61e97e58 (patch)
treecb078aa101246eb975391e7c2f655cff857718f5 /sound/pci/hda/hda_codec.c
parentMerge branch 'fix/misc' into for-linus (diff)
parentALSA: hda - Add snd_hda_multi_out_dig_cleanup() (diff)
downloadlinux-7c56c29a3bee36f71c7e37de88c9261d61e97e58.tar.xz
linux-7c56c29a3bee36f71c7e37de88c9261d61e97e58.zip
Merge branch 'fix/hda' into for-linus
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 0b708134d12f..d03f99298be9 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -3088,6 +3088,16 @@ int snd_hda_multi_out_dig_prepare(struct hda_codec *codec,
}
EXPORT_SYMBOL_HDA(snd_hda_multi_out_dig_prepare);
+int snd_hda_multi_out_dig_cleanup(struct hda_codec *codec,
+ struct hda_multi_out *mout)
+{
+ mutex_lock(&codec->spdif_mutex);
+ cleanup_dig_out_stream(codec, mout->dig_out_nid);
+ mutex_unlock(&codec->spdif_mutex);
+ return 0;
+}
+EXPORT_SYMBOL_HDA(snd_hda_multi_out_dig_cleanup);
+
/*
* release the digital out
*/