alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* on-board sound on ASUS TRX-40
@ 2020-10-22  8:17 Dan Aloni
  2020-10-22  9:14 ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Dan Aloni @ 2020-10-22  8:17 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai

Hi,

The on-board earphone jack does not seem to work on an ASUS TRX-40
board. Here's the alsa-info.sh output:

http://alsa-project.org/db/?f=7a94c1b1eec4b2e623c75770364ec43c33d6c95c

Tried coding up the patch below, but it _does not_ fix the problem. It
does shows the earphone as 'plugged' though. Verified that it's not an
hardware issue via Windows.

Please instruct on how to debug this further.

Thanks!

diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 9af7aa93f6fa..ab0f036f385e 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -568,6 +568,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
                .map = trx40_mobo_map,
                .connector_map = trx40_mobo_connector_map,
        },
+       {       /* ASUS TRX40-PRO */
+               .id = USB_ID(0x0b05, 0x1918),
+               .map = trx40_mobo_map,
+       },
        {       /* Asrock TRX40 Creator */
                .id = USB_ID(0x26ce, 0x0a01),
                .map = trx40_mobo_map,


-- 
Dan Aloni

^ permalink raw reply related	[flat|nested] 12+ messages in thread
* Re: on-board sound on ASUS TRX-40
@ 2020-11-04 11:03 apt-ghetto
  0 siblings, 0 replies; 12+ messages in thread
From: apt-ghetto @ 2020-11-04 11:03 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 3758 bytes --]

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 #1.2: publickey - apt-ghetto@protonmail.com - 0xDDAEC934.asc --]
[-- Type: application/pgp-keys, Size: 3216 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

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

end of thread, other threads:[~2020-11-04 11:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22  8:17 on-board sound on ASUS TRX-40 Dan Aloni
2020-10-22  9:14 ` Takashi Iwai
2020-10-22 10:18   ` Dan Aloni
2020-10-22 10:24     ` Takashi Iwai
2020-10-22 12:33       ` Dan Aloni
2020-10-22 12:36         ` Takashi Iwai
2020-10-22 12:51           ` Dan Aloni
2020-10-22 12:57             ` Takashi Iwai
2020-10-22 15:49               ` Dan Aloni
2020-10-22 16:09                 ` Takashi Iwai
2020-10-22 18:08                   ` Dan Aloni
2020-11-04 11:03 apt-ghetto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).