Re: [PATCH 2/2] ALSA: usb-audio: UAC3. Add insertion control for BADD.

From: Takashi Iwai
Date: Thu Jun 14 2018 - 08:34:08 EST


On Tue, 12 Jun 2018 16:32:01 +0200,
Jorge Sanjuan wrote:
>
> The HEADSET ADAPTER profile for BADD devices is meant to support
> Insertion Control for the Input and Output Terminals of the headset.
> Furthermore, this profile may also include the interrupt status pipe
> to report changes on these terminals.
>
> This patch creates the jack-detect controls for the Headset Adapter
> profile and enables the interrupt status pipe creation for BADD devices.
>
> Signed-off-by: Jorge Sanjuan <jorge.sanjuan@xxxxxxxxxxxxxxx>

The changes look good, but I'd prefer splitting this:

- A preliminary work to change get_connector_control_name() and
build_connector_control() to receive usb_mixer_interface;
this is no functional change

- Add build_connector_control() calls for UAC3 BADD

- Apply snd_usb_mixer_status_create() for UAC3 BADD, too


thanks,

Takashi