Lines Matching refs:div
524 unsigned int div; in snd_sonicvibes_set_adc_rate() local
527 div = 48000 / rate; in snd_sonicvibes_set_adc_rate()
528 if (div > 8) in snd_sonicvibes_set_adc_rate()
529 div = 8; in snd_sonicvibes_set_adc_rate()
530 if ((48000 / div) == rate) { /* use the alternate clock */ in snd_sonicvibes_set_adc_rate()
537 snd_sonicvibes_out1(sonic, SV_IREG_ADC_ALT_RATE, (div - 1) << 4); in snd_sonicvibes_set_adc_rate()
545 unsigned int rate, div, r, m, n; in snd_sonicvibes_hw_constraint_dac_rate() local
550 div = 48000 / rate; in snd_sonicvibes_hw_constraint_dac_rate()
551 if (div > 8) in snd_sonicvibes_hw_constraint_dac_rate()
552 div = 8; in snd_sonicvibes_hw_constraint_dac_rate()
553 if ((48000 / div) == rate) { in snd_sonicvibes_hw_constraint_dac_rate()
569 unsigned int div; in snd_sonicvibes_set_dac_rate() local
572 div = DIV_ROUND_CLOSEST(rate * 65536, SV_FULLRATE); in snd_sonicvibes_set_dac_rate()
573 if (div > 65535) in snd_sonicvibes_set_dac_rate()
574 div = 65535; in snd_sonicvibes_set_dac_rate()
576 snd_sonicvibes_out1(sonic, SV_IREG_PCM_RATE_HIGH, div >> 8); in snd_sonicvibes_set_dac_rate()
577 snd_sonicvibes_out1(sonic, SV_IREG_PCM_RATE_LOW, div); in snd_sonicvibes_set_dac_rate()