aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_analog.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r--sound/pci/hda/patch_analog.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index d58c32b5b433..af6b0035e2e8 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -301,6 +301,14 @@ static int ad198x_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo,
301 format, substream); 301 format, substream);
302} 302}
303 303
304static int ad198x_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo,
305 struct hda_codec *codec,
306 struct snd_pcm_substream *substream)
307{
308 struct ad198x_spec *spec = codec->spec;
309 return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout);
310}
311
304/* 312/*
305 * Analog capture 313 * Analog capture
306 */ 314 */
@@ -359,7 +367,8 @@ static struct hda_pcm_stream ad198x_pcm_digital_playback = {
359 .ops = { 367 .ops = {
360 .open = ad198x_dig_playback_pcm_open, 368 .open = ad198x_dig_playback_pcm_open,
361 .close = ad198x_dig_playback_pcm_close, 369 .close = ad198x_dig_playback_pcm_close,
362 .prepare = ad198x_dig_playback_pcm_prepare 370 .prepare = ad198x_dig_playback_pcm_prepare,
371 .cleanup = ad198x_dig_playback_pcm_cleanup
363 }, 372 },
364}; 373};
365 374
@@ -1923,8 +1932,8 @@ static hda_nid_t ad1988_capsrc_nids[3] = {
1923#define AD1988_SPDIF_OUT_HDMI 0x0b 1932#define AD1988_SPDIF_OUT_HDMI 0x0b
1924#define AD1988_SPDIF_IN 0x07 1933#define AD1988_SPDIF_IN 0x07
1925 1934
1926static hda_nid_t ad1989b_slave_dig_outs[2] = { 1935static hda_nid_t ad1989b_slave_dig_outs[] = {
1927 AD1988_SPDIF_OUT, AD1988_SPDIF_OUT_HDMI 1936 AD1988_SPDIF_OUT, AD1988_SPDIF_OUT_HDMI, 0
1928}; 1937};
1929 1938
1930static struct hda_input_mux ad1988_6stack_capture_source = { 1939static struct hda_input_mux ad1988_6stack_capture_source = {