Lines Matching defs:channels
311 static short sb1_audio_set_channels(int dev, short channels)
314 return devc->channels = 1;
359 if (devc->speed * devc->channels <= 23000)
398 if (devc->speed * devc->channels <= (devc->major == 3 ? 23000 : 13000))
445 int s = speed * devc->channels;
457 speed = ((1000000 + tmp / 2) / tmp) / devc->channels;
486 if (devc->channels == 1)
506 sb_mixer_set_stereo(devc, devc->channels == 2);
518 if (devc->channels == 1)
528 if (devc->channels == 1)
548 if (devc->channels > 1 && speed > 22050)
555 static short sbpro_audio_set_channels(int dev, short channels)
559 if (channels == 1 || channels == 2)
561 if (channels != devc->channels)
563 devc->channels = channels;
564 if (devc->model == MDL_SBPRO && devc->channels == 2)
568 return devc->channels;
578 int s = speed * devc->channels;
588 speed = ((1000000 + tmp / 2) / tmp) / devc->channels;
724 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) +
772 sb_dsp_command(devc, ((devc->channels == 2 ? 0x20 : 0) +