diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-02-13 05:47:37 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-13 05:59:31 -0500 |
commit | 9b5f12e5a4029c1cd03784754687faef6d9e54fa (patch) | |
tree | 73797b6fefeb166b7f56e9d9159086c9a6edacc1 /sound/pci/hda/patch_realtek.c | |
parent | c8a1a8985d705339a346203f26d2d6ff137f84c9 (diff) |
ALSA: hda - Add proper cleanup for multiout-dig for ALC codecs
The recent patch_realtek.c contains the slave digital-out support
as well.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 2306cca1b69f..ef9b7ee34100 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2979,6 +2979,14 @@ static int alc880_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, | |||
2979 | stream_tag, format, substream); | 2979 | stream_tag, format, substream); |
2980 | } | 2980 | } |
2981 | 2981 | ||
2982 | static int alc880_dig_playback_pcm_cleanup(struct hda_pcm_stream *hinfo, | ||
2983 | struct hda_codec *codec, | ||
2984 | struct snd_pcm_substream *substream) | ||
2985 | { | ||
2986 | struct alc_spec *spec = codec->spec; | ||
2987 | return snd_hda_multi_out_dig_cleanup(codec, &spec->multiout); | ||
2988 | } | ||
2989 | |||
2982 | static int alc880_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, | 2990 | static int alc880_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, |
2983 | struct hda_codec *codec, | 2991 | struct hda_codec *codec, |
2984 | struct snd_pcm_substream *substream) | 2992 | struct snd_pcm_substream *substream) |
@@ -3062,7 +3070,8 @@ static struct hda_pcm_stream alc880_pcm_digital_playback = { | |||
3062 | .ops = { | 3070 | .ops = { |
3063 | .open = alc880_dig_playback_pcm_open, | 3071 | .open = alc880_dig_playback_pcm_open, |
3064 | .close = alc880_dig_playback_pcm_close, | 3072 | .close = alc880_dig_playback_pcm_close, |
3065 | .prepare = alc880_dig_playback_pcm_prepare | 3073 | .prepare = alc880_dig_playback_pcm_prepare, |
3074 | .cleanup = alc880_dig_playback_pcm_cleanup | ||
3066 | }, | 3075 | }, |
3067 | }; | 3076 | }; |
3068 | 3077 | ||