diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-08-23 10:47:06 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-08-23 10:47:06 +0400 |
commit | d2f927d42a87b712946dee72a0b96b6b6c6aff1d (patch) | |
tree | 879a34767b24e65569d24cb19490a4bdcb1beace /sound/pci/hda/patch_hdmi.c | |
parent | 9c77b846ec8b4e0c7107dd7f820172462dc84a61 (diff) | |
parent | 6f0ef6ea1d11ef242de584e345355b0de756fcb2 (diff) | |
download | linux-d2f927d42a87b712946dee72a0b96b6b6c6aff1d.tar.xz |
Merge branch 'fix/hda' into for-linus
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 2bc0f07cf33f..afd6022a96a7 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -707,8 +707,6 @@ static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t nid, u32 stream_tag, int format) { struct hdmi_spec *spec = codec->spec; - int tag; - int fmt; int pinctl; int new_pinctl = 0; int i; @@ -745,24 +743,7 @@ static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t nid, return -EINVAL; } - tag = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_CONV, 0) >> 4; - fmt = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_STREAM_FORMAT, 0); - - snd_printdd("hdmi_setup_stream: " - "NID=0x%x, %sstream=0x%x, %sformat=0x%x\n", - nid, - tag == stream_tag ? "" : "new-", - stream_tag, - fmt == format ? "" : "new-", - format); - - if (tag != stream_tag) - snd_hda_codec_write(codec, nid, 0, - AC_VERB_SET_CHANNEL_STREAMID, - stream_tag << 4); - if (fmt != format) - snd_hda_codec_write(codec, nid, 0, - AC_VERB_SET_STREAM_FORMAT, format); + snd_hda_codec_setup_stream(codec, nid, stream_tag, 0, format); return 0; } |