[alsa-devel] [RFC, alsa-utils] RFC: alsamixer: Improve description of playback switches

Kirill Marinushkin k.marinushkin at gmail.com
Mon Mar 26 20:37:20 CEST 2018


On 03/26/18 10:19, Takashi Sakamoto wrote:
> Hi,
>
> On Mar 26 2018 14:11, Kirill Marinushkin wrote:
>> Currently, all playback switches are described as mute. It is shown as:
>>
>> [OO] == sound is on (left and right channels)
>> [MM] == sound is muted (left and right channels)
>>
>> But cards can have different kinds of switch controls, not only mute. At
>> least usb-audio provides boolean controls as playback switches for:
>>
>> * clock source validity (read only switch)
>> * processing features on/off (rw switch)
>> * potentially other similar use-cases
>>
>> It becames confusing, because it is shown as:
>>
>> [OO] == clock source is valid
>> [MM] == clock source is invalid
>>
>> [OO] == processing feature is on
>> [MM] == processing feature is off
>>
>> And from the help, it is not clear how to toggle such switches.
>
> Could you show such control elements to help reviewers? For example, output from 'amixer' might be enough.
>

I tried to avoid it, because most probably it will be displayed incorrectly inside the email.
I attach it now, but keep in mind that in alsamixer it will look more accurate.

For the new proposal, where we modify only the help, the output will look like this:

│                │                                             #         │
│                │M          Toggle mute/switch                #         │
│                │< >        Toggle left/right mute/switch     #         │
│                │           [O] == playback on / switch on    #         │
│                │           [M] == playback muted / switch off#         │
│                │                                                       │
│

>
> Regards
>
> Takashi Sakamoto



More information about the Alsa-devel mailing list