All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid
@ 2021-11-30 12:47 Kai Vehmanen
  2021-11-30 12:47 ` [PATCH 2/2] ALSA: hda/hdmi: fix HDA codec entry table order for ADL-P Kai Vehmanen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kai Vehmanen @ 2021-11-30 12:47 UTC (permalink / raw)
  To: alsa-devel, tiwai; +Cc: Uma Shankar, kai.vehmanen

Add HD Audio PCI ID and HDMI codec vendor ID for Intel DG2.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 sound/pci/hda/hda_intel.c  | 12 +++++++++++-
 sound/pci/hda/patch_hdmi.c |  1 +
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 221afacbc7fd..b98d7975adea 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -335,7 +335,10 @@ enum {
 					((pci)->device == 0x0c0c) || \
 					((pci)->device == 0x0d0c) || \
 					((pci)->device == 0x160c) || \
-					((pci)->device == 0x490d))
+					((pci)->device == 0x490d) || \
+					((pci)->device == 0x4f90) || \
+					((pci)->device == 0x4f91) || \
+					((pci)->device == 0x4f92))
 
 #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
 
@@ -2477,6 +2480,13 @@ static const struct pci_device_id azx_ids[] = {
 	/* DG1 */
 	{ PCI_DEVICE(0x8086, 0x490d),
 	  .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
+	/* DG2 */
+	{ PCI_DEVICE(0x8086, 0x4f90),
+	  .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
+	{ PCI_DEVICE(0x8086, 0x4f91),
+	  .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
+	{ PCI_DEVICE(0x8086, 0x4f92),
+	  .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
 	/* Alderlake-S */
 	{ PCI_DEVICE(0x8086, 0x7ad0),
 	  .driver_data = AZX_DRIVER_SKL | AZX_DCAPS_INTEL_SKYLAKE},
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 65d2c5539919..98633d2684de 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -4382,6 +4382,7 @@ HDA_CODEC_ENTRY(0x80862814, "DG1 HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862815, "Alderlake HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x8086281c, "Alderlake-P HDMI", patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862816, "Rocketlake HDMI",	patch_i915_tgl_hdmi),
+HDA_CODEC_ENTRY(0x80862819, "DG2 HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x8086281a, "Jasperlake HDMI",	patch_i915_icl_hdmi),
 HDA_CODEC_ENTRY(0x8086281b, "Elkhartlake HDMI",	patch_i915_icl_hdmi),
 HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI",	patch_generic_hdmi),

base-commit: d7aca8d8f548570f650d9b1dfedf6902f56f2bce
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ALSA: hda/hdmi: fix HDA codec entry table order for ADL-P
  2021-11-30 12:47 [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Kai Vehmanen
@ 2021-11-30 12:47 ` Kai Vehmanen
  2021-11-30 14:08 ` [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Takashi Iwai
  2022-10-14 20:14 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Kai Vehmanen @ 2021-11-30 12:47 UTC (permalink / raw)
  To: alsa-devel, tiwai; +Cc: kai.vehmanen

Keep the HDA_CODEC_ENTRY entries sorted by the codec VID. ADL-P
is the only misplaced Intel HDMI codec.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 sound/pci/hda/patch_hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 98633d2684de..415701bd10ac 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -4380,11 +4380,11 @@ HDA_CODEC_ENTRY(0x8086280f, "Icelake HDMI",	patch_i915_icl_hdmi),
 HDA_CODEC_ENTRY(0x80862812, "Tigerlake HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862814, "DG1 HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862815, "Alderlake HDMI",	patch_i915_tgl_hdmi),
-HDA_CODEC_ENTRY(0x8086281c, "Alderlake-P HDMI", patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862816, "Rocketlake HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862819, "DG2 HDMI",	patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x8086281a, "Jasperlake HDMI",	patch_i915_icl_hdmi),
 HDA_CODEC_ENTRY(0x8086281b, "Elkhartlake HDMI",	patch_i915_icl_hdmi),
+HDA_CODEC_ENTRY(0x8086281c, "Alderlake-P HDMI", patch_i915_tgl_hdmi),
 HDA_CODEC_ENTRY(0x80862880, "CedarTrail HDMI",	patch_generic_hdmi),
 HDA_CODEC_ENTRY(0x80862882, "Valleyview2 HDMI",	patch_i915_byt_hdmi),
 HDA_CODEC_ENTRY(0x80862883, "Braswell HDMI",	patch_i915_byt_hdmi),
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid
  2021-11-30 12:47 [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Kai Vehmanen
  2021-11-30 12:47 ` [PATCH 2/2] ALSA: hda/hdmi: fix HDA codec entry table order for ADL-P Kai Vehmanen
@ 2021-11-30 14:08 ` Takashi Iwai
  2022-10-14 20:14 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2021-11-30 14:08 UTC (permalink / raw)
  To: Kai Vehmanen; +Cc: alsa-devel, Uma Shankar

On Tue, 30 Nov 2021 13:47:31 +0100,
Kai Vehmanen wrote:
> 
> Add HD Audio PCI ID and HDMI codec vendor ID for Intel DG2.
> 
> Reviewed-by: Uma Shankar <uma.shankar@intel.com>
> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

Thanks, applied both patches now.


Takashi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid
  2021-11-30 12:47 [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Kai Vehmanen
  2021-11-30 12:47 ` [PATCH 2/2] ALSA: hda/hdmi: fix HDA codec entry table order for ADL-P Kai Vehmanen
  2021-11-30 14:08 ` [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Takashi Iwai
@ 2022-10-14 20:14 ` Bjorn Helgaas
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2022-10-14 20:14 UTC (permalink / raw)
  To: Kai Vehmanen; +Cc: tiwai, alsa-devel, Uma Shankar

On Tue, Nov 30, 2021 at 02:47:31PM +0200, Kai Vehmanen wrote:
> Add HD Audio PCI ID and HDMI codec vendor ID for Intel DG2.
> 
> Reviewed-by: Uma Shankar <uma.shankar@intel.com>
> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
> ---
>  sound/pci/hda/hda_intel.c  | 12 +++++++++++-
>  sound/pci/hda/patch_hdmi.c |  1 +
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index 221afacbc7fd..b98d7975adea 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -335,7 +335,10 @@ enum {
>  					((pci)->device == 0x0c0c) || \
>  					((pci)->device == 0x0d0c) || \
>  					((pci)->device == 0x160c) || \
> -					((pci)->device == 0x490d))
> +					((pci)->device == 0x490d) || \
> +					((pci)->device == 0x4f90) || \
> +					((pci)->device == 0x4f91) || \
> +					((pci)->device == 0x4f92))

Would you consider adding these device IDs to the Linux PCI ID
database so lspci knows what they are?  Everything starting with
0x490d is missing.

There's an "Add item" link at the top of https://pci-ids.ucw.cz/read/PC/8086

Bjorn

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-14 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 12:47 [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Kai Vehmanen
2021-11-30 12:47 ` [PATCH 2/2] ALSA: hda/hdmi: fix HDA codec entry table order for ADL-P Kai Vehmanen
2021-11-30 14:08 ` [PATCH 1/2] ALSA: hda: Add Intel DG2 PCI ID and HDMI codec vid Takashi Iwai
2022-10-14 20:14 ` Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.