]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fake also USB device id when alias is given
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 Mar 2017 09:19:19 +0000 (11:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Mar 2017 09:19:19 +0000 (11:19 +0200)
commit240014e49492e18e494e1058b9612d8ac2a8d0ee
treed7328e58bb5c9ce608890d969a07c26ec31692f2
parentd03da7078027bf3a14b6bfcae225264ca900a34c
ALSA: usb-audio: Fake also USB device id when alias is given

Recently snd-usb-audio driver received a new option, quirk_alias, to
allow user to apply the existing quirk for a different device.  This
works for many quirks as is, but some still need more tune-ups:
namely, some quirks check the USB vendor/device IDs in various places,
thus it doesn't work as long as the ID is different from the expected
one.

With this patch, the driver stores the aliased USB ID, so that these
rest quirks per device ID are applied.  The transition to use the
cached USB ID was already done in the past, so what we needed now is
only to overwrite chip->usb_id.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c