Re: on-board sound on ASUS TRX-40

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

With the mainboard Asus Prime TRX40-Pro I do not have any on-board sound. I tried to fix it myself after reading here on the mailing list (thanks to Dan Aloni and Takashi Iwai) and with the patch below, I was able to partially fix it. The front headphone still does not work and I did not test the microphone(s) input. But at least I can hear sound when using the C/SUB, REAR and LINE OUT at the rear.

As mentioned, the patch does not solve all problems, but it is a little pass towards a system with working sound. The patch below was tested by me on Gentoo with 5.4.72 and on Arch Linux with 5.9.3. I hope, it will land in the kernel sources somehow. Please feel free to modify and use it. Because the real name is required, I cannot submit the patch myself.

Thank you for reading this and eventually considering to submit this to the kernel sources.

----------- Begin tested patch -----------

diff -uprN -X linux-5.4.74-vanilla/Documentation/dontdiff linux-5.4.74-vanilla/sound/usb/mixer_maps.c linux-5.4.74/sound/usb/mixer_maps.c
--- linux-5.4.74-vanilla/sound/usb/mixer_maps.c	2020-11-01 12:01:07.000000000 +0100
+++ linux-5.4.74/sound/usb/mixer_maps.c	2020-11-03 11:03:15.444424941 +0100
@@ -538,6 +538,11 @@ static struct usbmix_ctl_map usbmix_ctl_
 		.id = USB_ID(0x0b05, 0x1917),
 		.map = asus_rog_map,
 	},
+	{       /* ASUS Prime TRX40-Pro  */
+	        .id = USB_ID(0x0b05, 0x1918),
+		.map = trx40_mobo_map,
+		.connector_map = trx40_mobo_connector_map,
+	},
 	{	/* MSI TRX40 Creator */
 		.id = USB_ID(0x0db0, 0x0d64),
 		.map = trx40_mobo_map,
diff -uprN -X linux-5.4.74-vanilla/Documentation/dontdiff linux-5.4.74-vanilla/sound/usb/quirks-table.h linux-5.4.74/sound/usb/quirks-table.h
--- linux-5.4.74-vanilla/sound/usb/quirks-table.h	2020-11-03 10:53:24.000396963 +0100
+++ linux-5.4.74/sound/usb/quirks-table.h	2020-11-03 10:59:02.699412985 +0100
@@ -3667,6 +3667,7 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge
 	} \
 }
 ALC1220_VB_DESKTOP(0x0414, 0xa002), /* Gigabyte TRX40 Aorus Pro WiFi */
+ALC1220_VB_DESKTOP(0x0b05, 0x1918), /* ASUS Prime TRX40-Pro */
 ALC1220_VB_DESKTOP(0x0db0, 0x0d64), /* MSI TRX40 Creator */
 ALC1220_VB_DESKTOP(0x0db0, 0x543d), /* MSI TRX40 */
 ALC1220_VB_DESKTOP(0x26ce, 0x0a01), /* Asrock TRX40 Creator */

----------- End tested patch -----------

Here is the version for the master branch, but totally untested:

----------- Begin untested patch from master branch -----------

diff --git a/sound/usb/card.c b/sound/usb/card.c
index fa764b61fe9c..b6c1ffb65f69 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -393,6 +393,10 @@ static const struct usb_audio_device_name usb_audio_names[] = {
 	DEVICE_NAME(0x0d8c, 0x0102, NULL, "ICUSBAUDIO7D"),
 	DEVICE_NAME(0x0d8c, 0x0103, NULL, "Audio Advantage MicroII"),
 

+	/* ASUS Prime TRX40-Pro */
+	PROFILE_NAME(0x0b05, 0x1918,
+	             "Realtek", "ALC1220-VB-DT", "Realtek-ALC1220-VB-Desktop"),
+
 	/* MSI TRX40 Creator */
 	PROFILE_NAME(0x0db0, 0x0d64,
 		     "Realtek", "ALC1220-VB-DT", "Realtek-ALC1220-VB-Desktop"),
diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index c369c81e74c4..6323faf49d67 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -563,6 +563,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
 		.id = USB_ID(0x0b05, 0x1917),
 		.map = asus_rog_map,
 	},
+	{       /* ASUS Prime TRX40-Pro */
+	        .id = USB_ID(0x0b05, 0x1918),
+		.map = trx40_mobo_map,
+		.connector_map = trx40_mobo_connector_map,
+	},
 	{	/* MSI TRX40 Creator */
 		.id = USB_ID(0x0db0, 0x0d64),
 		.map = trx40_mobo_map,

----------- End untested patch from master branch -----------


Sent with ProtonMail Secure Email.

Attachment: publickey - apt-ghetto@protonmail.com - 0xDDAEC934.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux