Files
operating-system/buildroot-external/board/asus/tinker/patches/linux/2027_Tinkerboard-Next-audio.patch
Pascal Vizeli 9b170812d6 Cleanup odroid
2018-08-22 22:15:08 +00:00

20 lines
639 B
Diff

diff --git a/sound/usb/card.c b/sound/usb/card.c
index 23d1d23..98610ae 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -434,6 +434,14 @@ static int snd_usb_audio_create(struct usb_interface *intf,
}
strim(card->shortname);
+ /* Tinker Board ALC4040 CODEC */
+
+ if(USB_ID_VENDOR(chip->usb_id) == 0x0bda &&
+ USB_ID_PRODUCT(chip->usb_id) == 0x481a) {
+ strlcat(card->shortname, " OnBoard", sizeof(card->shortname));
+ }
+
+
/* retrieve the vendor and device strings as longname */
if (quirk && quirk->vendor_name && *quirk->vendor_name) {
len = strlcpy(card->longname, quirk->vendor_name, sizeof(card->longname));