From: David Moylan <dave@westphila.net>
To: alsa-devel@alsa-project.org
Subject: Bug in snd-powemac?
Date: Tue, 02 Apr 2002 14:12:21 -0500 [thread overview]
Message-ID: <3CAA0295.7070802@westphila.net> (raw)
I've been hunting through the snd-powermac source trying to get sound to
work on my Powerbook G4 (3,2). This didn't get sound working, but I
think I found an easily correctable bug in the code.
I'd like some input from anyone who might be more more familiar with
than code than me. The bug is in the function snd_pmac_awacs_put_switch
defined in awacs.c at about line 214 (i've been adding snd_printk debug
messages so my line numbers may be slightly off). The function is
similar to snd_pmac_awacs_put_volume which I believe is coded correctly.
The problem is that _put_switch doesn't allow a switch to write to any
register but register 1. It is hard coded. At the very least though,
one could expect desired writes to registers 0 and 1. Besides, the
switches themselves carry a parameter specifying which register to use.
I believe the code should be changed to allow writing to the specified
register. Also, to make the code more clear and I think more
functional, the desired register and bitmask should be stripped off from
kcontrol->private_value and stored in variables reg and bitmask. Again,
this is similar to _put_volume.
Any thoughts?
Dave Moylan
reply other threads:[~2002-04-02 19:13 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=3CAA0295.7070802@westphila.net \
--to=dave@westphila.net \
--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.