diff options
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 6dd4822dbec0..612d355b9e01 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -814,6 +814,17 @@ static int stac92xx_dig_playback_pcm_close(struct hda_pcm_stream *hinfo, | |||
814 | return snd_hda_multi_out_dig_close(codec, &spec->multiout); | 814 | return snd_hda_multi_out_dig_close(codec, &spec->multiout); |
815 | } | 815 | } |
816 | 816 | ||
817 | static int stac92xx_dig_playback_pcm_prepare(struct hda_pcm_stream *hinfo, | ||
818 | struct hda_codec *codec, | ||
819 | unsigned int stream_tag, | ||
820 | unsigned int format, | ||
821 | struct snd_pcm_substream *substream) | ||
822 | { | ||
823 | struct sigmatel_spec *spec = codec->spec; | ||
824 | return snd_hda_multi_out_dig_prepare(codec, &spec->multiout, | ||
825 | stream_tag, format, substream); | ||
826 | } | ||
827 | |||
817 | 828 | ||
818 | /* | 829 | /* |
819 | * Analog capture callbacks | 830 | * Analog capture callbacks |
@@ -848,7 +859,8 @@ static struct hda_pcm_stream stac92xx_pcm_digital_playback = { | |||
848 | /* NID is set in stac92xx_build_pcms */ | 859 | /* NID is set in stac92xx_build_pcms */ |
849 | .ops = { | 860 | .ops = { |
850 | .open = stac92xx_dig_playback_pcm_open, | 861 | .open = stac92xx_dig_playback_pcm_open, |
851 | .close = stac92xx_dig_playback_pcm_close | 862 | .close = stac92xx_dig_playback_pcm_close, |
863 | .prepare = stac92xx_dig_playback_pcm_prepare | ||
852 | }, | 864 | }, |
853 | }; | 865 | }; |
854 | 866 | ||