Lines Matching refs:channels
307 static short sb1_audio_set_channels(int dev, short channels) in sb1_audio_set_channels() argument
310 return devc->channels = 1; in sb1_audio_set_channels()
355 if (devc->speed * devc->channels <= 23000) in sb20_audio_output_block()
394 if (devc->speed * devc->channels <= (devc->major == 3 ? 23000 : 13000)) in sb20_audio_start_input()
451 s = speed * devc->channels; in sb201_audio_set_speed()
454 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; in sb201_audio_set_speed()
483 if (devc->channels == 1) in sbpro_audio_prepare_for_input()
503 sb_mixer_set_stereo(devc, devc->channels == 2); in sbpro_audio_prepare_for_output()
515 if (devc->channels == 1) in sbpro_audio_prepare_for_output()
525 if (devc->channels == 1) in sbpro_audio_prepare_for_output()
545 if (devc->channels > 1 && speed > 22050) in sbpro_audio_set_speed()
552 static short sbpro_audio_set_channels(int dev, short channels) in sbpro_audio_set_channels() argument
556 if (channels == 1 || channels == 2) in sbpro_audio_set_channels()
558 if (channels != devc->channels) in sbpro_audio_set_channels()
560 devc->channels = channels; in sbpro_audio_set_channels()
561 if (devc->model == MDL_SBPRO && devc->channels == 2) in sbpro_audio_set_channels()
565 return devc->channels; in sbpro_audio_set_channels()
582 s = speed * devc->channels; in jazz16_audio_set_speed()
587 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; in jazz16_audio_set_speed()
723 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_output_block()
771 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_start_input()