From: Tim Burrell <tim.burrell@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Possible bug in snd_mixer_selem_set_playback_switch_all
Date: Mon, 30 Apr 2007 14:19:30 -0300 [thread overview]
Message-ID: <46362522.3050301@gmail.com> (raw)
Hi there,
I've encountered a situation where if I very quickly, and repeatedly
make calls to snd_mixer_selem_set_playback_switch_all I get some strange
undefined behavior.
The situation is I'm looping over all mixer elements (on all sound
cards) to do a system wide mute / unmute. If I make numerous calls to
this function it ends up that some mixers only toggle switches on
specific channels (right or left), and sometimes the volume on certain
(random) channels gets set to some also random (usually 0, but can be
anywhere between 0 and max) level.
I've been able to remedy the situation by inserting a 10ms delay in
between calls to snd_mixer_selem_set_playback_switch_all. Clearly
though this is undesirable.
I don't have more than one sound card to test on so I can't be sure if
it's a problem with all drivers or just mine (hda-intel).
I can certainly provide more information if requested, just let me know
what I can do. Or if I'm doing something wrong I'd love to be made
aware of something I can do to fix this behavior.
Thanks,
Tim.
reply other threads:[~2007-04-30 17:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=46362522.3050301@gmail.com \
--to=tim.burrell@gmail.com \
--cc=alsa-devel@alsa-project.org \
/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.