Update of /cvsroot/alsa/alsa-kernel/usb
In directory usw-pr-cvs1:/tmp/cvs-serv1372

Modified Files:
        usbaudio.c 
Log Message:
- reset each interface at initialization.
- added more comments.



Index: usbaudio.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbaudio.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- usbaudio.c  23 Sep 2002 15:51:42 -0000      1.10
+++ usbaudio.c  30 Sep 2002 13:39:03 -0000      1.11
@@ -150,8 +150,8 @@
        unsigned int phase;      /* phase accumulator */
        unsigned int maxpacksize;       /* max packet size in bytes */
        unsigned int maxframesize;      /* max packet size in frames */
-       unsigned int curpacksize;       /* current packet size in bytes */
-       unsigned int curframesize;      /* current packet size in frames */
+       unsigned int curpacksize;       /* current packet size in bytes (for capture) 
+*/
+       unsigned int curframesize;      /* current packet size in frames (for capture) 
+*/
        unsigned int fill_max: 1;       /* fill max packet size always */
 
        unsigned int running: 1;        /* running status */
@@ -1856,6 +1856,7 @@
                        continue;
                }
                parse_audio_endpoints(chip, buffer, buflen, j);
+               usb_set_interface(dev, j, 0); /* reset the current interface */
                usb_driver_claim_interface(&usb_audio_driver, iface, (void *)-1);
        }
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to