feat(3p/kernelPatches): Add kernel audio patch for ASUS TRX40 Pro

Without this patch, this board is not included in the pin map
overrides and audio basically doesn't work.

With this patch, the audio still doesn't work, but it can at least
correctly detect what is and isn't plugged in - so that's progress.

Change-Id: I66ca7d7a1e0e25a0212b9659381875ad4c590ffc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/542
Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
Vincent Ambo 2020-06-20 18:38:49 +01:00 committed by tazjin
parent 3b05be2fd0
commit a8e25bc9d3
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# This patch adds the ASUS TRX40 Prime Pro Whatever Edition
# motherboard to the list of boards for which the USB Audio connector
# map has been fixed.
{ ... }:
{
name = "trx40_usb_audio";
patch = ./trx40_usb_audio.patch;
}

View file

@ -0,0 +1,16 @@
diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 0260c750e156..5ee82872e31b 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -539,6 +539,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
.id = USB_ID(0x0b05, 0x1917),
.map = asus_rog_map,
},
+ { /* ASUS TRX40 Prime */
+ .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,

View file

@ -34,6 +34,10 @@ in depot.lib.fix(self: {
kernel.sysctl = { kernel.sysctl = {
"kernel.perf_event_paranoid" = 1; "kernel.perf_event_paranoid" = 1;
}; };
kernelPatches = [
depot.third_party.kernelPatches.trx40_usb_audio
];
}; };
hardware = { hardware = {
@ -233,6 +237,7 @@ in depot.lib.fix(self: {
openssl openssl
pass pass
pavucontrol pavucontrol
pciutils
pinentry pinentry
pinentry-emacs pinentry-emacs
pwgen pwgen
@ -245,6 +250,7 @@ in depot.lib.fix(self: {
tokei tokei
tree tree
unzip unzip
usbutils
vlc vlc
xclip xclip
yubico-piv-tool yubico-piv-tool