alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Ondrej Zary <linux@rainbow-software.org>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: calling snd_ctl_notify from mixer ctl_put
Date: Sat, 13 Oct 2012 23:23:44 +0200	[thread overview]
Message-ID: <201210132323.44951.linux@rainbow-software.org> (raw)
In-Reply-To: <5077B2A1.5070608@ladisch.de>

On Friday 12 October 2012 08:03:13 Clemens Ladisch wrote:
> Ondrej Zary wrote:
> > I want to enable/disable some mixer controls based on state of another
> > control (switching between limiter and AGC mode). So I (re)set the
> > SNDRV_CTL_ELEM_ACCESS_INACTIVE flag in kctl->vd[0].access
> > and then call snd_ctl_notify(card, SNDRV_CTL_EVENT_MASK_INFO, &kctl->id);
> > Everyting from ctl_put() mixer callback.
> >
> > When changing the control value in alsamixer, it crashes with:
> > alsamixer: simple.c:948: snd_mixer_selem_get_enum_item: Assertion
> > `(elem)->type == SND_MIXER_ELEM_SIMPLE' failed.
>
> Looks like a bug in alsamixer.

Thanks. I've now tried some other mixers that are present in Debian and most 
of them are unusable:
alsamixergui: does not understand ENUM controls
gnome-alsamixer: does not understand ENUM controls
gnome-volume-control: crashes like alsamixer
xfce4-mixer: crashes like alsamixer
kmix (TDE 3.5.13): does not update controls when switching limiter/AGC
kmix (KDE 4): crashes like alsamixer
(other mixers won't even run as they seem to be OSS-only)

But there's one that works fine: QasMixer.

-- 
Ondrej Zary

  reply	other threads:[~2012-10-13 21:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 19:29 calling snd_ctl_notify from mixer ctl_put Ondrej Zary
2012-10-12  6:03 ` Clemens Ladisch
2012-10-13 21:23   ` Ondrej Zary [this message]
2012-10-21  1:06     ` Raymond Yau

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=201210132323.44951.linux@rainbow-software.org \
    --to=linux@rainbow-software.org \
    --cc=alsa-devel@alsa-project.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).