Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: hda/realtek: Add quirk for ASUS ROG laptops
@ 2023-06-30  4:31 Luke D. Jones
  2023-06-30  4:31 ` [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P Luke D. Jones
  2023-06-30  4:31 ` [PATCH 2/2] ALSA: hda/realtek: Add quirk for ASUS ROG GA402X Luke D. Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Luke D. Jones @ 2023-06-30  4:31 UTC (permalink / raw)
  To: tiwai
  Cc: perex, sbinding, andy.chi, tangmeng, alsa-devel, linux-kernel,
	Luke D. Jones

Adds two quirks for each GX650P and GA402X laptop with the I2C connected Cirrus amp.

The added quirk chain is similar to the one added for ROG Ally but with the verbs
removed. It is likely that the ROG Ally quirk will move to this set in future.

Luke D. Jones (2):
  ALSA: hda/realtek: Add quirk for ASUS ROG GX650P
  ALSA: hda/realtek: Add quirk for ASUS ROG GA402X

 sound/pci/hda/patch_realtek.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

-- 
2.41.0


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

* [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P
  2023-06-30  4:31 [PATCH 0/2] ALSA: hda/realtek: Add quirk for ASUS ROG laptops Luke D. Jones
@ 2023-06-30  4:31 ` Luke D. Jones
  2023-06-30  8:29   ` Takashi Iwai
  2023-06-30  4:31 ` [PATCH 2/2] ALSA: hda/realtek: Add quirk for ASUS ROG GA402X Luke D. Jones
  1 sibling, 1 reply; 5+ messages in thread
From: Luke D. Jones @ 2023-06-30  4:31 UTC (permalink / raw)
  To: tiwai
  Cc: perex, sbinding, andy.chi, tangmeng, alsa-devel, linux-kernel,
	Luke D. Jones

Adds the required quirk to enable the Cirrus amp and correct pins
on the ASUS ROG GV601V series.

While this works if the related _DSD properties are made available, these
aren't included in the ACPI of these laptops (yet).

Signed-off-by: Luke D. Jones <luke@ljones.dev>
---
 sound/pci/hda/patch_realtek.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index dabfdecece26..1c26f24b1246 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5883,7 +5883,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
 		struct alc_spec *spec = codec->spec;
 		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
 		alc255_set_default_jack_type(codec);
-	} 
+	}
 	else
 		alc_fixup_headset_mode(codec, fix, action);
 }
@@ -7065,6 +7065,8 @@ enum {
 	ALC285_FIXUP_SPEAKER2_TO_DAC1,
 	ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1,
 	ALC285_FIXUP_ASUS_HEADSET_MIC,
+	ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1,
+	ALC285_FIXUP_ASUS_I2C_HEADSET_MIC,
 	ALC280_FIXUP_HP_HEADSET_MIC,
 	ALC221_FIXUP_HP_FRONT_MIC,
 	ALC292_FIXUP_TPT460,
@@ -8051,6 +8053,22 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1
 	},
+	[ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc285_fixup_speaker2_to_dac1,
+		.chained = true,
+		.chain_id = ALC287_FIXUP_CS35L41_I2C_2
+	},
+	[ALC285_FIXUP_ASUS_I2C_HEADSET_MIC] = {
+		.type = HDA_FIXUP_PINS,
+		.v.pins = (const struct hda_pintbl[]) {
+			{ 0x19, 0x03a11050 },
+			{ 0x1b, 0x03a11c30 },
+			{ }
+		},
+		.chained = true,
+		.chain_id = ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1
+	},
 	[ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER] = {
 		.type = HDA_FIXUP_PINS,
 		.v.pins = (const struct hda_pintbl[]) {
@@ -9525,6 +9543,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
+	SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650P", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1493, "ASUS GV601V", ALC285_FIXUP_ASUS_HEADSET_MIC),
-- 
2.41.0


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

* [PATCH 2/2] ALSA: hda/realtek: Add quirk for ASUS ROG GA402X
  2023-06-30  4:31 [PATCH 0/2] ALSA: hda/realtek: Add quirk for ASUS ROG laptops Luke D. Jones
  2023-06-30  4:31 ` [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P Luke D. Jones
@ 2023-06-30  4:31 ` Luke D. Jones
  1 sibling, 0 replies; 5+ messages in thread
From: Luke D. Jones @ 2023-06-30  4:31 UTC (permalink / raw)
  To: tiwai
  Cc: perex, sbinding, andy.chi, tangmeng, alsa-devel, linux-kernel,
	Luke D. Jones

Adds the required quirk to enable the Cirrus amp and correct pins
on the ASUS ROG GV601V series.

While this works if the related _DSD properties are made available, these
aren't included in the ACPI of these laptops (yet).

Signed-off-by: Luke D. Jones <luke@ljones.dev>
---
 sound/pci/hda/patch_realtek.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 1c26f24b1246..5b7df324e8b4 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -9544,6 +9544,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
 	SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650P", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1043, 0x1463, "Asus GA402X", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1493, "ASUS GV601V", ALC285_FIXUP_ASUS_HEADSET_MIC),
-- 
2.41.0


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

* Re: [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P
  2023-06-30  4:31 ` [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P Luke D. Jones
@ 2023-06-30  8:29   ` Takashi Iwai
  2023-06-30 23:54     ` Luke Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2023-06-30  8:29 UTC (permalink / raw)
  To: Luke D. Jones
  Cc: tiwai, perex, sbinding, andy.chi, tangmeng, alsa-devel,
	linux-kernel

On Fri, 30 Jun 2023 06:31:05 +0200,
Luke D. Jones wrote:
> 
> --- a/sound/pci/hda/patch_realtek.c
> +++ b/sound/pci/hda/patch_realtek.c
> @@ -5883,7 +5883,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
>  		struct alc_spec *spec = codec->spec;
>  		spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
>  		alc255_set_default_jack_type(codec);
> -	} 
> +	}
>  	else
>  		alc_fixup_headset_mode(codec, fix, action);
>  }

This change looks irrelevant.  Could you drop it?
If it needs to be fixed, put in another cleanup patch.


thanks,

Takashi

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

* Re: [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P
  2023-06-30  8:29   ` Takashi Iwai
@ 2023-06-30 23:54     ` Luke Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Luke Jones @ 2023-06-30 23:54 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: tiwai, perex, sbinding, andy.chi, tangmeng, alsa-devel,
	linux-kernel

On Fri, 2023-06-30 at 10:29 +0200, Takashi Iwai wrote:
> On Fri, 30 Jun 2023 06:31:05 +0200,
> Luke D. Jones wrote:
> > 
> > --- a/sound/pci/hda/patch_realtek.c
> > +++ b/sound/pci/hda/patch_realtek.c
> > @@ -5883,7 +5883,7 @@ static void
> > alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec,
> >                 struct alc_spec *spec = codec->spec;
> >                 spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
> >                 alc255_set_default_jack_type(codec);
> > -       } 
> > +       }
> >         else
> >                 alc_fixup_headset_mode(codec, fix, action);
> >  }
> 
> This change looks irrelevant.  Could you drop it?
> If it needs to be fixed, put in another cleanup patch.
> 
> 
> thanks,
> 
> Takashi

Looks like it was a whitespace thing that got caught when saved in my
editor. I'll drop and send cleanup.

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

end of thread, other threads:[~2023-06-30 23:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30  4:31 [PATCH 0/2] ALSA: hda/realtek: Add quirk for ASUS ROG laptops Luke D. Jones
2023-06-30  4:31 ` [PATCH 1/2] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P Luke D. Jones
2023-06-30  8:29   ` Takashi Iwai
2023-06-30 23:54     ` Luke Jones
2023-06-30  4:31 ` [PATCH 2/2] ALSA: hda/realtek: Add quirk for ASUS ROG GA402X Luke D. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox