Wrong creation of emulated volume control.
Hello.
I did not managed to find anything appropriate in the list and seems this problem hasn't been reported yet.
I have sound card with PCM having only mute switch (no volume control). I have installed alsa-lib-1.8.0 (release). My control list now have following PCM control (following is part of amixer output):
Quoted 1 line
Quoted 1 line
Quoted 1 line
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Front Center - Rear
Left - Rear Right - Woofer - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
Limits: Playback 0 - 0
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]
Front Center: Playback 0 [0%] [on]
Rear Left: Playback 0 [0%] [on]
Rear Right: Playback 0 [0%] [on]
Woofer: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
<<<
This incorrect registration of new control seems also the reason of crashes and messed display in alsamixer. I had not time to track the reason of this but maybe there is some one who can fix it with less effort than me.
Probably this needs some kind of simple registry in the filesystem so all alsa-lib applications can share information about new (software emulated) control.
--
Petr.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines · Petr Gladkikh
I have sound card with PCM having only mute switch (no volume control). I have installed alsa-lib-1.8.0 (release). My control list now have following PCM control (following is part of amixer output):
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 16 lines
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Front Center - Rear
Left - Rear Right - Woofer - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
Limits: Playback 0 - 0
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]
Front Center: Playback 0 [0%] [on]
Rear Left: Playback 0 [0%] [on]
Rear Right: Playback 0 [0%] [on]
Woofer: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
...
How do these controls look in /etc/asound.state after running "alsactl store"?
Clemens
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Re2: Wrong creation of emulated volume control.
Hello.
Quoted 23 lines · Clemens Ladisch
Quoted 5 lines
Quoted 5 lines
I have sound card with PCM having only mute switch (no volume control). I have installed alsa-lib-1.8.0 (release). My control list now have following PCM control (following is part of amixer output):
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 16 lines
Quoted 8 lines
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right - Front Center - Rear
Left - Rear Right - Woofer - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
- ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
Limits: Playback 0 - 0
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]Quoted 8 lines
Front Center: Playback 0 [0%] [on]
Rear Left: Playback 0 [0%] [on]
Rear Right: Playback 0 [0%] [on]
Woofer: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
?: Playback 0 [0%] [on]
...
Quoted 2 lines
How do these controls look in
/etc/asound.stateafter running "alsactl store"?
It's my fault but the subject is not correct, I did not mentioned that I had not configured any plugins yet (including svol). But the problem exists anyway.
My environment (if it helps)
Linux 2.6.9 (Gentoo)
alsa-lib 1.0.8, alsa-utils 1.0.8 (release)
Hardware: AC97 in ICH5 chipset, 6-channel C-Media 9739A (everything is on-board)
Driver: intel-8x0
Reproduction:
=[1]= Boot, everything is OK. Both 'alsactl store' and amixer produce sensible results (alsamixer screen looks messy anyway). The part of 'alsactl store' result in /etc/asound.state related to PCM is as follows (no other PCM controls present):
state.ICH5 {
. . . . .
control.26 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'PCM Playback Switch'
value false
}
. . . . .
}=[2]= aplay
^C
And now magig happens :) amixer produce the output which has been in my previous post, and 'alsactl store' fails with error message:
alsactl: control.c:2234: snd_ctl_elem_value_get_integer: Assertion `idx < sizeof(obj->value.integer.value) / sizeof(obj->value.integer.value[0])' failed. Aborted.
--
Petr
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click