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