• Takashi Iwai's avatar
    ALSA: usb-audio: Allow to override the longname string · 07eca5fc
    Takashi Iwai authored
    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: default avatarTakashi Iwai <tiwai@suse.de>
    07eca5fc
card.c 23.9 KB