Re: [Alsa-user] General question about capabilities for switches

2016-09-26 Thread Clemens Ladisch
Ulrich Sørensen wrote:
> Clemens Ladisch wrote:
>> In the "simple" mixer API, controls are either playback or capture.
>> Having both would imply that there were two independent switches.
>
> If that is the case then I do not understand the documentation

That documentation describes the names of mixer controls in the kernel,
which corresponds to the control interface.

The simpler mixer interface is an abstraction layer on top of that.

Use "amixer contents" instead of "amixer scontents" to use the
control interface.


Regards,
Clemens

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] General question about capabilities for switches

2016-09-26 Thread Ulrich Sørensen
Clemens Ladisch wrote:

>In the "simple" mixer API, controls are either playback or capture.
>Having both would imply that there were two independent switches.

If that is the case then I do not understand the documentation which states:

This document describes standard names of mixer controls.
  
  3 Syntax: [LOCATION] SOURCE [CHANNEL] [DIRECTION] FUNCTION
  4 
  5 DIRECTION:
  6(both directions)
  7   Playback
  8   Capture
  9   Bypass Playback
 10   Bypass Capture

I feel like I am missing something here.

Best Regards,
Ulrich Sørensen


Fra: Clemens Ladisch [cladi...@googlemail.com]
Sendt: 23. september 2016 15:45
Til: alsa-user@lists.sourceforge.net
Emne: Re: [Alsa-user] General question about capabilities for switches

Ulrich Sørensen wrote:
> SOC_DOUBLE_EXT("ALC Switch", DA7213_ALC_CTRL1, DA7213_ALC_L_EN_SHIFT,
>DA7213_ALC_R_EN_SHIFT, DA7213_ALC_EN_MAX,
>DA7213_NO_INVERT, snd_soc_get_volsw, da7213_put_alc_sw),
>
> In amixer the capabilities are show as:
>
> Simple mixer control 'ALC',0
>   Capabilities: pswitch
>   Playback channels: Front Left - Front Right
>   Mono:
>   Front Left: Playback [off]
>   Front Right: Playback [off]
>
> I had expected the switch to both playback and capture capabilities for
> the ALC switch since it is defined as "ALC Switch" and not "ALC Playback
> Switch" in the driver.

In the "simple" mixer API, controls are either playback or capture.
Having both would imply that there were two independent switches.


Regards,
Clemens

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] General question about capabilities for switches

2016-09-23 Thread Clemens Ladisch
Ulrich Sørensen wrote:
> SOC_DOUBLE_EXT("ALC Switch", DA7213_ALC_CTRL1, DA7213_ALC_L_EN_SHIFT,
>DA7213_ALC_R_EN_SHIFT, DA7213_ALC_EN_MAX,
>DA7213_NO_INVERT, snd_soc_get_volsw, da7213_put_alc_sw),
>
> In amixer the capabilities are show as:
>
> Simple mixer control 'ALC',0
>   Capabilities: pswitch
>   Playback channels: Front Left - Front Right
>   Mono:
>   Front Left: Playback [off]
>   Front Right: Playback [off]
>
> I had expected the switch to both playback and capture capabilities for
> the ALC switch since it is defined as "ALC Switch" and not "ALC Playback
> Switch" in the driver.

In the "simple" mixer API, controls are either playback or capture.
Having both would imply that there were two independent switches.


Regards,
Clemens

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user