Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1:/tmp/cvs-serv30904

Modified Files:
        via82xx.c 
Log Message:
Zinx Verituse <[EMAIL PROTECTED]>:

fixed the calculation of the port for "Catpure Source" control switch.


Index: via82xx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/via82xx.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- via82xx.c   23 Oct 2003 14:34:52 -0000      1.63
+++ via82xx.c   23 Oct 2003 16:46:14 -0000      1.64
@@ -1402,7 +1402,7 @@
 static int snd_via8233_capture_source_get(snd_kcontrol_t *kcontrol, 
snd_ctl_elem_value_t *ucontrol)
 {
        via82xx_t *chip = snd_kcontrol_chip(kcontrol);
-       unsigned long port = chip->port + kcontrol->id.index ? 
(VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL;
+       unsigned long port = chip->port + (kcontrol->id.index ? 
(VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL);
        ucontrol->value.enumerated.item[0] = inb(port) & VIA_REG_CAPTURE_CHANNEL_MIC ? 
1 : 0;
        return 0;
 }
@@ -1410,7 +1410,7 @@
 static int snd_via8233_capture_source_put(snd_kcontrol_t *kcontrol, 
snd_ctl_elem_value_t *ucontrol)
 {
        via82xx_t *chip = snd_kcontrol_chip(kcontrol);
-       unsigned long port = chip->port + kcontrol->id.index ? 
(VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL;
+       unsigned long port = chip->port + (kcontrol->id.index ? 
(VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL);
        unsigned long flags;
        u8 val, oval;
 



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to