Skip to content

Commit 65f380f

Browse files
Angus_Wangjamess-huang
authored andcommitted
Rename on-board sound card.
Change-Id: Ice0fa2f88e64a692ad0e10bd2ec5a93db1d13afd Reviewed-on: https://tp-biosrd-v02/gerrit/80273 Reviewed-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com> Tested-by: Jamess Huang(黃以民) <Jamess_Huang@asus.com>
1 parent dc7d4eb commit 65f380f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sound/usb/card.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ static int snd_usb_audio_create(struct usb_interface *intf,
407407
}
408408
strim(card->shortname);
409409

410+
/* OnBoard ALC4040 Audio Codec */
411+
if (USB_ID_VENDOR(chip->usb_id) == 0x0bda &&
412+
USB_ID_PRODUCT(chip->usb_id) == 0x481a) {
413+
strlcat(card->shortname, " OnBoard", sizeof(card->shortname));
414+
}
415+
410416
/* retrieve the vendor and device strings as longname */
411417
if (quirk && quirk->vendor_name && *quirk->vendor_name) {
412418
len = strlcpy(card->longname, quirk->vendor_name, sizeof(card->longname));

0 commit comments

Comments
 (0)