* Wrong creation of emulated volume control.
@ 2005-02-14 9:55 Petr Gladkikh
2005-02-14 12:57 ` Clemens Ladisch
0 siblings, 1 reply; 3+ messages in thread
From: Petr Gladkikh @ 2005-02-14 9:55 UTC (permalink / raw)
To: Alsa-devel
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):
>>>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Wrong creation of emulated volume control.
2005-02-14 9:55 Wrong creation of emulated volume control Petr Gladkikh
@ 2005-02-14 12:57 ` Clemens Ladisch
2005-02-16 5:18 ` Re2: " Petr Gladkikh
0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2005-02-14 12:57 UTC (permalink / raw)
To: Petr Gladkikh; +Cc: Alsa-devel
Petr Gladkikh wrote:
> 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):
>
> >>>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re2: Wrong creation of emulated volume control.
2005-02-14 12:57 ` Clemens Ladisch
@ 2005-02-16 5:18 ` Petr Gladkikh
0 siblings, 0 replies; 3+ messages in thread
From: Petr Gladkikh @ 2005-02-16 5:18 UTC (permalink / raw)
To: alsa-devel; +Cc: Clemens Ladisch
Hello.
Clemens Ladisch wrote:
>>> 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):
>>>
>>> >>>
>>> 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"?
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-16 5:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14 9:55 Wrong creation of emulated volume control Petr Gladkikh
2005-02-14 12:57 ` Clemens Ladisch
2005-02-16 5:18 ` Re2: " Petr Gladkikh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.