<table><tr><td style="">thomasp added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7922" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I took a quick look on how to do this with ALSA:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">amixer set Master mute</li>
<li class="remarkup-list-item">amixer set Master unmute</li>
</ul>

<p>Unfortunately it is not that easy with ALSA since you might not use Master as you primary output [sic].<br />
In my case I would have to call <tt style="background: #ebebeb; font-size: 13px;">amixer set 'PCM',0 0</tt> and <tt style="background: #ebebeb; font-size: 13px;">amixer set 'PCM'0 255</tt> to mute and unmute respectively. Note that this channel does not support the mute/unmute commands. You would have to read the limits of the control and set it to min/max...<br />
Looks like there is no easy way to interact directly with ALSA without allowing people to select their master channel - and thus enumerating the ALSA devices in the UI.</p>

<p>kmix allows to set a master channel. The current implementation works as expected.</p>

<p>Since I did not use this option I sure can live without it.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7922" rel="noreferrer">https://phabricator.kde.org/D7922</a></div></div><br /><div><strong>To: </strong>nicolasfella, KDE Connect<br /><strong>Cc: </strong>thomasp, albertvaka, KDE Connect, daniel.z.tg, jeanv, tfella, aboudhar, seebauer, bugzy, progwolff, MayeulC, menasshock, ach, apol<br /></div>