All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Gladkikh <batyi@mail.ru>
To: alsa-devel@lists.sourceforge.net
Cc: Clemens Ladisch <clemens@ladisch.de>
Subject: Re2: Wrong creation of emulated volume control.
Date: Wed, 16 Feb 2005 11:18:28 +0600	[thread overview]
Message-ID: <4212D7A4.5080705@mail.ru> (raw)
In-Reply-To: <Pine.HPX.4.33n.0502141356140.10867-100000@studcom.urz.uni-halle.de>

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

      reply	other threads:[~2005-02-16  5:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Petr Gladkikh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4212D7A4.5080705@mail.ru \
    --to=batyi@mail.ru \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.