@@ -154,7 +154,7 @@ static void vx2_reset_dsp(vx_core_t *_chip)
154154 /* set the reset dsp bit to 0 */
155155 vx_outl (chip , CDSP , chip -> regCDSP & ~VX_CDSP_DSP_RESET_MASK );
156156
157- snd_vx_delay ( _chip , XX_DSP_RESET_WAIT_TIME );
157+ mdelay ( XX_DSP_RESET_WAIT_TIME );
158158
159159 chip -> regCDSP |= VX_CDSP_DSP_RESET_MASK ;
160160 /* set the reset dsp bit to 1 */
@@ -362,10 +362,10 @@ static int vx2_load_xilinx_binary(vx_core_t *chip, const struct firmware *xilinx
362362 /* XILINX reset (wait at least 1 milisecond between reset on and off). */
363363 vx_outl (chip , CNTRL , VX_CNTRL_REGISTER_VALUE | VX_XILINX_RESET_MASK );
364364 vx_inl (chip , CNTRL );
365- snd_vx_delay ( chip , 10 );
365+ msleep ( 10 );
366366 vx_outl (chip , CNTRL , VX_CNTRL_REGISTER_VALUE );
367367 vx_inl (chip , CNTRL );
368- snd_vx_delay ( chip , 10 );
368+ msleep ( 10 );
369369
370370 if (chip -> type == VX_TYPE_BOARD )
371371 port = VX_CNTRL ;
@@ -381,7 +381,7 @@ static int vx2_load_xilinx_binary(vx_core_t *chip, const struct firmware *xilinx
381381 }
382382 put_xilinx_data (chip , port , 4 , 0xff ); /* end signature */
383383
384- snd_vx_delay ( chip , 200 );
384+ msleep ( 200 );
385385
386386 /* test after loading (is buggy with VX222) */
387387 if (chip -> type != VX_TYPE_BOARD ) {
@@ -720,17 +720,17 @@ static void vx2_reset_codec(vx_core_t *_chip)
720720 /* Set the reset CODEC bit to 0. */
721721 vx_outl (chip , CDSP , chip -> regCDSP & ~ VX_CDSP_CODEC_RESET_MASK );
722722 vx_inl (chip , CDSP );
723- snd_vx_delay ( _chip , 10 );
723+ msleep ( 10 );
724724 /* Set the reset CODEC bit to 1. */
725725 chip -> regCDSP |= VX_CDSP_CODEC_RESET_MASK ;
726726 vx_outl (chip , CDSP , chip -> regCDSP );
727727 vx_inl (chip , CDSP );
728728 if (_chip -> type == VX_TYPE_BOARD ) {
729- snd_vx_delay ( _chip , 1 );
729+ msleep ( 1 );
730730 return ;
731731 }
732732
733- snd_vx_delay ( _chip , 5 ); /* additionnel wait time for AKM's */
733+ msleep ( 5 ); /* additionnel wait time for AKM's */
734734
735735 vx2_write_codec_reg (_chip , AKM_CODEC_POWER_CONTROL_CMD ); /* DAC power up, ADC power up, Vref power down */
736736
0 commit comments