mbox series

[0/2] ALSA: scarlett2: Add "Standalone" switch

Message ID cover.1646578164.git.g@b4.vu
Headers show
Series ALSA: scarlett2: Add "Standalone" switch | expand

Message

Geoffrey D. Bennett March 6, 2022, 3:20 p.m. UTC
Hi Takashi,

I discovered an internal "standalone" switch on all the Scarlett Gen
2/3 interfaces with internal mixers. After enabling this switch, the
interface will act as a standalone mixer (according to its previous
configuration) when not connected to a USB host. The interfaces come
from the factory with the switch off, and the vendor driver enables it
without question. This patch adds a new ALSA control to set the switch
on or off.

This is the first configuration item that is common between the Gen 2
and 3 interfaces but with a different offset, so the patch is in two
parts. The first patch allows for the same configuration item to have
a different offset between Gen 2/3 and the second patch adds the new
switch.

Regards,
Geoffrey.

Geoffrey D. Bennett (2):
  ALSA: scarlett2: Split scarlett2_config_items[] into 3 sections
  ALSA: scarlett2: Add support for the internal "standalone" switch

 sound/usb/mixer_scarlett_gen2.c | 171 ++++++++++++++++++++++++++------
 1 file changed, 141 insertions(+), 30 deletions(-)

Comments

Takashi Iwai March 8, 2022, 9:06 a.m. UTC | #1
On Sun, 06 Mar 2022 16:20:40 +0100,
Geoffrey D. Bennett wrote:
> 
> Hi Takashi,
> 
> I discovered an internal "standalone" switch on all the Scarlett Gen
> 2/3 interfaces with internal mixers. After enabling this switch, the
> interface will act as a standalone mixer (according to its previous
> configuration) when not connected to a USB host. The interfaces come
> from the factory with the switch off, and the vendor driver enables it
> without question. This patch adds a new ALSA control to set the switch
> on or off.
> 
> This is the first configuration item that is common between the Gen 2
> and 3 interfaces but with a different offset, so the patch is in two
> parts. The first patch allows for the same configuration item to have
> a different offset between Gen 2/3 and the second patch adds the new
> switch.
> 
> Regards,
> Geoffrey.
> 
> Geoffrey D. Bennett (2):
>   ALSA: scarlett2: Split scarlett2_config_items[] into 3 sections
>   ALSA: scarlett2: Add support for the internal "standalone" switch

Thanks, applied both patches now.


Takashi