diff options
author | Geoffrey D. Bennett <g@b4.vu> | 2021-05-21 11:20:13 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-05-21 17:22:52 +0300 |
commit | 265d1a90e4fb6d3264d8122fbd10760e5e733be6 (patch) | |
tree | 1438a3c0363e4375a5317abdb233e8b173ef26b7 /sound/usb/mixer_scarlett_gen2.h | |
parent | 764fa6e686e0107c0357a988d193de04cf047583 (diff) | |
download | linux-265d1a90e4fb6d3264d8122fbd10760e5e733be6.tar.xz |
ALSA: usb-audio: scarlett2: Improve driver startup messages
Add separate init function to call the existing controls_create
function so a custom error can be displayed if initialisation fails.
Use info level instead of error for notifications.
Display the VID/PID so device_setup is targeted to the right device.
Display "enabled" message to easily confirm that the driver is loaded.
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/b5d140c65f640faf2427e085fbbc0297b32e5fce.1621584566.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer_scarlett_gen2.h')
-rw-r--r-- | sound/usb/mixer_scarlett_gen2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer_scarlett_gen2.h b/sound/usb/mixer_scarlett_gen2.h index 52e1dad77afd..668c6b0cb50a 100644 --- a/sound/usb/mixer_scarlett_gen2.h +++ b/sound/usb/mixer_scarlett_gen2.h @@ -2,6 +2,6 @@ #ifndef __USB_MIXER_SCARLETT_GEN2_H #define __USB_MIXER_SCARLETT_GEN2_H -int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer); +int snd_scarlett_gen2_init(struct usb_mixer_interface *mixer); #endif /* __USB_MIXER_SCARLETT_GEN2_H */ |