20 lines
639 B
Diff
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));
|