ALSA: hda - Add vendor id for Cannonlake HDMI codec
PATCH 1/1 ALSA: hda - Add vendor id for Cannonlake HDMI codec
Cannonlake HDMI codec has the same nid as Geminilake. This adds the codec entry for it.
Signed-off-by Guneshwor Singh <[email protected]>
--- sound/pci/hda/patch_hdmi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
sound/pci/hda/patch_hdmi.c +4 -2
@@ -55,10 +55,11 @@ MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info");#define is_kabylake (codec) ((codec)->core.vendor_id == 0x8086280b)#define is_geminilake (codec) (((codec)->core.vendor_id == 0x8086280d) || \ ((codec)->core.vendor_id == 0x80862800)) +#define is_cannonlake (codec) ((codec)->core.vendor_id == 0x8086280c)#define is_haswell_plus (codec) (is_haswell(codec) || is_broadwell(codec) \ || is_skylake(codec) || is_broxton(codec) \ - || is_kabylake(codec)) || is_geminilake(codec) - + || is_kabylake(codec)) || is_geminilake(codec) \ + || is_cannonlake(codec)#define is_valleyview (codec) ((codec)->core.vendor_id == 0x80862882)#define is_cherryview (codec) ((codec)->core.vendor_id == 0x80862883)#define is_valleyview_plus (codec) (is_valleyview(codec) || is_cherryview(codec))
@@ -3841,6 +3842,7 @@ HDA_CODEC_ENTRY(0x80862808, "Broadwell HDMI", patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x80862809 ,"Skylake HDMI" , patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x8086280a ,"Broxton HDMI" , patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x8086280b ,"Kabylake HDMI" , patch_i915_hsw_hdmi), +HDA_CODEC_ENTRY (0x8086280c ,"Cannonlake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x8086280d ,"Geminilake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x80862800 ,"Geminilake HDMI" , patch_i915_glk_hdmi), HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI", patch_generic_hdmi),
Signature · 1 line
2.15.1
Takashi Iwai
AppliedQuoted 5 lines · Guneshwor Singh
Cannonlake HDMI codec has the same nid as Geminilake. This adds the codec entry for it.
Signed-off-by Guneshwor Singh <[email protected]>
Applied, thanks.
Takashi
Quoted 2 lines · Guneshwor Singh
Cannonlake HDMI codec has the same nid as Geminilake. This adds the codec entry for it.
CNL and GLK share the same vendor nid not the vendor id. You may update the subject and commit message.
Regards,
Subhransu
Quoted 35 lines
Signed-off-by Guneshwor Singh <[email protected]>--- sound/pci/hda/patch_hdmi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)sound/pci/hda/patch_hdmi.c +4
-2@@ -55,10 +55,11 @@ MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info");#define is_kabylake (codec) ((codec)->core.vendor_id == 0x8086280b)#define is_geminilake (codec) (((codec)->core.vendor_id == 0x8086280d) || \ ((codec)->core.vendor_id == 0x80862800)) +#define is_cannonlake (codec) ((codec)->core.vendor_id == 0x8086280c)#define is_haswell_plus (codec) (is_haswell(codec) || is_broadwell(codec) \ || is_skylake(codec) || is_broxton(codec) \ - || is_kabylake(codec)) || is_geminilake(codec) - + || is_kabylake(codec)) || is_geminilake(codec) \ + || is_cannonlake(codec)#define is_valleyview (codec) ((codec)->core.vendor_id == 0x80862882)#define is_cherryview (codec) ((codec)->core.vendor_id == 0x80862883)#define is_valleyview_plus (codec) (is_valleyview(codec) || is_cherryview(codec))@@ -3841,6 +3842,7 @@ HDA_CODEC_ENTRY(0x80862808, "Broadwell HDMI", patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x80862809 ,"Skylake HDMI" , patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x8086280a ,"Broxton HDMI" , patch_i915_hsw_hdmi),HDA_CODEC_ENTRY (0x8086280b ,"Kabylake HDMI" , patch_i915_hsw_hdmi), +HDA_CODEC_ENTRY (0x8086280c ,"Cannonlake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x8086280d ,"Geminilake HDMI" , patch_i915_glk_hdmi),HDA_CODEC_ENTRY (0x80862800 ,"Geminilake HDMI" , patch_i915_glk_hdmi), HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI", patch_generic_hdmi),Signature · 1 line
2.15.1
Quoted 7 lines · Subhransu S. Prusty
Quoted 2 lines · Guneshwor Singh
Cannonlake HDMI codec has the same nid as Geminilake. This adds the codec entry for it.
CNL and GLK share the same vendor nid not the vendor id. You may update the subject and commit message.
It's adding new vendor id and uses vendor nid from GLK's. So commit msg seems fine.