Lines Matching refs:sb_dsp_command
184 if (sb_dsp_command(devc, 0x14)) /* 8 bit DAC using DMA */ in sb1_audio_output_block()
186 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb1_audio_output_block()
187 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb1_audio_output_block()
214 if (sb_dsp_command(devc, 0x24)) /* 8 bit ADC using DMA */ in sb1_audio_start_input()
216 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb1_audio_start_input()
217 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb1_audio_start_input()
233 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb1_audio_trigger()
258 if (sb_dsp_command(devc, 0x40)) in sb1_audio_prepare_for_input()
259 sb_dsp_command(devc, devc->tconst); in sb1_audio_prepare_for_input()
260 sb_dsp_command(devc, DSP_CMD_SPKOFF); in sb1_audio_prepare_for_input()
273 if (sb_dsp_command(devc, 0x40)) in sb1_audio_prepare_for_output()
274 sb_dsp_command(devc, devc->tconst); in sb1_audio_prepare_for_output()
275 sb_dsp_command(devc, DSP_CMD_SPKON); in sb1_audio_prepare_for_output()
350 if (sb_dsp_command(devc, 0x48)) /* DSP Block size */ in sb20_audio_output_block()
352 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb20_audio_output_block()
353 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb20_audio_output_block()
360 if (!sb_dsp_command(devc, cmd)) in sb20_audio_output_block()
389 if (sb_dsp_command(devc, 0x48)) /* DSP Block size */ in sb20_audio_start_input()
391 sb_dsp_command(devc, (unsigned char) (count & 0xff)); in sb20_audio_start_input()
392 sb_dsp_command(devc, (unsigned char) ((count >> 8) & 0xff)); in sb20_audio_start_input()
399 if (!sb_dsp_command(devc, cmd)) in sb20_audio_start_input()
414 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb20_audio_trigger()
480 if (sb_dsp_command(devc, 0x40)) in sbpro_audio_prepare_for_input()
481 sb_dsp_command(devc, devc->tconst); in sbpro_audio_prepare_for_input()
482 sb_dsp_command(devc, DSP_CMD_SPKOFF); in sbpro_audio_prepare_for_input()
484 sb_dsp_command(devc, 0xa0 | bits); /* Mono input */ in sbpro_audio_prepare_for_input()
486 sb_dsp_command(devc, 0xa8 | bits); /* Stereo input */ in sbpro_audio_prepare_for_input()
506 if (sb_dsp_command(devc, 0x40)) in sbpro_audio_prepare_for_output()
507 sb_dsp_command(devc, devc->tconst); in sbpro_audio_prepare_for_output()
508 sb_dsp_command(devc, DSP_CMD_SPKON); in sbpro_audio_prepare_for_output()
516 sb_dsp_command(devc, 0xa0 | bits); /* Mono output */ in sbpro_audio_prepare_for_output()
518 sb_dsp_command(devc, 0xa8 | bits); /* Stereo output */ in sbpro_audio_prepare_for_output()
718 sb_dsp_command(devc, 0x41); in sb16_audio_output_block()
719 sb_dsp_command(devc, (unsigned char) ((devc->speed >> 8) & 0xff)); in sb16_audio_output_block()
720 sb_dsp_command(devc, (unsigned char) (devc->speed & 0xff)); in sb16_audio_output_block()
722 sb_dsp_command(devc, (devc->bits == AFMT_S16_LE ? 0xb6 : 0xc6)); in sb16_audio_output_block()
723 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_output_block()
725 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_output_block()
726 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_output_block()
766 sb_dsp_command(devc, 0x42); in sb16_audio_start_input()
767 sb_dsp_command(devc, (unsigned char) ((devc->speed >> 8) & 0xff)); in sb16_audio_start_input()
768 sb_dsp_command(devc, (unsigned char) (devc->speed & 0xff)); in sb16_audio_start_input()
770 sb_dsp_command(devc, (devc->bits == AFMT_S16_LE ? 0xbe : 0xce)); in sb16_audio_start_input()
771 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_start_input()
773 sb_dsp_command(devc, (unsigned char) (cnt & 0xff)); in sb16_audio_start_input()
774 sb_dsp_command(devc, (unsigned char) (cnt >> 8)); in sb16_audio_start_input()
787 sb_dsp_command(devc, 0xd0); /* Halt DMA */ in sb16_audio_trigger()