ALSA: hda: hdmi: remove check for HBR caps
Ashok Mudithanapalli [Wed, 16 Sep 2015 05:42:14 +0000 (10:42 +0530)]
By assuming HW always suuports HBR, remove
the HBR caps check on pinwidget.

Bug 200135860

Change-Id: Id97ac8a9e8e96f2512637d191589d01aff3ac210
Signed-off-by: Ashok Mudithanapalli <ashokm@nvidia.com>
Reviewed-on: http://git-master/r/799963
(cherry picked from commit 510d429a7125685c6599da018d6c24224a903037)
Reviewed-on: http://git-master/r/802267
(cherry picked from commit 9171ff3c25d47c8f44bad8358fc3e533a73f7516)
Reviewed-on: http://git-master/r/806873
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

sound/pci/hda/patch_hdmi.c

index 7d89bf5..2bc719b 100644 (file)
@@ -1127,7 +1127,10 @@ static int hdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid,
        if (codec->vendor_id == 0x80862807)
                haswell_verify_pin_D0(codec, pin_nid);
 
-       if (snd_hda_query_pin_caps(codec, pin_nid) & AC_PINCAP_HBR) {
+       /* Assuming the HW supports HBR for Tegra12x, Tegra21x tegra HDMI */
+       if ((snd_hda_query_pin_caps(codec, pin_nid) & AC_PINCAP_HBR) ||
+               (codec->preset->id == 0x10de0028) ||
+               (codec->preset->id == 0x10de0029)) {
                pinctl = snd_hda_codec_read(codec, pin_nid, 0,
                                            AC_VERB_GET_PIN_WIDGET_CONTROL, 0);