Skip to contentSkip to conversation

ALSA: hda/tas2781: fix speaker id retrieval for multiple probes

PATCH In review Antheas Kapenekakis 4 participants 13 messages Oct 26, 2025 – Nov 18, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ALSA: hda/tas2781: fix speaker id retrieval for multiple probes

Currently, on ASUS projects, the TAS2781 codec attaches the speaker GPIO to the first tasdevice_priv instance using devm. This causes tas2781_read_acpi to fail on subsequent probes since the GPIO is already managed by the first device. This causes a failure on Xbox Ally X, because it has two amplifiers, and prevents us from quirking both the Xbox Ally and Xbox Ally X in the realtek codec driver.

It is unnecessary to attach the GPIO to a device as it is static. Therefore, instead of attaching it and then reading it when loading the firmware, read its value directly in tas2781_read_acpi and store it in the private data structure. Then, make reading the value non-fatal so that ASUS projects that miss a speaker pin can still work, perhaps using fallback firmware.

Fixes 4e7035a75da9 ("ALSA: hda/tas2781: Add speaker id check for ASUS projects")
---
 include/sound/tas2781.h                       |  2 +-
 .../hda/codecs/side-codecs/tas2781_hda_i2c.c  | 44 +++++++++++--------
 2 files changed, 26 insertions(+), 20 deletions(-)
include/sound/tas2781.h +1 -1
index 0fbcdb15c74b..29d15ba65f04 100644
@@ -197,7 +197,6 @@ struct tasdevice_priv {
 	struct acoustic_data acou_data;
 #endif
 	struct tasdevice_fw *fmw;
-	struct gpio_desc *speaker_id;
 	struct gpio_desc *reset;
 	struct mutex codec_lock;
 	struct regmap *regmap;
@@ -215,6 +214,7 @@ struct tasdevice_priv {
 	unsigned int magic_num;
 	unsigned int chip_id;
 	unsigned int sysclk;
+	int speaker_id;
 
 	int irq;
 	int cur_prog;
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c +25 -19

73 lines not on this page · raw message

base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada

Signature · 1 line
2.51.1
#1 lore raw

PATCH 2/2 ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

---
 sound/hda/codecs/realtek/alc269.c | 2 ++
 1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -0
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+	SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+	SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
 	SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
 	SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
Signature · 1 line
2.51.1
#2 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

That would be great :)

Antheas

Quoted 23 lines
---
 sound/hda/codecs/realtek/alc269.c | 2 ++
 1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
        SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
        SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
        SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
        SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
        SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
        SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#3 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 10 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#4 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#5 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 43 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 10 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Antheas

Quoted 3 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

[1] is straight from the windows driver with no renaming

Quoted 32 lines
Quoted 32 lines
Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#6 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

In reply to Antheas Kapenekakis
Quoted 42 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 4 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Seems like there have been other reports similar to mine on Xbox Ally X, where flipping the firmware files by renaming them fixes sound issues for them.

@TI, Maybe something is different with the conditional logic for the ROG Xbox Ally X? The current GPIO-detected speaker_id doesn't always correspond to the correct firmware choice on this model it seems.

Quoted 40 lines

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#7 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 44 lines · Matthew Schwartz
Quoted 42 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 8 lines
Quoted 4 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Seems like there have been other reports similar to mine on Xbox Ally X, where flipping the firmware files by renaming them fixes sound issues for them.

@TI, Maybe something is different with the conditional logic for the ROG Xbox Ally X? The current GPIO-detected speaker_id doesn't always correspond to the correct firmware choice on this model it seems.

Yeah, it seems that specifically on the Xbox Ally X, the firmwares are swapped around? What could be the case for that?

I had three users with popping and dropped audio swap the firmware on their X and they said the other one fixed it. And another two without issues swapping the firmware and saying it does not make a quantifiable change.

Antheas

Antheas

Quoted 42 lines
Quoted 40 lines

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#8 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 56 lines · Antheas Kapenekakis
Quoted 44 lines · Matthew Schwartz
Quoted 42 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 8 lines
Quoted 4 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Seems like there have been other reports similar to mine on Xbox Ally X, where flipping the firmware files by renaming them fixes sound issues for them.

@TI, Maybe something is different with the conditional logic for the ROG Xbox Ally X? The current GPIO-detected speaker_id doesn't always correspond to the correct firmware choice on this model it seems.

Quoted 7 lines

Yeah, it seems that specifically on the Xbox Ally X, the firmwares are swapped around? What could be the case for that?

I had three users with popping and dropped audio swap the firmware on their X and they said the other one fixed it. And another two without issues swapping the firmware and saying it does not make a quantifiable change.

Update on this. Users with a pin value of 1 are happy with the 1 firmware. Users with a value of 0 are not happy with TAS2XXX13840 and TAS2XXX13841 works better for them. Moreover, users of the 1 firmware are not happy with the 0 firmware.

This is just on the Ally X, on the normal Ally there are no issues.

So there is an issue with TAS2XXX13840 on the linux side, TAS2XXX13841 is correctly selected.

Antheas

Quoted 47 lines

Antheas

Antheas

Quoted 42 lines
Quoted 40 lines

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#9 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

Quoted 71 lines · Antheas Kapenekakis
Quoted 56 lines · Antheas Kapenekakis
Quoted 44 lines · Matthew Schwartz
Quoted 42 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 8 lines
Quoted 4 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Seems like there have been other reports similar to mine on Xbox Ally X, where flipping the firmware files by renaming them fixes sound issues for them.

@TI, Maybe something is different with the conditional logic for the ROG Xbox Ally X? The current GPIO-detected speaker_id doesn't always correspond to the correct firmware choice on this model it seems.

Quoted 7 lines

Yeah, it seems that specifically on the Xbox Ally X, the firmwares are swapped around? What could be the case for that?

I had three users with popping and dropped audio swap the firmware on their X and they said the other one fixed it. And another two without issues swapping the firmware and saying it does not make a quantifiable change.

Update on this. Users with a pin value of 1 are happy with the 1 firmware. Users with a value of 0 are not happy with TAS2XXX13840 and TAS2XXX13841 works better for them. Moreover, users of the 1 firmware are not happy with the 0 firmware.

Quoted 4 lines

This is just on the Ally X, on the normal Ally there are no issues.

So there is an issue with TAS2XXX13840 on the linux side, TAS2XXX13841 is correctly selected.

Hi, can I get a small bump on this?

Baojun can you comment on the first patch? The fix works properly during our testing.

Both patches do.

It seems there is a problem with firmware file TAS2XXX13840 and devices that select it. Those devices work fine with TAS2XXX13841 and we replaced 0 with it for now, all of them do. The problem with it is that the speakers clip on and off above 80% volume when TAS2XXX13840 is loaded.

Unfortunately I do not have an affected X unit, only a non-X one that works fine with the 13941 project. Mat does and he could do some testing.

Quoted 49 lines

Antheas

Quoted 47 lines

Antheas

Antheas

Quoted 42 lines
Quoted 40 lines

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

#10 lore raw

Re: [PATCH v1 2/2] ALSA: hda/realtek: Add match for ASUS Xbox Ally projects

[ dropped stable ML as it's not really relevant ]

Quoted 91 lines · Antheas Kapenekakis
Quoted 71 lines · Antheas Kapenekakis
Quoted 56 lines · Antheas Kapenekakis
Quoted 44 lines · Matthew Schwartz
Quoted 42 lines · Antheas Kapenekakis
Quoted 25 lines · Matthew Schwartz
Quoted 11 lines · Antheas Kapenekakis
Quoted 4 lines · Antheas Kapenekakis

Bind the realtek codec to TAS2781 I2C audio amps on ASUS Xbox Ally projects. While these projects work without a quirk, adding it increases the output volume significantly.

Quoted 5 lines

Also, if you can upstream the firmware files:
TAS2XXX13840.bin
TAS2XXX13841.bin
TAS2XXX13940.bin
TAS2XXX13941.bin

This is the firmware at [1], correct? I’m testing the series with that firmware on my ROG Xbox Ally X, and I found something interesting.

By default, with just your kernel patches and the firmware files hosted at [1], my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 58cffa36ae23a2d9b2349ecb6c1d4e89627934cd79218f6ada06eaffe6688246

However, with this firmware file, TAS2XXX13840.bin, there is significant audio clipping above 75% speaker level on my individual unit.

Quoted 7 lines

Then, I tried renaming the other firmware file, TAS2XXX13841.bin, into TAS2XXX13840.bin. Now my unit is loading:

tas2781-hda i2c-TXNW2781:00-tas2781-hda.0: Loaded FW: TAS2XXX13840.bin, sha256: 0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

With this firmware file, audio is perfect all the way to 100% speaker level.

If I recall, there have been other ASUS products that required matching amplifier hardware with firmware correctly, right? It looks like this might be another case of since it seems my unit is loading the wrong firmware for its amplifiers.

The original Ally X had a similar setup, yes.

First patch might not be perfect and your speaker pin might be 1. My Xbox Ally's pin is 1. It loads:
Loaded FW: TAS2XXX13941.bin, sha256:
0fda76e7142cb455df1860cfdb19bb3cb6871128b385595fe06b296a070f4b8c

Quoted 8 lines
Quoted 4 lines

And it sounds loud and crisp. So the pin is read.

I had multiple users verify the X works, but perhaps it is not perfect yet. Make sure you are not using a dsp that might be interfering

Seems like there have been other reports similar to mine on Xbox Ally X, where flipping the firmware files by renaming them fixes sound issues for them.

@TI, Maybe something is different with the conditional logic for the ROG Xbox Ally X? The current GPIO-detected speaker_id doesn't always correspond to the correct firmware choice on this model it seems.

Quoted 7 lines

Yeah, it seems that specifically on the Xbox Ally X, the firmwares are swapped around? What could be the case for that?

I had three users with popping and dropped audio swap the firmware on their X and they said the other one fixed it. And another two without issues swapping the firmware and saying it does not make a quantifiable change.

Update on this. Users with a pin value of 1 are happy with the 1 firmware. Users with a value of 0 are not happy with TAS2XXX13840 and TAS2XXX13841 works better for them. Moreover, users of the 1 firmware are not happy with the 0 firmware.

Quoted 4 lines

This is just on the Ally X, on the normal Ally there are no issues.

So there is an issue with TAS2XXX13840 on the linux side, TAS2XXX13841 is correctly selected.

Hi, can I get a small bump on this?

Baojun can you comment on the first patch? The fix works properly during our testing.

Both patches do.

It seems there is a problem with firmware file TAS2XXX13840 and devices that select it. Those devices work fine with TAS2XXX13841 and we replaced 0 with it for now, all of them do. The problem with it is that the speakers clip on and off above 80% volume when TAS2XXX13840 is loaded.

Quoted 3 lines

Unfortunately I do not have an affected X unit, only a non-X one that works fine with the 13941 project. Mat does and he could do some testing.

Shenghao, Baojun, could you guys check the suggested fix patch please?

thanks,

Takashi

Quoted 52 lines
Quoted 51 lines

Antheas

Quoted 47 lines

Antheas

Antheas

Quoted 42 lines
Quoted 40 lines

Antheas

Quoted 36 lines

Matt

[1]: https://github.com/hhd-dev/hwfirm

Quoted 30 lines

That would be great :)

Antheas

Quoted 23 lines

---
sound/hda/codecs/realtek/alc269.c | 2 ++

1 file changed, 2 insertions(+)
sound/hda/codecs/realtek/alc269.c +2 -1
index 8ad5febd822a..d1ad84eee6d1 100644
@@ -6713,6 +6713,8 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
       SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1314, "ASUS GA605K", ALC285_FIXUP_ASUS_GA605K_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1043, 0x1384, "ASUS RC73XA", ALC287_FIXUP_TXNW2781_I2C),
+       SND_PCI_QUIRK(0x1043, 0x1394, "ASUS RC73YA", ALC287_FIXUP_TXNW2781_I2C),
       SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
       SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
       SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
--

2.51.1

maintainer Reviewed-by on v1 1/2
#11 lore raw
In reply to Antheas Kapenekakis
Quoted 22 lines

________________________________________
From: Antheas Kapenekakis <[email protected]>
Sent: 27 October 2025 03:16
To: Ding, Shenghao; Xu, Baojun
Cc: Takashi Iwai; [email protected]; [email protected]; Antheas Kapenekakis; [email protected]
Subject: [EXTERNAL] [PATCH v1 1/2] ALSA: hda/tas2781: fix speaker id retrieval for multiple probes

Currently, on ASUS projects, the TAS2781 codec attaches the speaker GPIO to the first tasdevice_priv instance using devm. This causes tas2781_read_acpi to fail on subsequent probes since the GPIO is already managed by the first device. This causes a failure on Xbox Ally X, because it has two amplifiers, and prevents us from quirking both the Xbox Ally and Xbox Ally X in the realtek codec driver.

It is unnecessary to attach the GPIO to a device as it is static. Therefore, instead of attaching it and then reading it when loading the firmware, read its value directly in tas2781_read_acpi and store it in the private data structure. Then, make reading the value non-fatal so that ASUS projects that miss a speaker pin can still work, perhaps using fallback firmware.

Quoted 8 lines
Fixes 4e7035a75da9 ("ALSA: hda/tas2781: Add speaker id check for ASUS projects")
---
 include/sound/tas2781.h                       |  2 +-
 .../hda/codecs/side-codecs/tas2781_hda_i2c.c  | 44 +++++++++++--------
 2 files changed, 26 insertions(+), 20 deletions(-)

Best Regards
Jim

#12 lore raw
Quoted 31 lines · Baojun
Quoted 23 lines

________________________________________
From: Antheas Kapenekakis <[email protected]>
Sent: 27 October 2025 03:16
To: Ding, Shenghao; Xu, Baojun
Cc: Takashi Iwai; [email protected]; [email protected]; Antheas Kapenekakis; [email protected]
Subject: [EXTERNAL] [PATCH v1 1/2] ALSA: hda/tas2781: fix speaker id retrieval for multiple probes

Currently, on ASUS projects, the TAS2781 codec attaches the speaker GPIO to the first tasdevice_priv instance using devm. This causes tas2781_read_acpi to fail on subsequent probes since the GPIO is already managed by the first device. This causes a failure on Xbox Ally X, because it has two amplifiers, and prevents us from quirking both the Xbox Ally and Xbox Ally X in the realtek codec driver.

It is unnecessary to attach the GPIO to a device as it is static. Therefore, instead of attaching it and then reading it when loading the firmware, read its value directly in tas2781_read_acpi and store it in the private data structure. Then, make reading the value non-fatal so that ASUS projects that miss a speaker pin can still work, perhaps using fallback firmware.

Quoted 8 lines
Fixes 4e7035a75da9 ("ALSA: hda/tas2781: Add speaker id check for ASUS projects")
---
 include/sound/tas2781.h                       |  2 +-
 .../hda/codecs/side-codecs/tas2781_hda_i2c.c  | 44 +++++++++++--------
 2 files changed, 26 insertions(+), 20 deletions(-)
Quoted 1 line

OK, I applied both patches to for-next branch now.

For the remaining issues, let's fix on the top.

thanks,

Takashi