[alsa-devel] [PATCH] ALSA: usb-audio: Fake also USB device id when alias is given
Takashi Iwai
tiwai at suse.de
Fri Mar 31 14:04:41 CEST 2017
On Fri, 31 Mar 2017 13:06:18 +0200,
Jurgen Kramer wrote:
>
> Hi Takashi,
>
> On Fri, 2017-03-31 at 11:26 +0200, Takashi Iwai wrote:
> > 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.
> >
>
> Sounds interesting. Would this work for
> snd_usb_interface_dsd_format_quirks() ?
Yes, as long as chip->usb_id is checked, this hack should take
effect.
Takashi
More information about the Alsa-devel
mailing list