diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-06-18 10:14:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-25 17:07:24 -0400 |
commit | 27035caa37556524ef30311438cefaf1a80a5364 (patch) | |
tree | 8107d7922fa6474d415ebf15948698d2e2197d89 /sound | |
parent | 1d33b1e178d4d298150227227e079dd883f06f57 (diff) |
ALSA: hda - Cache the MUX selection for generic HDMI
commit bddee96b5d0db869f47b195fe48c614ca824203c upstream.
When a selection to a converter MUX is changed in hdmi_pcm_open(), it
should be cached so that the given connection can be restored properly
at PM resume. We need just to replace the corresponding
snd_hda_codec_write() call with snd_hda_codec_write_cache().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index e12f7a030c58..c018fb71cafb 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -1146,7 +1146,7 @@ static int hdmi_pcm_open(struct hda_pcm_stream *hinfo, | |||
1146 | per_cvt->assigned = 1; | 1146 | per_cvt->assigned = 1; |
1147 | hinfo->nid = per_cvt->cvt_nid; | 1147 | hinfo->nid = per_cvt->cvt_nid; |
1148 | 1148 | ||
1149 | snd_hda_codec_write(codec, per_pin->pin_nid, 0, | 1149 | snd_hda_codec_write_cache(codec, per_pin->pin_nid, 0, |
1150 | AC_VERB_SET_CONNECT_SEL, | 1150 | AC_VERB_SET_CONNECT_SEL, |
1151 | mux_idx); | 1151 | mux_idx); |
1152 | snd_hda_spdif_ctls_assign(codec, pin_idx, per_cvt->cvt_nid); | 1152 | snd_hda_spdif_ctls_assign(codec, pin_idx, per_cvt->cvt_nid); |