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

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



Index: vx222_ops.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pci/vx222/vx222_ops.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vx222_ops.c 12 Mar 2003 18:17:45 -0000      1.4
+++ vx222_ops.c 21 Mar 2003 17:41:57 -0000      1.5
@@ -251,10 +251,10 @@
                          vx_pipe_t *pipe, int count)
 {
        unsigned long port = vx2_reg_addr(chip, VX_DMA);
-       int offset = frames_to_bytes(runtime, pipe->hw_ptr);
+       int offset = pipe->hw_ptr;
        u32 *addr = (u32 *)(runtime->dma_area + offset);
 
-       snd_assert(count % 12 == 0, return);
+       snd_assert(count % 4 == 0, return);
 
        vx2_setup_pseudo_dma(chip, 1);
 
@@ -272,7 +272,7 @@
                addr = (u32 *)runtime->dma_area;
                pipe->hw_ptr = 0;
        }
-       pipe->hw_ptr += bytes_to_frames(runtime, count);
+       pipe->hw_ptr += count;
        count >>= 2; /* in 32bit words */
        /* Transfer using pseudo-dma. */
        while (count-- > 0) {
@@ -288,11 +288,11 @@
 static void vx2_dma_read(vx_core_t *chip, snd_pcm_runtime_t *runtime,
                         vx_pipe_t *pipe, int count)
 {
-       int offset = frames_to_bytes(runtime, pipe->hw_ptr);
+       int offset = pipe->hw_ptr;
        u32 *addr = (u32 *)(runtime->dma_area + offset);
        unsigned long port = vx2_reg_addr(chip, VX_DMA);
 
-       snd_assert(count % 12 == 0, return);
+       snd_assert(count % 4 == 0, return);
 
        vx2_setup_pseudo_dma(chip, 0);
        /* Transfer using pseudo-dma.
@@ -307,7 +307,7 @@
                addr = (u32 *)runtime->dma_area;
                pipe->hw_ptr = 0;
        }
-       pipe->hw_ptr += bytes_to_frames(runtime, count);
+       pipe->hw_ptr += count;
        count >>= 2; /* in 32bit words */
        /* Transfer using pseudo-dma. */
        while (count-- > 0)



-------------------------------------------------------
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