Lines Matching refs:channels
311 static short sb1_audio_set_channels(int dev, short channels) in sb1_audio_set_channels() argument
314 return devc->channels = 1; in sb1_audio_set_channels()
359 if (devc->speed * devc->channels <= 23000) in sb20_audio_output_block()
398 if (devc->speed * devc->channels <= (devc->major == 3 ? 23000 : 13000)) in sb20_audio_start_input()
455 s = speed * devc->channels; in sb201_audio_set_speed()
458 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; in sb201_audio_set_speed()
487 if (devc->channels == 1) in sbpro_audio_prepare_for_input()
507 sb_mixer_set_stereo(devc, devc->channels == 2); in sbpro_audio_prepare_for_output()
519 if (devc->channels == 1) in sbpro_audio_prepare_for_output()
529 if (devc->channels == 1) in sbpro_audio_prepare_for_output()
549 if (devc->channels > 1 && speed > 22050) in sbpro_audio_set_speed()
556 static short sbpro_audio_set_channels(int dev, short channels) in sbpro_audio_set_channels() argument
560 if (channels == 1 || channels == 2) in sbpro_audio_set_channels()
562 if (channels != devc->channels) in sbpro_audio_set_channels()
564 devc->channels = channels; in sbpro_audio_set_channels()
565 if (devc->model == MDL_SBPRO && devc->channels == 2) in sbpro_audio_set_channels()
569 return devc->channels; in sbpro_audio_set_channels()
586 s = speed * devc->channels; in jazz16_audio_set_speed()
591 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; in jazz16_audio_set_speed()
727 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_output_block()
775 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) + in sb16_audio_start_input()