<p></p>
<p>><br>
> This is pretty much a complete rewrite of the patches that intended to<br>
> fix bad volume behaviour on Terratec Aureon Dual USB. These patches<br>
> add a new default volume attribute to ports and alsa-mixer paths, and<br>
> use that to fix the Aureon volume bug[1].<br>
><br>
> The default volume of all analog paths, not just Aureon, is now 30%<br>
> instead of 100%. Also, the port default volume is now considered when<br>
> switching ports. That means, for example, that on the first boot of<br>
> a laptop with speakers and a headphone jack (unplugged), the speakers<br>
> get their default volume set as before (based on the hardware volume),<br>
> but when plugging in headphones, the sink volume jumps to 30%. That's<br>
> a good thing, because the speaker volume won't affect the default<br>
> headphone volume like it has affected so far.<br>
><br>
> Here's a link to the v1 patch set discussion, where the device default<br>
> volumes were discussed in some length:<br>
> <a href="http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/22253">http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/22253</a><br>
><br>
> [1] <a href="https://bugs.freedesktop.org/show_bug.cgi?id=81777">https://bugs.freedesktop.org/show_bug.cgi?id=81777</a><br></p>
<p>Is this bug of alsa mixer api ?</p>
<p>The speaker playback switch is mono but speaker playback volume is stereo</p>
<p>amixer even show two on/off switches<br></p>
<p>Card hw:1 'U0xccd0x77'/'USB Device 0xccd:0x77 at usb-0000:00:02.0-1, full speed'<br>
Mixer name : 'USB Mixer'<br>
Components : 'USB0ccd:0077'<br>
Controls : 7<br>
Simple ctrls : 3<br>
Simple mixer control 'Mic',0<br>
Capabilities: pvolume pvolume-joined cvolume pswitch pswitch-joined cswitch cswitch-joined<br>
Playback channels: Mono<br>
Capture channels: Mono<br>
Limits: Playback 0 - 32 Capture 0 - 16<br>
Mono: Playback 0 [0%] [0.00dB] [on] Capture 0 [0%] [0.00dB] [on]<br>
Simple mixer control 'Auto Gain Control',0<br>
Capabilities: pswitch pswitch-joined<br>
Playback channels: Mono<br>
Mono: Playback [on]<br>
Simple mixer control 'Speaker',0<br>
Capabilities: pvolume pswitch pswitch-joined<br>
Playback channels: Front Left - Front Right<br>
Limits: Playback 0 - 151<br>
Mono:<br>
Front Left: Playback 34 [23%] [-22.25dB] [on]<br>
Front Right: Playback 34 [23%] [-22.25dB] [on]<br></p>
<p>!!Alsactl output<br>
!!-------------</p>
<p>--startcollapse--<br>
state.U0xccd0x77 {<br>
control.1 {<br>
comment.access 'read write'<br>
comment.type BOOLEAN<br>
comment.count 1<br>
iface MIXER<br>
name 'Mic Playback Switch'<br>
value true<br>
}<br>
control.2 {<br>
comment.access 'read write'<br>
comment.type INTEGER<br>
comment.count 1<br>
comment.range '0 - 32'<br>
iface MIXER<br>
name 'Mic Playback Volume'<br>
value 0<br>
}<br>
control.3 {<br>
comment.access 'read write'<br>
comment.type BOOLEAN<br>
comment.count 1<br>
iface MIXER<br>
name 'Speaker Playback Switch'<br>
value true<br>
}<br>
control.4 {<br>
comment.access 'read write'<br>
comment.type INTEGER<br>
comment.count 2<br>
comment.range '0 - 151'<br>
iface MIXER<br>
name 'Speaker Playback Volume'<br>
value.0 34<br>
value.1 34<br>
}<br>
<br><br></p>
<p>></p>