Lines Matching refs:sb_dsp_command
188 if (sb_dsp_command(devc, 0x14)) /* 8 bit DAC using DMA */ in sb1_audio_output_block()
190 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb1_audio_output_block()
191 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb1_audio_output_block()
218 if (sb_dsp_command(devc, 0x24)) /* 8 bit ADC using DMA */ in sb1_audio_start_input()
220 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb1_audio_start_input()
221 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb1_audio_start_input()
237 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb1_audio_trigger()
262 if (sb_dsp_command(devc, 0x40)) in sb1_audio_prepare_for_input()
263 sb_dsp_command(devc, devc->tconst); in sb1_audio_prepare_for_input()
264 sb_dsp_command(devc, DSP_CMD_SPKOFF); in sb1_audio_prepare_for_input()
277 if (sb_dsp_command(devc, 0x40)) in sb1_audio_prepare_for_output()
278 sb_dsp_command(devc, devc->tconst); in sb1_audio_prepare_for_output()
279 sb_dsp_command(devc, DSP_CMD_SPKON); in sb1_audio_prepare_for_output()
354 if (sb_dsp_command(devc, 0x48)) /* DSP Block size */ in sb20_audio_output_block()
356 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb20_audio_output_block()
357 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb20_audio_output_block()
364 if (!sb_dsp_command(devc, cmd)) in sb20_audio_output_block()
393 if (sb_dsp_command(devc, 0x48)) /* DSP Block size */ in sb20_audio_start_input()
395 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb20_audio_start_input()
396 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb20_audio_start_input()
403 if (!sb_dsp_command(devc, cmd)) in sb20_audio_start_input()
418 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb20_audio_trigger()
484 if (sb_dsp_command(devc, 0x40)) in sbpro_audio_prepare_for_input()
485 sb_dsp_command(devc, devc->tconst); in sbpro_audio_prepare_for_input()
486 sb_dsp_command(devc, DSP_CMD_SPKOFF); in sbpro_audio_prepare_for_input()
488 sb_dsp_command(devc, 0xa0 | bits); /* Mono input */ in sbpro_audio_prepare_for_input()
490 sb_dsp_command(devc, 0xa8 | bits); /* Stereo input */ in sbpro_audio_prepare_for_input()
510 if (sb_dsp_command(devc, 0x40)) in sbpro_audio_prepare_for_output()
511 sb_dsp_command(devc, devc->tconst); in sbpro_audio_prepare_for_output()
512 sb_dsp_command(devc, DSP_CMD_SPKON); in sbpro_audio_prepare_for_output()
520 sb_dsp_command(devc, 0xa0 | bits); /* Mono output */ in sbpro_audio_prepare_for_output()
522 sb_dsp_command(devc, 0xa8 | bits); /* Stereo output */ in sbpro_audio_prepare_for_output()
722 sb_dsp_command(devc, 0x41); in sb16_audio_output_block()
723 sb_dsp_command(devc, (unsigned char) ((devc->speed >> 8) & 0xff)); in sb16_audio_output_block()
724 sb_dsp_command(devc, (unsigned char) (devc->speed & 0xff)); in sb16_audio_output_block()
726 sb_dsp_command(devc, (devc->bits == AFMT_S16_LE ? 0xb6 : 0xc6)); in sb16_audio_output_block()
727 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_output_block()
729 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_output_block()
730 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_output_block()
770 sb_dsp_command(devc, 0x42); in sb16_audio_start_input()
771 sb_dsp_command(devc, (unsigned char) ((devc->speed >> 8) & 0xff)); in sb16_audio_start_input()
772 sb_dsp_command(devc, (unsigned char) (devc->speed & 0xff)); in sb16_audio_start_input()
774 sb_dsp_command(devc, (devc->bits == AFMT_S16_LE ? 0xbe : 0xce)); in sb16_audio_start_input()
775 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_start_input()
777 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_start_input()
778 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_start_input()
791 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb16_audio_trigger()