Update of /cvsroot/alsa/alsa-kernel/pci/ac97
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20292

Modified Files:
        ac97_codec.c ac97_local.h ac97_patch.c 
Log Message:
- fixed the center/mic share switch on ALC65x.
- created AC97_SINGLE_VALUME() macro.



Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- ac97_codec.c        14 Apr 2004 17:25:51 -0000      1.129
+++ ac97_codec.c        16 Apr 2004 15:01:06 -0000      1.130
@@ -880,7 +880,7 @@
                .info = snd_ac97_info_single,
                .get = snd_ac97_get_single,
                .put = snd_ac97_put_spsa,
-               .private_value = AC97_EXTENDED_STATUS | (4 << 8) | (3 << 16) | (0 << 
24),
+               .private_value = AC97_SINGLE_VALUE(AC97_EXTENDED_STATUS, 4, 3, 0)
        },
 };
 

Index: ac97_local.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_local.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ac97_local.h        23 Oct 2003 14:34:52 -0000      1.4
+++ ac97_local.h        16 Apr 2004 15:01:08 -0000      1.5
@@ -22,10 +22,11 @@
  *
  */
 
+#define AC97_SINGLE_VALUE(reg,shift,mask,invert) ((reg) | ((shift) << 8) | ((mask) << 
16) | ((invert) << 24))
 #define AC97_SINGLE(xname, reg, shift, mask, invert) \
 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .info = snd_ac97_info_single, \
   .get = snd_ac97_get_single, .put = snd_ac97_put_single, \
-  .private_value = (reg) | ((shift) << 8) | ((mask) << 16) | ((invert) << 24) }
+  .private_value =  AC97_SINGLE_VALUE(reg, shift, mask, invert) }
 
 /* ac97_codec.c */
 extern const char *snd_ac97_stereo_enhancements[];

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- ac97_patch.c        7 Apr 2004 07:25:06 -0000       1.43
+++ ac97_patch.c        16 Apr 2004 15:01:08 -0000      1.44
@@ -1090,6 +1090,7 @@
                .info = snd_ac97_info_single,
                .get = snd_ac97_alc650_mic_get,
                .put = snd_ac97_alc650_mic_put,
+               .private_value = AC97_SINGLE_VALUE(0, 0, 1, 0) /* only mask needed */
        },
 };
 
@@ -1190,6 +1191,7 @@
                .info = snd_ac97_info_single,
                .get = snd_ac97_alc655_mic_get,
                .put = snd_ac97_alc655_mic_put,
+               .private_value = AC97_SINGLE_VALUE(0, 0, 1, 0) /* only mask needed */
        },
 };
 



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to