Update of /cvsroot/alsa/alsa-kernel/drivers/vx
In directory sc8-pr-cvs1:/tmp/cvs-serv9263/drivers/vx

Modified Files:
        vx_pcm.c 
Log Message:
- added hw_constraint to align 4bytes.
  this will solve the 24bit problem on vx222.



Index: vx_pcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/vx/vx_pcm.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- vx_pcm.c    23 May 2003 16:00:43 -0000      1.1
+++ vx_pcm.c    24 Nov 2003 15:27:28 -0000      1.2
@@ -611,6 +611,10 @@
        runtime->hw.period_bytes_min = chip->ibl.size;
        runtime->private_data = pipe;
 
+       /* align to 4 bytes (otherwise will be problematic when 24bit is used) */ 
+       snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
+       snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
+
        return 0;
 }
 
@@ -1014,6 +1018,10 @@
        runtime->hw = vx_pcm_capture_hw;
        runtime->hw.period_bytes_min = chip->ibl.size;
        runtime->private_data = pipe;
+
+       /* align to 4 bytes (otherwise will be problematic when 24bit is used) */ 
+       snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
+       snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
 
        return 0;
 }



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to