Update of /cvsroot/alsa/alsa-driver/pcmcia/vx
In directory sc8-pr-cvs1:/tmp/cvs-serv19024/pcmcia/vx

Modified Files:
        vxp_ops.c 
Log Message:
- fixed the capture.
- fixed the handling of async events.  now duplex mode is working.



Index: vxp_ops.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pcmcia/vx/vxp_ops.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vxp_ops.c   28 Feb 2003 14:19:17 -0000      1.5
+++ vxp_ops.c   21 Mar 2003 17:41:57 -0000      1.6
@@ -365,7 +365,7 @@
                          vx_pipe_t *pipe, int count)
 {
        long port = vxp_reg_addr(chip, VX_DMA);
-       int offset = frames_to_bytes(runtime, pipe->hw_ptr);
+       int offset = pipe->hw_ptr;
        unsigned short *addr = (unsigned short *)(runtime->dma_area + offset);
 
        vx_setup_pseudo_dma(chip, 1);
@@ -381,7 +381,7 @@
                addr = (unsigned short *)runtime->dma_area;
                pipe->hw_ptr = 0;
        }
-       pipe->hw_ptr += bytes_to_frames(runtime, count);
+       pipe->hw_ptr += count;
        count >>= 1; /* in 16bit words */
        /* Transfer using pseudo-dma. */
        while (count-- > 0) {
@@ -405,10 +405,10 @@
 {
        struct snd_vxpocket *pchip = (struct snd_vxpocket *)chip;
        long port = vxp_reg_addr(chip, VX_DMA);
-       int offset = frames_to_bytes(runtime, pipe->hw_ptr);
+       int offset = pipe->hw_ptr;
        unsigned short *addr = (unsigned short *)(runtime->dma_area + offset);
 
-       snd_assert(count % 6 == 0, return);
+       snd_assert(count % 2 == 0, return);
        vx_setup_pseudo_dma(chip, 0);
        if (offset + count > pipe->buffer_bytes) {
                int length = pipe->buffer_bytes - offset;
@@ -420,7 +420,7 @@
                addr = (unsigned short *)runtime->dma_area;
                pipe->hw_ptr = 0;
        }
-       pipe->hw_ptr += bytes_to_frames(runtime, count);
+       pipe->hw_ptr += count;
        count >>= 1; /* in 16bit words */
        /* Transfer using pseudo-dma. */
        while (count-- > 1)



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to