ALSA: scarlett2: Add power status control
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 26 Dec 2023 18:08:02 +0000 (04:38 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:52:13 +0000 (15:52 +0100)
commitd7cfa2fdfc8a0ba9bf7d5ebd5cf25e6d24501632
treee177119ff0b88f8f600259796adf6f45bcca98c4
parent882a2a36c41df96d0449c3751dceb86415b44a56
ALSA: scarlett2: Add power status control

Add a control to retrieve the power status from the interface
(bus-powered, external-powered, or insufficient power).

Mark the new scarlett2_notify_power_status() function with
__always_unused until it gets used when the Gen 4 notification
callback function arrays are added.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/d9806bc41adc45b1c19749562fec7765ba24351d.1703612638.git.g@b4.vu
sound/usb/mixer_scarlett2.c