Update of /cvsroot/alsa/alsa-lib/src/mixer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23073
Modified Files:
simple.c
Log Message:
fixed the event handling of enum elements.
Index: simple.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/mixer/simple.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- simple.c 15 Apr 2004 12:52:49 -0000 1.63
+++ simple.c 2 May 2004 11:59:08 -0000 1.64
@@ -329,8 +329,12 @@
csw = s->str[CAPT].sw;
s->str[CAPT].sw = ~0U;
- if (s->ctls[CTL_ENUMLIST].elem)
- return elem_read_enum(s);
+ if (s->ctls[CTL_ENUMLIST].elem) {
+ err = elem_read_enum(s);
+ if (err < 0)
+ return err;
+ goto __skip_cswitch;
+ }
if (s->ctls[CTL_PLAYBACK_VOLUME].elem)
err = elem_read_volume(s, PLAY, CTL_PLAYBACK_VOLUME);
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog