]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Allow to override the longname string
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 12:45:37 +0000 (14:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 14:02:34 +0000 (16:02 +0200)
commitd056af2d3aa4fca9dfcd0ce47ab2b7a767f03a66
tree853a4f2042a6ad98f77efaebf67e2fd5fa1a3aa5
parent5187241ae99baad6726dbf1a7de01789b27711ec
ALSA: usb-audio: Allow to override the longname string

Historically USB-audio driver sets the card's longname field with the
details of the device and the bus information.  It's good per se, but
not preferable when it's referred as the identifier for UCM profile.

This patch adds a quirk profile_name field to override the card's
longname string to a pre-defined one, so that one can create a unique
and consistent ID string for the specific USB device via a quirk table
to be used as a UCM profile name.

The patch does a slight code refactoring to split out the functions to
set shortname and longname fields as well.

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