rate 213 block/compat_ioctl.c unsigned char rate; rate 348 block/compat_ioctl.c err |= __get_user(f->rate, &uf->rate); rate 432 block/compat_ioctl.c err |= __put_user(f->rate, &uf->rate); rate 20 include/asm-arm/plat-s3c24xx/clock.h unsigned long rate; rate 24 include/asm-arm/plat-s3c24xx/clock.h int (*set_rate)(struct clk *c, unsigned long rate); rate 26 include/asm-arm/plat-s3c24xx/clock.h unsigned long (*round_rate)(struct clk *c, unsigned long rate); rate 38 include/asm-mn10300/unit-asb2303/timex.h unsigned rate; rate 43 include/asm-mn10300/unit-asb2303/timex.h rate = MN10300_JCCLK / HZ; rate 45 include/asm-mn10300/unit-asb2303/timex.h if (rate > TMJCBR_MAX) { rate 47 include/asm-mn10300/unit-asb2303/timex.h rate = MN10300_JCCLK / 8 / HZ; rate 49 include/asm-mn10300/unit-asb2303/timex.h if (rate > TMJCBR_MAX) { rate 51 include/asm-mn10300/unit-asb2303/timex.h rate = MN10300_JCCLK / 32 / HZ; rate 53 include/asm-mn10300/unit-asb2303/timex.h if (rate > TMJCBR_MAX) rate 58 include/asm-mn10300/unit-asb2303/timex.h TMJCBR = rate - 1; rate 38 include/asm-mn10300/unit-asb2305/timex.h unsigned rate; rate 43 include/asm-mn10300/unit-asb2305/timex.h rate = MN10300_JCCLK / HZ; rate 45 include/asm-mn10300/unit-asb2305/timex.h if (rate > TMJCBR_MAX) { rate 47 include/asm-mn10300/unit-asb2305/timex.h rate = MN10300_JCCLK / 8 / HZ; rate 49 include/asm-mn10300/unit-asb2305/timex.h if (rate > TMJCBR_MAX) { rate 51 include/asm-mn10300/unit-asb2305/timex.h rate = MN10300_JCCLK / 32 / HZ; rate 53 include/asm-mn10300/unit-asb2305/timex.h if (rate > TMJCBR_MAX) rate 58 include/asm-mn10300/unit-asb2305/timex.h TMJCBR = rate - 1; rate 318 include/linux/ac97_codec.h int (*digital)(struct ac97_codec *codec, int slots, int rate, int mode); rate 31 include/linux/fd.h rate, /* data rate. |= 0x40 for perpendicular */ rate 34 include/linux/fd.h #define FD_SIZECODE(floppy) (((((floppy)->rate&FD_SIZECODEMASK)>> 3)+ 2) %8) rate 35 include/linux/fd.h #define FD_SECTSIZE(floppy) ( (floppy)->rate & FD_2M ? \ rate 357 include/linux/fd.h unsigned char rate; rate 285 include/linux/isdnif.h __u8 rate; rate 133 include/linux/pkt_cls.h struct tc_ratespec rate; rate 83 include/linux/pkt_sched.h __u32 rate; rate 137 include/linux/pkt_sched.h struct tc_ratespec rate; rate 270 include/linux/pkt_sched.h struct tc_ratespec rate; rate 398 include/net/ieee80211.h u16 rate; /* in 100 kbps */ rate 1226 include/net/ieee80211.h switch (rate & ~IEEE80211_BASIC_RATE_MASK) { rate 1242 include/net/ieee80211.h switch (rate & ~IEEE80211_BASIC_RATE_MASK) { rate 20 include/net/sch_generic.h struct tc_ratespec rate; rate 514 include/net/sch_generic.h int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; rate 517 include/net/sch_generic.h slot >>= rtab->rate.cell_log; rate 153 include/rdma/ib_sa.h u8 rate; rate 188 include/rdma/ib_sa.h u8 rate; rate 54 include/rdma/ib_user_sa.h __u8 rate; rate 37 include/sound/ak4xxx-adda.h void (*set_rate_val)(struct snd_akm4xxx *ak, unsigned int rate); rate 277 include/sound/pcm.h unsigned int rate; /* rate in Hz */ rate 44 include/sound/pcm_oss.h int rate; /* requested rate */ rate 112 net/can/proc.c unsigned long rate; rate 124 net/can/proc.c rate = (count * HZ) / (newjif - oldjif); rate 126 net/can/proc.c return rate; rate 114 net/core/gen_estimator.c u32 rate; rate 123 net/core/gen_estimator.c rate = (nbytes - e->last_bytes)<<(7 - idx); rate 125 net/core/gen_estimator.c e->avbps += ((long)rate - (long)e->avbps) >> e->ewma_log; rate 128 net/core/gen_estimator.c rate = (npackets - e->last_packets)<<(12 - idx); rate 130 net/core/gen_estimator.c e->avpps += ((long)rate - (long)e->avpps) >> e->ewma_log; rate 55 net/ieee80211/ieee80211_wx.c u8 rate; rate 126 net/ieee80211/ieee80211_wx.c rate = network->rates_ex[j++] & 0x7F; rate 128 net/ieee80211/ieee80211_wx.c rate = network->rates[i++] & 0x7F; rate 130 net/ieee80211/ieee80211_wx.c iwe.u.bitrate.value = ((rate & 0x7f) * 500000); rate 136 net/ieee80211/ieee80211_wx.c rate = network->rates_ex[j] & 0x7F; rate 138 net/ieee80211/ieee80211_wx.c iwe.u.bitrate.value = ((rate & 0x7f) * 500000); rate 635 net/mac80211/cfg.c int rate = (params->supported_rates[i] & 0x7f) * 5; rate 637 net/mac80211/cfg.c if (sband->bitrates[j].bitrate == rate) rate 193 net/mac80211/ieee80211_i.h struct ieee80211_rate *rate; rate 209 net/mac80211/mesh.c int len, i, rate; rate 219 net/mac80211/mesh.c rate = sband->bitrates[i].bitrate; rate 220 net/mac80211/mesh.c *pos++ = (u8) (rate / 5); rate 228 net/mac80211/mesh.c rate = sband->bitrates[i].bitrate; rate 229 net/mac80211/mesh.c *pos++ = (u8) (rate / 5); rate 213 net/mac80211/mesh_hwmp.c int rate, err; rate 226 net/mac80211/mesh_hwmp.c rate = sband->bitrates[sta->last_txrate_idx].bitrate; rate 227 net/mac80211/mesh_hwmp.c tx_time = (device_constant + 10 * test_frame_len / rate); rate 83 net/mac80211/mlme.c int rate = (bss->supp_rates[i] & 0x7F) * 5; rate 86 net/mac80211/mlme.c if (sband->bitrates[j].bitrate == rate) { rate 118 net/mac80211/mlme.c u8 rate = 0; rate 121 net/mac80211/mlme.c rate = elems->supp_rates[i]; rate 123 net/mac80211/mlme.c rate = elems->ext_supp_rates rate 125 net/mac80211/mlme.c own_rate = 5 * (rate & 0x7f); rate 177 net/mac80211/mlme.c struct ieee80211_rate *rate = &sband->bitrates[i]; rate 190 net/mac80211/mlme.c *pos = rate->bitrate / 5; rate 336 net/mac80211/mlme.c int rate = sband->bitrates[i].bitrate; rate 337 net/mac80211/mlme.c *pos++ = (u8) (rate / 5); rate 350 net/mac80211/mlme.c int rate = sband->bitrates[i].bitrate; rate 351 net/mac80211/mlme.c *pos++ = (u8) (rate / 5); rate 1310 net/mac80211/mlme.c int rate = (elems.supp_rates[i] & 0x7f) * 5; rate 1312 net/mac80211/mlme.c if (rate > 110) rate 1316 net/mac80211/mlme.c if (sband->bitrates[j].bitrate == rate) rate 1324 net/mac80211/mlme.c int rate = (elems.ext_supp_rates[i] & 0x7f) * 5; rate 1326 net/mac80211/mlme.c if (rate > 110) rate 1330 net/mac80211/mlme.c if (sband->bitrates[j].bitrate == rate) rate 1600 net/mac80211/mlme.c int rate = local->hw.wiphy->bands[band]-> rate 1602 net/mac80211/mlme.c rx_timestamp = rx_status->mactime + (24 * 8 * 10 / rate); rate 2038 net/mac80211/mlme.c int rate = sband->bitrates[i].bitrate; rate 2039 net/mac80211/mlme.c *pos++ = (u8) (rate / 5); rate 235 net/mac80211/rate.c struct ieee80211_rate *rate = &sband->bitrates[i]; rate 236 net/mac80211/rate.c if (sband->bitrates[sel->rate_idx].bitrate < rate->bitrate) rate 240 net/mac80211/rate.c !(rate->flags & IEEE80211_RATE_ERP_G)) rate 350 net/mac80211/rc80211_minstrel.c int erp = !!(rate->flags & IEEE80211_RATE_ERP_G); rate 353 net/mac80211/rc80211_minstrel.c rate->bitrate, erp, 1); rate 355 net/mac80211/rc80211_minstrel.c rate->bitrate, erp, 1); rate 70 net/mac80211/rc80211_pid.h int rate; rate 56 net/mac80211/rc80211_pid_debugfs.c evd.rate = rate; rate 66 net/mac80211/rc80211_pid_debugfs.c evd.rate = rate; rate 175 net/mac80211/rc80211_pid_debugfs.c ev->data.index, ev->data.rate); rate 179 net/mac80211/rc80211_pid_debugfs.c ev->data.index, ev->data.rate); rate 151 net/mac80211/rx.c *pos = rate->bitrate / 5; rate 160 net/mac80211/rx.c else if (rate->flags & IEEE80211_RATE_ERP_G) rate 286 net/mac80211/rx.c ieee80211_add_rx_radiotap_header(local, skb, status, rate, rate 1683 net/mac80211/rx.c u8 rate; rate 1706 net/mac80211/rx.c rthdr->rate = rx->rate->bitrate / 5; rate 1928 net/mac80211/rx.c rx.rate = rate; rate 2033 net/mac80211/rx.c struct ieee80211_rate *rate; rate 2065 net/mac80211/rx.c rate = &sband->bitrates[status.rate_idx]; rate 2068 net/mac80211/rx.c &status, rate); rate 2109 net/mac80211/rx.c rate = &sband->bitrates[status.rate_idx]; rate 2111 net/mac80211/rx.c &status, rate); rate 2187 net/mac80211/rx.c struct ieee80211_rate *rate = NULL; rate 2205 net/mac80211/rx.c rate = &sband->bitrates[status->rate_idx]; rate 2220 net/mac80211/rx.c skb = ieee80211_rx_monitor(local, skb, status, rate); rate 2227 net/mac80211/rx.c __ieee80211_rx_handle_packet(hw, skb, status, rate); rate 44 net/mac80211/tx.c int rate, mrate, erp, dur, i; rate 110 net/mac80211/tx.c rate = -1; rate 120 net/mac80211/tx.c rate = r->bitrate; rate 142 net/mac80211/tx.c if (rate == -1) { rate 145 net/mac80211/tx.c rate = mrate; rate 152 net/mac80211/tx.c dur = ieee80211_frame_duration(local, 10, rate, erp, rate 550 net/mac80211/tx.c struct ieee80211_rate *rate; rate 558 net/mac80211/tx.c rate = &sband->bitrates[tx->rate_idx]; rate 561 net/mac80211/tx.c if (sband->bitrates[idx].bitrate > rate->bitrate) rate 206 net/mac80211/util.c 4 * rate); /* T_SYM x N_SYM */ rate 221 net/mac80211/util.c dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); rate 244 net/mac80211/util.c erp = rate->flags & IEEE80211_RATE_ERP_G; rate 247 net/mac80211/util.c dur = ieee80211_frame_duration(local, frame_len, rate->bitrate, erp, rate 259 net/mac80211/util.c struct ieee80211_rate *rate; rate 270 net/mac80211/util.c rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; rate 277 net/mac80211/util.c erp = rate->flags & IEEE80211_RATE_ERP_G; rate 281 net/mac80211/util.c dur = ieee80211_frame_duration(local, 10, rate->bitrate, rate 284 net/mac80211/util.c dur += ieee80211_frame_duration(local, frame_len, rate->bitrate, rate 287 net/mac80211/util.c dur += ieee80211_frame_duration(local, 10, rate->bitrate, rate 300 net/mac80211/util.c struct ieee80211_rate *rate; rate 311 net/mac80211/util.c rate = &sband->bitrates[frame_txctl->control.rts_cts_rate_idx]; rate 317 net/mac80211/util.c erp = rate->flags & IEEE80211_RATE_ERP_G; rate 321 net/mac80211/util.c dur = ieee80211_frame_duration(local, frame_len, rate->bitrate, rate 325 net/mac80211/util.c dur += ieee80211_frame_duration(local, 10, rate->bitrate, rate 588 net/mac80211/wext.c u32 target_rate = rate->value / 100000; rate 601 net/mac80211/wext.c if (rate->value < 0) rate 610 net/mac80211/wext.c if (rate->fixed) rate 640 net/mac80211/wext.c rate->value = sband->bitrates[sta->last_txrate_idx].bitrate; rate 642 net/mac80211/wext.c rate->value = 0; rate 649 net/mac80211/wext.c rate->value *= 100000; rate 61 net/netfilter/ipvs/ip_vs_est.c u32 rate; rate 75 net/netfilter/ipvs/ip_vs_est.c rate = (n_conns - e->last_conns)<<9; rate 77 net/netfilter/ipvs/ip_vs_est.c e->cps += ((long)rate - (long)e->cps)>>2; rate 80 net/netfilter/ipvs/ip_vs_est.c rate = (n_inpkts - e->last_inpkts)<<9; rate 82 net/netfilter/ipvs/ip_vs_est.c e->inpps += ((long)rate - (long)e->inpps)>>2; rate 85 net/netfilter/ipvs/ip_vs_est.c rate = (n_outpkts - e->last_outpkts)<<9; rate 87 net/netfilter/ipvs/ip_vs_est.c e->outpps += ((long)rate - (long)e->outpps)>>2; rate 90 net/netfilter/ipvs/ip_vs_est.c rate = (n_inbytes - e->last_inbytes)<<4; rate 92 net/netfilter/ipvs/ip_vs_est.c e->inbps += ((long)rate - (long)e->inbps)>>2; rate 95 net/netfilter/ipvs/ip_vs_est.c rate = (n_outbytes - e->last_outbytes)<<4; rate 97 net/netfilter/ipvs/ip_vs_est.c e->outbps += ((long)rate - (long)e->outbps)>>2; rate 46 net/sched/act_police.c struct tc_ratespec rate; rate 180 net/sched/act_police.c if (parm->rate.rate) { rate 182 net/sched/act_police.c R_tab = qdisc_get_rtab(&parm->rate, tb[TCA_POLICE_RATE]); rate 185 net/sched/act_police.c if (parm->peakrate.rate) { rate 212 net/sched/act_police.c police->tcfp_mtu = 255<<police->tcfp_R_tab->rate.cell_log; rate 332 net/sched/act_police.c opt.rate = police->tcfp_R_tab->rate; rate 334 net/sched/act_police.c memset(&opt.rate, 0, sizeof(opt.rate)); rate 336 net/sched/act_police.c opt.peakrate = police->tcfp_P_tab->rate; rate 295 net/sched/sch_api.c if (memcmp(&rtab->rate, r, sizeof(struct tc_ratespec)) == 0) { rate 301 net/sched/sch_api.c if (tab == NULL || r->rate == 0 || r->cell_log == 0 || rate 307 net/sched/sch_api.c rtab->rate = *r; rate 1426 net/sched/sch_cbq.c q->link.weight = q->link.R_tab->rate.rate; rate 1456 net/sched/sch_cbq.c NLA_PUT(skb, TCA_CBQ_RATE, sizeof(cl->R_tab->rate), &cl->R_tab->rate); rate 1901 net/sched/sch_cbq.c cl->weight = cl->R_tab->rate.rate; rate 120 net/sched/sch_htb.c struct qdisc_rate_table *rate; /* rate table of the class itself */ rate 135 net/sched/sch_htb.c long result = qdisc_l2t(rate, size); rate 664 net/sched/sch_htb.c HTB_ACCNT(tokens, buffer, rate); rate 1094 net/sched/sch_htb.c opt.rate = cl->rate->rate; rate 1096 net/sched/sch_htb.c opt.ceil = cl->ceil->rate; rate 1216 net/sched/sch_htb.c qdisc_put_rtab(cl->rate); rate 1337 net/sched/sch_htb.c rtab = qdisc_get_rtab(&hopt->rate, tb[TCA_HTB_RTAB]); rate 1438 net/sched/sch_htb.c cl->un.leaf.quantum = rtab->rate.rate / q->rate2quantum; rate 1463 net/sched/sch_htb.c if (cl->rate) rate 1464 net/sched/sch_htb.c qdisc_put_rtab(cl->rate); rate 1465 net/sched/sch_htb.c cl->rate = rtab; rate 266 net/sched/sch_tbf.c rtab = qdisc_get_rtab(&qopt->rate, tb[TCA_TBF_RTAB]); rate 270 net/sched/sch_tbf.c if (qopt->peakrate.rate) { rate 271 net/sched/sch_tbf.c if (qopt->peakrate.rate > qopt->rate.rate) rate 279 net/sched/sch_tbf.c max_size = (n << qopt->rate.cell_log)-1; rate 361 net/sched/sch_tbf.c opt.rate = q->R_tab->rate; rate 363 net/sched/sch_tbf.c opt.peakrate = q->P_tab->rate; rate 123 net/wireless/nl80211.c struct ieee80211_rate *rate; rate 198 net/wireless/nl80211.c rate = &dev->wiphy.bands[band]->bitrates[i]; rate 200 net/wireless/nl80211.c rate->bitrate); rate 201 net/wireless/nl80211.c if (rate->flags & IEEE80211_RATE_SHORT_PREAMBLE) rate 721 sound/aoa/codecs/snd-aoa-codec-onyx.c switch (substream->runtime->rate) { rate 42 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (I2S_CLOCK_SPEED_18MHz % (rate * mclk) == 0) { rate 43 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_18MHz / (rate * mclk), out)) { rate 48 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (I2S_CLOCK_SPEED_45MHz % (rate * mclk) == 0) { rate 49 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_45MHz / (rate * mclk), out)) { rate 54 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (I2S_CLOCK_SPEED_49MHz % (rate * mclk) == 0) { rate 55 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_49MHz / (rate * mclk), out)) { rate 64 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c do { if (rates & SNDRV_PCM_RATE_ ##rate) { \ rate 67 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c bus_factor, rate, &dummy)) \ rate 68 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c rates &= ~SNDRV_PCM_RATE_ ##rate; \ rate 182 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c hw->rate_min = i2sdev->rate; rate 183 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c hw->rate_max = i2sdev->rate; rate 363 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c || (i2sdev->rate != runtime->rate))) { rate 369 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c i2sdev->rate = runtime->rate; rate 447 sound/aoa/soundbus/i2sbus/i2sbus-pcm.c runtime->rate, rate 73 sound/aoa/soundbus/i2sbus/i2sbus.h unsigned int rate; rate 835 sound/arm/aaci.c aaci_ac97_write(aaci->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); rate 836 sound/arm/aaci.c aaci_ac97_write(aaci->ac97, AC97_PCM_MIC_ADC_RATE, runtime->rate); rate 98 sound/arm/pxa2xx-ac97.c return snd_ac97_set_rate(pxa2xx_ac97_ac97, reg, runtime->rate); rate 203 sound/arm/sa11xx-uda1341.c if (rate >= 48000) rate 204 sound/arm/sa11xx-uda1341.c rate = 48000; rate 205 sound/arm/sa11xx-uda1341.c else if (rate >= 44100) rate 206 sound/arm/sa11xx-uda1341.c rate = 44100; rate 207 sound/arm/sa11xx-uda1341.c else if (rate >= 32000) rate 208 sound/arm/sa11xx-uda1341.c rate = 32000; rate 209 sound/arm/sa11xx-uda1341.c else if (rate >= 29400) rate 210 sound/arm/sa11xx-uda1341.c rate = 29400; rate 211 sound/arm/sa11xx-uda1341.c else if (rate >= 24000) rate 212 sound/arm/sa11xx-uda1341.c rate = 24000; rate 213 sound/arm/sa11xx-uda1341.c else if (rate >= 22050) rate 214 sound/arm/sa11xx-uda1341.c rate = 22050; rate 215 sound/arm/sa11xx-uda1341.c else if (rate >= 21970) rate 216 sound/arm/sa11xx-uda1341.c rate = 21970; rate 217 sound/arm/sa11xx-uda1341.c else if (rate >= 16000) rate 218 sound/arm/sa11xx-uda1341.c rate = 16000; rate 219 sound/arm/sa11xx-uda1341.c else if (rate >= 14647) rate 220 sound/arm/sa11xx-uda1341.c rate = 14647; rate 221 sound/arm/sa11xx-uda1341.c else if (rate >= 10985) rate 222 sound/arm/sa11xx-uda1341.c rate = 10985; rate 223 sound/arm/sa11xx-uda1341.c else if (rate >= 10666) rate 224 sound/arm/sa11xx-uda1341.c rate = 10666; rate 226 sound/arm/sa11xx-uda1341.c rate = 8000; rate 230 sound/arm/sa11xx-uda1341.c sa11xx_uda1341_set_audio_clock(rate); rate 233 sound/arm/sa11xx-uda1341.c switch (rate) { rate 262 sound/arm/sa11xx-uda1341.c sa11xx_uda1341->samplerate = rate; rate 665 sound/arm/sa11xx-uda1341.c sa11xx_uda1341_set_samplerate(chip, runtime->rate); rate 76 sound/core/oss/copy.c if (snd_BUG_ON(src_format->rate != dst_format->rate)) rate 122 sound/core/oss/io.c format.rate = params_rate(params); rate 162 sound/core/oss/linear.c if (snd_BUG_ON(src_format->rate != dst_format->rate)) rate 313 sound/core/oss/mulaw.c if (snd_BUG_ON(src_format->rate != dst_format->rate)) rate 795 sound/core/oss/pcm_oss.c unsigned int rate, prev; rate 804 sound/core/oss/pcm_oss.c rate = best_rate; rate 806 sound/core/oss/pcm_oss.c if (it->max < rate || (it->max == rate && it->openmax)) rate 808 sound/core/oss/pcm_oss.c if (it->min < rate || (it->min == rate && !it->openmin)) { rate 812 sound/core/oss/pcm_oss.c rate, 0); rate 813 sound/core/oss/pcm_oss.c if (ret == (int)rate) { rate 815 sound/core/oss/pcm_oss.c return rate; rate 819 sound/core/oss/pcm_oss.c prev = rate; rate 820 sound/core/oss/pcm_oss.c rate += best_rate; rate 821 sound/core/oss/pcm_oss.c if (rate <= prev) rate 876 sound/core/oss/pcm_oss.c choose_rate(substream, sparams, runtime->oss.rate); rate 914 sound/core/oss/pcm_oss.c runtime->oss.rate, 0); rate 1045 sound/core/oss/pcm_oss.c runtime->oss.rate = params_rate(params); rate 1685 sound/core/oss/pcm_oss.c if (rate < 1000) rate 1686 sound/core/oss/pcm_oss.c rate = 1000; rate 1687 sound/core/oss/pcm_oss.c else if (rate > 192000) rate 1688 sound/core/oss/pcm_oss.c rate = 192000; rate 1689 sound/core/oss/pcm_oss.c if (runtime->oss.rate != rate) { rate 1691 sound/core/oss/pcm_oss.c runtime->oss.rate = rate; rate 1704 sound/core/oss/pcm_oss.c return substream->runtime->oss.rate; rate 2244 sound/core/oss/pcm_oss.c runtime->oss.rate = 8000; rate 372 sound/core/oss/pcm_plugin.c dstformat.rate = params_rate(slave_params); rate 375 sound/core/oss/pcm_plugin.c srcformat.rate = params_rate(params); rate 383 sound/core/oss/pcm_plugin.c dstformat.rate = params_rate(params); rate 386 sound/core/oss/pcm_plugin.c srcformat.rate = params_rate(slave_params); rate 400 sound/core/oss/pcm_plugin.c srcformat.rate, rate 404 sound/core/oss/pcm_plugin.c dstformat.rate, rate 408 sound/core/oss/pcm_plugin.c if (! rate_match(srcformat.rate, dstformat.rate) && rate 444 sound/core/oss/pcm_plugin.c if (!rate_match(srcformat.rate, dstformat.rate)) { rate 461 sound/core/oss/pcm_plugin.c tmpformat.rate = dstformat.rate; rate 465 sound/core/oss/pcm_plugin.c pdprintf("rate down resampling: src=%i, dst=%i returns %i\n", srcformat.rate, tmpformat.rate, err); rate 50 sound/core/oss/pcm_plugin.h unsigned int rate; rate 193 sound/core/oss/rate.c if (plugin->src_format.rate < plugin->dst_format.rate) { rate 226 sound/core/oss/rate.c if (plugin->src_format.rate < plugin->dst_format.rate) { rate 321 sound/core/oss/rate.c if (snd_BUG_ON(src_format->rate == dst_format->rate)) rate 332 sound/core/oss/rate.c if (src_format->rate < dst_format->rate) { rate 333 sound/core/oss/rate.c data->pitch = ((src_format->rate << SHIFT) + (dst_format->rate >> 1)) / dst_format->rate; rate 336 sound/core/oss/rate.c data->pitch = ((dst_format->rate << SHIFT) + (src_format->rate >> 1)) / src_format->rate; rate 97 sound/core/oss/route.c if (snd_BUG_ON(src_format->rate != dst_format->rate)) rate 380 sound/core/pcm.c snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); rate 387 sound/core/pcm.c snd_iprintf(buffer, "OSS rate: %u\n", runtime->oss.rate); rate 465 sound/core/pcm_misc.c if (snd_pcm_known_rates.list[i] == rate) rate 353 sound/core/pcm_native.c if (! runtime->rate) rate 357 sound/core/pcm_native.c usecs = (750000 / runtime->rate) * runtime->period_size; rate 358 sound/core/pcm_native.c usecs += ((750000 % runtime->rate) * runtime->period_size) / rate 359 sound/core/pcm_native.c runtime->rate; rate 411 sound/core/pcm_native.c runtime->rate = params_rate(params); rate 49 sound/core/pcm_timer.c unsigned long rate, mult, fsize, l, post; rate 53 sound/core/pcm_timer.c rate = runtime->rate; rate 54 sound/core/pcm_timer.c if (snd_BUG_ON(!rate)) rate 56 sound/core/pcm_timer.c l = gcd(mult, rate); rate 58 sound/core/pcm_timer.c rate /= l; rate 62 sound/core/pcm_timer.c l = gcd(rate, fsize); rate 63 sound/core/pcm_timer.c rate /= l; rate 70 sound/core/pcm_timer.c if (rate == 0) { rate 71 sound/core/pcm_timer.c snd_printk(KERN_ERR "pcm timer resolution out of range (rate = %u, period_size = %lu)\n", runtime->rate, runtime->period_size); rate 75 sound/core/pcm_timer.c runtime->timer_resolution = (mult * fsize / rate) * post; rate 237 sound/drivers/dummy.c bps = snd_pcm_format_width(runtime->format) * runtime->rate * rate 634 sound/drivers/ml403-ac97cr.c runtime->rate); rate 635 sound/drivers/ml403-ac97cr.c PDEBUG(WORK_INFO, "prepare(): rate=%d\n", runtime->rate); rate 668 sound/drivers/ml403-ac97cr.c runtime->rate); rate 669 sound/drivers/ml403-ac97cr.c PDEBUG(WORK_INFO, "prepare(capture): rate=%d\n", runtime->rate); rate 59 sound/drivers/pcm-indirect2.c rec->bytes2hw, rec->bytes2hw / 2 / 2 / runtime->rate); rate 67 sound/drivers/pcm-indirect2.c runtime->rate, rate 225 sound/drivers/vx/vx_pcm.c if (runtime->rate < 32000 && runtime->rate > 11025) rate 227 sound/drivers/vx/vx_pcm.c else if (runtime->rate <= 11025) rate 912 sound/drivers/vx/vx_pcm.c if (chip->pcm_running && chip->freq != runtime->rate) { rate 914 sound/drivers/vx/vx_pcm.c "from the current %d\n", runtime->rate, chip->freq); rate 917 sound/drivers/vx/vx_pcm.c vx_set_clock(chip, runtime->rate); rate 52 sound/i2c/cs8427.c unsigned int rate; rate 587 sound/i2c/cs8427.c switch (rate) { rate 595 sound/i2c/cs8427.c switch (rate) { rate 606 sound/i2c/cs8427.c reset = chip->rate != rate; rate 607 sound/i2c/cs8427.c chip->rate = rate; rate 599 sound/i2c/other/ak4114.c if (!(flags & AK4114_CHECK_NO_RATE) && runtime && runtime->rate != res) { rate 522 sound/i2c/other/ak4117.c if (!(flags & AK4117_CHECK_NO_RATE) && runtime && runtime->rate != res) { rate 236 sound/isa/ad1816a/ad1816a_lib.c unsigned int size, rate; rate 247 sound/isa/ad1816a/ad1816a_lib.c rate = runtime->rate; rate 249 sound/isa/ad1816a/ad1816a_lib.c rate = (rate * 33000) / chip->clock_freq; rate 250 sound/isa/ad1816a/ad1816a_lib.c snd_ad1816a_write(chip, AD1816A_PLAYBACK_SAMPLE_RATE, rate); rate 268 sound/isa/ad1816a/ad1816a_lib.c unsigned int size, rate; rate 279 sound/isa/ad1816a/ad1816a_lib.c rate = runtime->rate; rate 281 sound/isa/ad1816a/ad1816a_lib.c rate = (rate * 33000) / chip->clock_freq; rate 282 sound/isa/ad1816a/ad1816a_lib.c snd_ad1816a_write(chip, AD1816A_CAPTURE_SAMPLE_RATE, rate); rate 189 sound/isa/cs423x/cs4236_lib.c unsigned char rate = divisor_to_rate_register(params->rate_den); rate 198 sound/isa/cs423x/cs4236_lib.c snd_cs4236_ext_out(chip, CS4236_DAC_RATE, rate); rate 207 sound/isa/cs423x/cs4236_lib.c unsigned char rate = divisor_to_rate_register(params->rate_den); rate 216 sound/isa/cs423x/cs4236_lib.c snd_cs4236_ext_out(chip, CS4236_ADC_RATE, rate); rate 315 sound/isa/es1688/es1688_lib.c divider = 256 - 7160000*20/(8*82*runtime->rate); rate 442 sound/isa/es18xx.c div0 = 256 - 7160000*20/(8*82*runtime->rate); rate 110 sound/isa/gus/gus_pcm.c unsigned short rate; rate 124 sound/isa/gus/gus_pcm.c rate = snd_gf1_translate_freq(gus, runtime->rate << 4); rate 144 sound/isa/gus/gus_pcm.c snd_gf1_write16(gus, SNDRV_GF1_VW_FREQUENCY, rate); rate 202 sound/isa/gus/gus_volume.c fc = (freq << 10) / rate; rate 615 sound/isa/sb/emu8000_pcm.c rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate); rate 235 sound/isa/sb/sb16_main.c chip->locked_rate = rate; rate 237 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, rate >> 8); rate 238 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, rate & 0xff); rate 240 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, rate >> 8); rate 241 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, rate & 0xff); rate 273 sound/isa/sb/sb16_main.c snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_PLAYBACK); rate 342 sound/isa/sb/sb16_main.c snd_sb16_setup_rate(chip, runtime->rate, SNDRV_PCM_STREAM_CAPTURE); rate 108 sound/isa/sb/sb8_main.c unsigned int mixreg, rate, size, count; rate 110 sound/isa/sb/sb8_main.c rate = runtime->rate; rate 114 sound/isa/sb/sb8_main.c if (snd_BUG_ON(rate != SB8_RATE(11025) && rate 115 sound/isa/sb/sb8_main.c rate != SB8_RATE(22050))) rate 122 sound/isa/sb/sb8_main.c if (rate > 23000) { rate 236 sound/isa/sb/sb8_main.c unsigned int mixreg, rate, size, count; rate 238 sound/isa/sb/sb8_main.c rate = runtime->rate; rate 242 sound/isa/sb/sb8_main.c if (snd_BUG_ON(rate != SB8_RATE(11025) && rate 243 sound/isa/sb/sb8_main.c rate != SB8_RATE(22050))) rate 248 sound/isa/sb/sb8_main.c chip->capture_format = (rate > 23000) ? SB_DSP_HI_INPUT_AUTO : SB_DSP_LO_INPUT_AUTO; rate 251 sound/isa/sb/sb8_main.c if (rate > 13000) { rate 966 sound/isa/sscape.c unsigned rate = params_rate(params); rate 972 sound/isa/sscape.c if (rate > 50000) rate 973 sound/isa/sscape.c rate = 50000; rate 974 sound/isa/sscape.c else if (rate < 4000) rate 975 sound/isa/sscape.c rate = 4000; rate 989 sound/isa/sscape.c snd_wss_out(chip, AD1845_FREQ_SEL_MSB, (unsigned char) (rate >> 8)); rate 990 sound/isa/sscape.c snd_wss_out(chip, AD1845_FREQ_SEL_LSB, (unsigned char) rate); rate 1004 sound/isa/sscape.c unsigned rate = params_rate(params); rate 1010 sound/isa/sscape.c if (rate > 50000) rate 1011 sound/isa/sscape.c rate = 50000; rate 1012 sound/isa/sscape.c else if (rate < 4000) rate 1013 sound/isa/sscape.c rate = 4000; rate 1027 sound/isa/sscape.c snd_wss_out(chip, AD1845_FREQ_SEL_MSB, (unsigned char) (rate >> 8)); rate 1028 sound/isa/sscape.c snd_wss_out(chip, AD1845_FREQ_SEL_LSB, (unsigned char) rate); rate 545 sound/isa/wss/wss_lib.c if (rate == rates[i]) rate 363 sound/mips/au1x00.c snd_ac97_set_rate(au1000->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); rate 377 sound/mips/au1x00.c snd_ac97_set_rate(au1000->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); rate 325 sound/mips/hal2.c if (44100 % rate < 48000 % rate) { rate 326 sound/mips/hal2.c mod = 4 * 44100 / rate; rate 329 sound/mips/hal2.c mod = 4 * 48000 / rate; rate 335 sound/mips/hal2.c rate = 4 * codec->master / mod; rate 337 sound/mips/hal2.c return rate; rate 557 sound/mips/hal2.c dac->sample_rate = hal2_compute_rate(dac, runtime->rate); rate 649 sound/mips/hal2.c adc->sample_rate = hal2_compute_rate(adc, runtime->rate); rate 650 sound/mips/sgio2audio.c runtime->rate, rate 656 sound/mips/sgio2audio.c runtime->rate, rate 1074 sound/oss/ac97_codec.c switch(rate) rate 1081 sound/oss/ac97_codec.c if(rate == 0) rate 1132 sound/oss/ac97_codec.c switch(rate) rate 1157 sound/oss/ac97_codec.c switch(rate) rate 358 sound/oss/au1550_ac97.c adc->src_factor = ((96000 / rate) + 1) >> 1; rate 367 sound/oss/au1550_ac97.c rate = rate > 48000 ? 48000 : rate; rate 376 sound/oss/au1550_ac97.c wrcodec(s->codec, AC97_PCM_LR_ADC_RATE, (u16) rate); rate 409 sound/oss/au1550_ac97.c dac->src_factor = ((96000 / rate) + 1) >> 1; rate 418 sound/oss/au1550_ac97.c rate = rate > 48000 ? 48000 : rate; rate 427 sound/oss/au1550_ac97.c wrcodec(s->codec, AC97_PCM_FRONT_DAC_RATE, (u16) rate); rate 433 sound/oss/au1550_ac97.c wrcodec(s->codec, AC97_PCM_SURR_DAC_RATE, (u16) rate); rate 435 sound/oss/au1550_ac97.c wrcodec(s->codec, AC97_PCM_LFE_DAC_RATE, (u16) rate); rate 639 sound/oss/au1550_ac97.c unsigned rate = db->sample_rate; rate 664 sound/oss/au1550_ac97.c user_bytes_per_sec = rate * db->user_bytes_per_sample; rate 696 sound/oss/au1550_ac97.c rate, db->sample_size, db->num_channels); rate 41 sound/oss/sh_dac_audio.c static int rate; rate 108 sound/oss/sh_dac_audio.c interval = (clk_get_rate(clk) / 4) / rate; rate 147 sound/oss/sh_dac_audio.c rate = val; rate 150 sound/oss/sh_dac_audio.c return put_user(rate, (int *)arg); rate 304 sound/oss/sh_dac_audio.c rate = 8000; rate 290 sound/oss/swarm_cs4297a.c unsigned rate; rate 2309 sound/oss/swarm_cs4297a.c return put_user(s->prop_adc.rate, (int *) arg); rate 2311 sound/oss/swarm_cs4297a.c return put_user(s->prop_dac.rate, (int *) arg); rate 2453 sound/oss/swarm_cs4297a.c s->prop_adc.rate = 48000; rate 2471 sound/oss/swarm_cs4297a.c s->prop_dac.rate = 48000; rate 192 sound/oss/vidc.c if (rate) { rate 200 sound/oss/vidc.c hwrate = (((VIDC_SOUND_CLOCK * 2) / rate) + 1) >> 1; rate 207 sound/oss/vidc.c hwrate_ext = (((VIDC_SOUND_CLOCK_EXT * 2) / rate) + 1) >> 1; rate 217 sound/oss/vidc.c diff_int = my_abs(rate_ext-rate); rate 218 sound/oss/vidc.c diff_ext = my_abs(rate_int-rate); rate 224 sound/oss/vidc.c if (diff_ext > (rate/256)) rate 225 sound/oss/vidc.c rate=rate_ext; rate 230 sound/oss/vidc.c if (diff_int > (rate/256)) rate 231 sound/oss/vidc.c rate=rate_int; rate 252 sound/oss/vidc.c vidc_audio_rate = rate; rate 186 sound/parisc/harmony.c (h->st.rate)); rate 257 sound/parisc/harmony.c if (snd_harmony_rates[i] == rate) rate 422 sound/parisc/harmony.c h->st.rate = snd_harmony_rate_bits(rt->rate); rate 452 sound/parisc/harmony.c h->st.rate = snd_harmony_rate_bits(rt->rate); rate 26 sound/parisc/harmony.h u32 rate; rate 1671 sound/pci/ac97/ac97_codec.c tmp = ((unsigned int)rate * ac97->bus->clock) / 48000; rate 183 sound/pci/ac97/ac97_pcm.c switch (rate) { rate 193 sound/pci/ac97/ac97_pcm.c if (ac97->id == AC97_ID_CM9739 && rate != 48000) { rate 197 sound/pci/ac97/ac97_pcm.c switch (rate) { rate 218 sound/pci/ac97/ac97_pcm.c switch (rate) { rate 225 sound/pci/ac97/ac97_pcm.c switch (rate) { rate 262 sound/pci/ac97/ac97_pcm.c dbl = rate > 48000; rate 274 sound/pci/ac97/ac97_pcm.c if (rate != 48000) rate 280 sound/pci/ac97/ac97_pcm.c if (rate != 48000 && rate != 96000) rate 293 sound/pci/ac97/ac97_pcm.c return set_spdif_rate(ac97, rate); rate 298 sound/pci/ac97/ac97_pcm.c rate /= 2; rate 299 sound/pci/ac97/ac97_pcm.c tmp = (rate * ac97->bus->clock) / 48000; rate 574 sound/pci/ac97/ac97_pcm.c r = rate > 48000; rate 579 sound/pci/ac97/ac97_pcm.c err = set_spdif_rate(bus->codec[cidx], rate); rate 622 sound/pci/ac97/ac97_pcm.c err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate); rate 624 sound/pci/ac97/ac97_pcm.c snd_printk(KERN_ERR "error in snd_ac97_set_rate: cidx=%d, reg=0x%x, rate=%d, err=%d\n", cidx, reg, rate, err); rate 693 sound/pci/ac97/ac97_pcm.c struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); rate 694 sound/pci/ac97/ac97_pcm.c return snd_interval_refine(rate, &single_rates); rate 702 sound/pci/ac97/ac97_pcm.c struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); rate 703 sound/pci/ac97/ac97_pcm.c if (rate->min > 48000) { rate 395 sound/pci/ad1889.c ad1889_writew(chip, AD_DS_WAS, rt->rate); rate 409 sound/pci/ad1889.c count, size, reg, rt->rate); rate 456 sound/pci/ad1889.c count, size, reg, rt->rate); rate 824 sound/pci/ali5451/ali5451.c switch (rate) { rate 839 sound/pci/ali5451/ali5451.c outw(rate | 0x10, ALI_REG(codec, ALI_SPDIF_CS + 2)); rate 1106 sound/pci/ali5451/ali5451.c if (rate < 4000) rate 1107 sound/pci/ali5451/ali5451.c rate = 4000; rate 1108 sound/pci/ali5451/ali5451.c if (rate > 48000) rate 1109 sound/pci/ali5451/ali5451.c rate = 48000; rate 1112 sound/pci/ali5451/ali5451.c if (rate == 44100) rate 1114 sound/pci/ali5451/ali5451.c else if (rate == 8000) rate 1116 sound/pci/ali5451/ali5451.c else if (rate == 48000) rate 1119 sound/pci/ali5451/ali5451.c delta = ((48000 << 12) / rate) & 0x0000ffff; rate 1121 sound/pci/ali5451/ali5451.c if (rate == 44100) rate 1123 sound/pci/ali5451/ali5451.c else if (rate == 8000) rate 1125 sound/pci/ali5451/ali5451.c else if (rate == 48000) rate 1128 sound/pci/ali5451/ali5451.c delta = (((rate << 12) + rate) / 48000) & 0x0000ffff; rate 1308 sound/pci/ali5451/ali5451.c Delta = snd_ali_convert_rate(runtime->rate, 0); rate 1317 sound/pci/ali5451/ali5451.c snd_ali_set_spdif_out_rate(codec, runtime->rate); rate 1344 sound/pci/ali5451/ali5451.c pvoice->number,runtime->rate,Delta,GVSEL,PAN,CTRL); rate 1402 sound/pci/ali5451/ali5451.c 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode); rate 1407 sound/pci/ali5451/ali5451.c unsigned int rate; rate 1413 sound/pci/ali5451/ali5451.c rate = snd_ali_get_spdif_in_rate(codec); rate 1414 sound/pci/ali5451/ali5451.c if (rate == 0) { rate 1417 sound/pci/ali5451/ali5451.c rate = 48000; rate 1426 sound/pci/ali5451/ali5451.c if (rate != 48000) rate 1427 sound/pci/ali5451/ali5451.c Delta = ((rate << 12) / runtime->rate) & 0x00ffff; rate 293 sound/pci/als4000.c snd_sbdsp_command(chip, rate>>8); rate 294 sound/pci/als4000.c snd_sbdsp_command(chip, rate); rate 401 sound/pci/als4000.c snd_als4000_set_rate(chip, runtime->rate); rate 434 sound/pci/als4000.c snd_als4000_set_rate(chip, runtime->rate); rate 2336 sound/pci/au88x0/au88x0_core.c cvrt = SRC_RATIO(rate, 48000); rate 2338 sound/pci/au88x0/au88x0_core.c cvrt = SRC_RATIO(48000, rate); rate 295 sound/pci/au88x0/au88x0_pcm.c vortex_adb_setsrc(chip, dma, runtime->rate, dir); rate 1062 sound/pci/azt3328.c runtime->rate, rate 1084 sound/pci/azt3328.c runtime->rate, rate 1113 sound/pci/azt3328.c runtime->rate, rate 1246 sound/pci/azt3328.c runtime->rate, rate 487 sound/pci/bt87x.c decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate; rate 694 sound/pci/ca0106/ca0106_main.c switch (runtime->rate) { rate 787 sound/pci/ca0106/ca0106_main.c switch (runtime->rate) { rate 609 sound/pci/cmipci.c if (rates[i] == rate) rate 627 sound/pci/cmipci.c for (*r = 0; rate < CM_MAXIMUM_RATE/adcmult; *r += (1<<5)) rate 628 sound/pci/cmipci.c rate <<= 1; rate 632 sound/pci/cmipci.c tolerance = rate*CM_TOLERANCE_RATE; rate 638 sound/pci/cmipci.c if (xr < rate) rate 639 sound/pci/cmipci.c delta = rate - xr; rate 641 sound/pci/cmipci.c delta = xr - rate; rate 675 sound/pci/cmipci.c snd_cmipci_write_b(cm, reg, rate>>8); rate 676 sound/pci/cmipci.c snd_cmipci_write_b(cm, reg, rate&0xff); rate 835 sound/pci/cmipci.c if (runtime->rate > 48000) rate 836 sound/pci/cmipci.c switch (runtime->rate) { rate 843 sound/pci/cmipci.c freq = snd_cmipci_rate_freq(runtime->rate); rate 872 sound/pci/cmipci.c if (runtime->rate > 44100) rate 1213 sound/pci/cmipci.c if (rate >= 48000) { rate 1244 sound/pci/cmipci.c int rate, err; rate 1246 sound/pci/cmipci.c rate = subs->runtime->rate; rate 1260 sound/pci/cmipci.c setup_ac3(cm, subs, do_ac3, rate); rate 1262 sound/pci/cmipci.c if (rate == 48000 || rate == 96000) rate 1266 sound/pci/cmipci.c if (rate > 48000) rate 1291 sound/pci/cmipci.c int rate = substream->runtime->rate; rate 1294 sound/pci/cmipci.c do_spdif = (rate >= 44100 && rate <= 96000 && rate 1404 sound/pci/cmipci.c if (substream->runtime->rate > 48000) rate 712 sound/pci/cs4281.c *real_rate = rate; rate 714 sound/pci/cs4281.c switch (rate) { rate 725 sound/pci/cs4281.c val = 1536000 / rate; rate 768 sound/pci/cs4281.c unsigned int val = snd_cs4281_rate(runtime->rate, NULL); rate 774 sound/pci/cs4281.c unsigned int val = snd_cs4281_rate(runtime->rate, NULL); rate 559 sound/pci/cs46xx/cs46xx_lib.c tmp1 = rate << 16; rate 592 sound/pci/cs46xx/cs46xx_lib.c if ((rate * 9) < 48000) rate 593 sound/pci/cs46xx/cs46xx_lib.c rate = 48000 / 9; rate 599 sound/pci/cs46xx/cs46xx_lib.c if (rate > 48000) rate 600 sound/pci/cs46xx/cs46xx_lib.c rate = 48000; rate 624 sound/pci/cs46xx/cs46xx_lib.c tmp1 = rate << 16; rate 633 sound/pci/cs46xx/cs46xx_lib.c phiIncr = tmp1 / rate; rate 634 sound/pci/cs46xx/cs46xx_lib.c tmp1 -= phiIncr * rate; rate 637 sound/pci/cs46xx/cs46xx_lib.c tmp2 = tmp1 / rate; rate 639 sound/pci/cs46xx/cs46xx_lib.c tmp1 -= tmp2 * rate; rate 643 sound/pci/cs46xx/cs46xx_lib.c initialDelay = ((48000 * 24) + rate - 1) / rate; rate 664 sound/pci/cs46xx/cs46xx_lib.c if (((rate / cnt) * cnt) != rate) rate 667 sound/pci/cs46xx/cs46xx_lib.c if (((rate / 3) * 3) != rate) { rate 671 sound/pci/cs46xx/cs46xx_lib.c if (((rate / cnt) * cnt) != rate) rate 682 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_poke(chip, BA1_CSPB, ((65536 * rate) / 24000)); rate 1093 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_set_play_sample_rate(chip, runtime->rate); rate 1154 sound/pci/cs46xx/cs46xx_lib.c snd_cs46xx_set_capture_sample_rate(chip, runtime->rate); rate 615 sound/pci/cs46xx/dsp_spos_scb_lib.c snd_printdd( "dsp_spos: setting %s rate to %u\n",scb_name,rate); rate 634 sound/pci/cs46xx/dsp_spos_scb_lib.c tmp1 = rate << 16; rate 685 sound/pci/cs46xx/dsp_spos_scb_lib.c snd_BUG_ON(rate != 48000); rate 279 sound/pci/cs5535audio/cs5535audio_pcm.c substream->runtime->rate); rate 366 sound/pci/cs5535audio/cs5535audio_pcm.c substream->runtime->rate); rate 92 sound/pci/echoaudio/darla20_dsp.c switch (rate) { rate 112 sound/pci/echoaudio/darla20_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 122 sound/pci/echoaudio/darla20_dsp.c chip->sample_rate = rate; rate 98 sound/pci/echoaudio/darla24_dsp.c switch (rate) { rate 128 sound/pci/echoaudio/darla24_dsp.c rate)); rate 135 sound/pci/echoaudio/darla24_dsp.c DE_ACT(("set_sample_rate: %d clock %d\n", rate, clock)); rate 136 sound/pci/echoaudio/darla24_dsp.c chip->sample_rate = rate; rate 142 sound/pci/echoaudio/darla24_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ rate 212 sound/pci/echoaudio/echoaudio.c struct snd_interval *rate = hw_param_interval(params, rate 220 sound/pci/echoaudio/echoaudio.c return snd_interval_refine(rate, &fixed); rate 662 sound/pci/echoaudio/echoaudio.c runtime->rate, runtime->format, runtime->channels)); rate 147 sound/pci/echoaudio/echoaudio_3g.c switch (rate) { rate 266 sound/pci/echoaudio/echoaudio_3g.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 267 sound/pci/echoaudio/echoaudio_3g.c chip->sample_rate = rate; rate 272 sound/pci/echoaudio/echoaudio_3g.c if (snd_BUG_ON(rate >= 50000 && rate 280 sound/pci/echoaudio/echoaudio_3g.c switch (rate) { rate 298 sound/pci/echoaudio/echoaudio_3g.c if (rate > 50000) rate 304 sound/pci/echoaudio/echoaudio_3g.c control_reg = set_spdif_bits(chip, control_reg, rate); rate 306 sound/pci/echoaudio/echoaudio_3g.c base_rate = rate; rate 316 sound/pci/echoaudio/echoaudio_3g.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 317 sound/pci/echoaudio/echoaudio_3g.c chip->sample_rate = rate; rate 318 sound/pci/echoaudio/echoaudio_3g.c DE_ACT(("SetSampleRate: %d clock %x\n", rate, control_reg)); rate 109 sound/pci/echoaudio/gina20_dsp.c switch (rate) { rate 129 sound/pci/echoaudio/gina20_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 139 sound/pci/echoaudio/gina20_dsp.c chip->sample_rate = rate; rate 168 sound/pci/echoaudio/gina24_dsp.c if (snd_BUG_ON(rate >= 50000 && rate 177 sound/pci/echoaudio/gina24_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 178 sound/pci/echoaudio/gina24_dsp.c chip->sample_rate = rate; rate 187 sound/pci/echoaudio/gina24_dsp.c switch (rate) { rate 220 sound/pci/echoaudio/gina24_dsp.c DE_ACT(("set_sample_rate: %d invalid!\n", rate)); rate 226 sound/pci/echoaudio/gina24_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 227 sound/pci/echoaudio/gina24_dsp.c chip->sample_rate = rate; rate 228 sound/pci/echoaudio/gina24_dsp.c DE_ACT(("set_sample_rate: %d clock %d\n", rate, clock)); rate 103 sound/pci/echoaudio/indigo_dsp.c switch (rate) { rate 120 sound/pci/echoaudio/indigo_dsp.c DE_ACT(("set_sample_rate: %d invalid!\n", rate)); rate 129 sound/pci/echoaudio/indigo_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 131 sound/pci/echoaudio/indigo_dsp.c chip->sample_rate = rate; rate 103 sound/pci/echoaudio/indigodj_dsp.c switch (rate) { rate 120 sound/pci/echoaudio/indigodj_dsp.c DE_ACT(("set_sample_rate: %d invalid!\n", rate)); rate 129 sound/pci/echoaudio/indigodj_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 131 sound/pci/echoaudio/indigodj_dsp.c chip->sample_rate = rate; rate 104 sound/pci/echoaudio/indigoio_dsp.c chip->sample_rate = rate; rate 105 sound/pci/echoaudio/indigoio_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 159 sound/pci/echoaudio/layla20_dsp.c if (snd_BUG_ON(rate < 8000 || rate > 50000)) rate 167 sound/pci/echoaudio/layla20_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 168 sound/pci/echoaudio/layla20_dsp.c chip->sample_rate = rate; rate 175 sound/pci/echoaudio/layla20_dsp.c DE_ACT(("set_sample_rate(%d)\n", rate)); rate 176 sound/pci/echoaudio/layla20_dsp.c chip->sample_rate = rate; rate 177 sound/pci/echoaudio/layla20_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 187 sound/pci/echoaudio/layla20_dsp.c u32 rate; rate 190 sound/pci/echoaudio/layla20_dsp.c rate = 0; rate 194 sound/pci/echoaudio/layla20_dsp.c rate = chip->sample_rate; rate 220 sound/pci/echoaudio/layla20_dsp.c if (rate) rate 221 sound/pci/echoaudio/layla20_dsp.c set_sample_rate(chip, rate); rate 163 sound/pci/echoaudio/layla24_dsp.c if (snd_BUG_ON(rate >= 50000 && rate 172 sound/pci/echoaudio/layla24_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 173 sound/pci/echoaudio/layla24_dsp.c chip->sample_rate = rate; rate 183 sound/pci/echoaudio/layla24_dsp.c switch (rate) { rate 219 sound/pci/echoaudio/layla24_dsp.c if (rate > 50000) { rate 220 sound/pci/echoaudio/layla24_dsp.c base_rate = rate >> 1; rate 223 sound/pci/echoaudio/layla24_dsp.c base_rate = rate; rate 241 sound/pci/echoaudio/layla24_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ rate 242 sound/pci/echoaudio/layla24_dsp.c chip->sample_rate = rate; rate 243 sound/pci/echoaudio/layla24_dsp.c DE_ACT(("set_sample_rate: %d clock %d\n", rate, control_reg)); rate 120 sound/pci/echoaudio/mia_dsp.c switch (rate) { rate 137 sound/pci/echoaudio/mia_dsp.c DE_ACT(("set_sample_rate: %d invalid!\n", rate)); rate 150 sound/pci/echoaudio/mia_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 152 sound/pci/echoaudio/mia_dsp.c chip->sample_rate = rate; rate 211 sound/pci/echoaudio/mona_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); rate 212 sound/pci/echoaudio/mona_dsp.c chip->sample_rate = rate; rate 217 sound/pci/echoaudio/mona_dsp.c if (rate >= 88200) { rate 252 sound/pci/echoaudio/mona_dsp.c switch (rate) { rate 285 sound/pci/echoaudio/mona_dsp.c DE_ACT(("set_sample_rate: %d invalid!\n", rate)); rate 291 sound/pci/echoaudio/mona_dsp.c chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ rate 292 sound/pci/echoaudio/mona_dsp.c chip->sample_rate = rate; rate 293 sound/pci/echoaudio/mona_dsp.c DE_ACT(("set_sample_rate: %d clock %d\n", rate, clock)); rate 191 sound/pci/emu10k1/emupcm.c switch (rate) { rate 208 sound/pci/emu10k1/emupcm.c switch (rate) { rate 228 sound/pci/emu10k1/emupcm.c pitch_target = (rate << 8) / 375; rate 363 sound/pci/emu10k1/emupcm.c pitch_target = emu10k1_calc_pitch_target(runtime->rate); rate 624 sound/pci/emu10k1/emupcm.c snd_emu10k1_audigy_capture_rate_reg(runtime->rate) : rate 625 sound/pci/emu10k1/emupcm.c snd_emu10k1_capture_rate_reg(runtime->rate); rate 702 sound/pci/emu10k1/emupcm.c pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; rate 706 sound/pci/emu10k1/emupcm.c pitch_target = emu10k1_calc_pitch_target(runtime->rate); rate 48 sound/pci/emu10k1/emuproc.c unsigned int status, rate = 0; rate 68 sound/pci/emu10k1/emuproc.c rate = snd_emu10k1_ptr_read(emu, rate_reg, 0); rate 69 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "S/PDIF Valid : %s\n", rate & SRCS_SPDIFVALID ? "on" : "off"); rate 70 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "S/PDIF Locked : %s\n", rate & SRCS_SPDIFLOCKED ? "on" : "off"); rate 71 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "Rate Locked : %s\n", rate & SRCS_RATELOCKED ? "on" : "off"); rate 73 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "Estimated Sample Rate : %d\n", ((rate & 0xFFFFF ) * 375) >> 11); rate 245 sound/pci/emu10k1/emuproc.c u32 rate; rate 256 sound/pci/emu10k1/emuproc.c rate = 0x1770000 / (((value << 5) | value2)+1); rate 257 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "ADAT Locked : %u\n", rate); rate 269 sound/pci/emu10k1/emuproc.c rate = 0x1770000 / (((value << 5) | value2)+1); rate 270 sound/pci/emu10k1/emuproc.c snd_iprintf(buffer, "SPDIF Locked : %d\n", rate); rate 565 sound/pci/emu10k1/io.c if (rate == 0) rate 567 sound/pci/emu10k1/io.c rate *= 11185; /* Scale 48000 to 0x20002380 */ rate 569 sound/pci/emu10k1/io.c if (rate & 0x80000000) { /* Detect leading "1" */ rate 571 sound/pci/emu10k1/io.c logMagTable[0x7f & (rate >> 24)] + rate 572 sound/pci/emu10k1/io.c (0x7f & (rate >> 17)) * rate 573 sound/pci/emu10k1/io.c logSlopeTable[0x7f & (rate >> 24)]); rate 575 sound/pci/emu10k1/io.c rate <<= 1; rate 341 sound/pci/emu10k1/p16v.c switch (runtime->rate) { rate 384 sound/pci/emu10k1/p16v.c switch (runtime->rate) { rate 720 sound/pci/ens1370.c n = rate / 3000; rate 724 sound/pci/ens1370.c freq = ((48000UL << 15) / rate) * n; rate 726 sound/pci/ens1370.c if (rate >= 24000) { rate 752 sound/pci/ens1370.c freq = ((rate << 15) + 1500) / 3000; rate 773 sound/pci/ens1370.c freq = ((rate << 15) + 1500) / 3000; rate 883 sound/pci/ens1370.c if (runtime->rate == 48000) rate 899 sound/pci/ens1370.c switch (runtime->rate) { rate 910 sound/pci/ens1370.c snd_es1371_dac1_rate(ensoniq, runtime->rate); rate 943 sound/pci/ens1370.c ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); rate 950 sound/pci/ens1370.c snd_es1371_dac2_rate(ensoniq, runtime->rate); rate 981 sound/pci/ens1370.c ensoniq->ctrl |= ES_1370_PCLKDIVO(ES_1370_SRTODIV(runtime->rate)); rate 988 sound/pci/ens1370.c snd_es1371_adc_rate(ensoniq, runtime->rate); rate 484 sound/pci/es1938.c div0 = 256 - 7160000*20/(8*82*runtime->rate); rate 878 sound/pci/es1968.c int freq = runtime->rate * 4; rate 898 sound/pci/es1968.c u32 rate = (freq << 16) / chip->clock; rate 900 sound/pci/es1968.c if (rate > 0x10000) rate 901 sound/pci/es1968.c rate = 0x10000; rate 903 sound/pci/es1968.c return rate; rate 1074 sound/pci/es1968.c freq = runtime->rate; rate 1177 sound/pci/es1968.c freq = runtime->rate; rate 339 sound/pci/fm801.c if (rates[idx] == rate) rate 450 sound/pci/fm801.c chip->ply_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; rate 476 sound/pci/fm801.c chip->cap_ctrl |= snd_fm801_rate_bits(runtime->rate) << FM801_RATE_SHIFT; rate 1994 sound/pci/hda/hda_codec.c if (rate_bits[i].hz == rate) { rate 1999 sound/pci/hda/hda_codec.c snd_printdd("invalid rate %d\n", rate); rate 2146 sound/pci/hda/hda_codec.c unsigned int val = 0, rate, stream; rate 2160 sound/pci/hda/hda_codec.c rate = format & 0xff00; rate 2162 sound/pci/hda/hda_codec.c if (rate_bits[i].hda_fmt == rate) { rate 1076 sound/pci/hda/hda_intel.c pos_adj = (pos_adj * runtime->rate + 47999) / 48000; rate 1420 sound/pci/hda/hda_intel.c azx_dev->format_val = snd_hda_calc_stream_format(runtime->rate, rate 1427 sound/pci/hda/hda_intel.c runtime->rate, runtime->channels, runtime->format); rate 157 sound/pci/hda/patch_si3054.c SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate); rate 299 sound/pci/ice1712/delta.c if (rate == 0) /* no hint - S/PDIF input is master, simply return */ rate 305 sound/pci/ice1712/delta.c if (rate > 48000) rate 320 sound/pci/ice1712/delta.c if (rate == 0) /* no hint - S/PDIF input is master, simply return */ rate 328 sound/pci/ice1712/delta.c if (rate > 48000) rate 337 sound/pci/ice1712/delta.c if (rate > 48000) rate 351 sound/pci/ice1712/delta.c val = (rate > 48000) ? 0x65 : 0x60; rate 383 sound/pci/ice1712/delta.c switch (rate) { rate 330 sound/pci/ice1712/ews.c switch (rate) { rate 375 sound/pci/ice1712/ice1712.c snd_cs8427_iec958_pcm(ice->cs8427, rate); rate 581 sound/pci/ice1712/ice1712.c u32 period_size, buf_size, rate, tmp; rate 590 sound/pci/ice1712/ice1712.c rate = (runtime->rate * 8192) / 375; rate 591 sound/pci/ice1712/ice1712.c if (rate > 0x000fffff) rate 592 sound/pci/ice1712/ice1712.c rate = 0x000fffff; rate 598 sound/pci/ice1712/ice1712.c snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_LO, rate & 0xff); rate 599 sound/pci/ice1712/ice1712.c snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_MID, (rate >> 8) & 0xff); rate 600 sound/pci/ice1712/ice1712.c snd_ice1712_write(ice, ICE1712_IREG_PBK_RATE_HI, (rate >> 16) & 0xff); rate 614 sound/pci/ice1712/ice1712.c u32 period_size, buf_size, rate, tmp, chn; rate 623 sound/pci/ice1712/ice1712.c rate = (runtime->rate * 8192) / 375; rate 624 sound/pci/ice1712/ice1712.c if (rate > 0x000fffff) rate 625 sound/pci/ice1712/ice1712.c rate = 0x000fffff; rate 634 sound/pci/ice1712/ice1712.c snd_ice1712_ds_write(ice, chn, ICE1712_DSC_RATE, rate); rate 638 sound/pci/ice1712/ice1712.c snd_ice1712_ds_write(ice, chn + 1, ICE1712_DSC_RATE, rate); rate 666 sound/pci/ice1712/ice1712.c snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); rate 1006 sound/pci/ice1712/ice1712.c switch (rate) { rate 1023 sound/pci/ice1712/ice1712.c rate = 48000; rate 1045 sound/pci/ice1712/ice1712.c ice->gpio.set_pro_rate(ice, rate); rate 1048 sound/pci/ice1712/ice1712.c ice->akm[i].ops.set_rate_val(&ice->akm[i], rate); rate 1051 sound/pci/ice1712/ice1712.c ice->spdif.ops.setup_rate(ice, rate); rate 271 sound/pci/ice1712/ice1712.h void (*set_rate_val)(struct snd_akm4xxx *ak, unsigned int rate); rate 282 sound/pci/ice1712/ice1712.h void (*setup_rate)(struct snd_ice1712 *, int rate); rate 365 sound/pci/ice1712/ice1712.h void (*set_pro_rate)(struct snd_ice1712 *ice, unsigned int rate); rate 377 sound/pci/ice1712/ice1712.h void (*set_rate)(struct snd_ice1712 *ice, unsigned int rate); rate 378 sound/pci/ice1712/ice1712.h unsigned char (*set_mclk)(struct snd_ice1712 *ice, unsigned int rate); rate 579 sound/pci/ice1712/ice1724.c unsigned int rate; rate 580 sound/pci/ice1712/ice1724.c rate = stdclock_rate_list[inb(ICEMT1724(ice, RATE)) & 15]; rate 581 sound/pci/ice1712/ice1724.c return rate; rate 588 sound/pci/ice1712/ice1724.c if (stdclock_rate_list[i] == rate) { rate 602 sound/pci/ice1712/ice1724.c if (rate > 96000) rate 623 sound/pci/ice1712/ice1724.c if (rate > ice->hw_rates->list[ice->hw_rates->count - 1]) rate 638 sound/pci/ice1712/ice1724.c if (force || (old_rate != rate)) rate 639 sound/pci/ice1712/ice1724.c ice->set_rate(ice, rate); rate 640 sound/pci/ice1712/ice1724.c else if (rate == ice->cur_rate) { rate 645 sound/pci/ice1712/ice1724.c ice->cur_rate = rate; rate 648 sound/pci/ice1712/ice1724.c mclk_change = ice->set_mclk(ice, rate); rate 655 sound/pci/ice1712/ice1724.c ice->gpio.set_pro_rate(ice, rate); rate 660 sound/pci/ice1712/ice1724.c ice->akm[i].ops.set_rate_val(&ice->akm[i], rate); rate 663 sound/pci/ice1712/ice1724.c ice->spdif.ops.setup_rate(ice, rate); rate 1098 sound/pci/ice1712/ice1724.c switch (rate) { rate 1116 sound/pci/ice1712/ice1724.c update_spdif_rate(ice, substream->runtime->rate); rate 1769 sound/pci/ice1712/ice1724.c unsigned int i, rate; rate 1775 sound/pci/ice1712/ice1724.c rate = ice->get_rate(ice); rate 1778 sound/pci/ice1712/ice1724.c if (ice->hw_rates->list[i] == rate) { rate 159 sound/pci/ice1712/juli.c if (juli_rates[i] == rate) rate 186 sound/pci/ice1712/juli.c int rate; rate 191 sound/pci/ice1712/juli.c rate = snd_ak4114_external_rate(spec->ak4114); rate 192 sound/pci/ice1712/juli.c if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) { rate 193 sound/pci/ice1712/juli.c runtime->hw.rate_min = rate; rate 194 sound/pci/ice1712/juli.c runtime->hw.rate_max = rate; rate 230 sound/pci/ice1712/juli.c if (rate == 0) /* no hint - S/PDIF input is master or the new spdif rate 235 sound/pci/ice1712/juli.c if (rate > 96000) { rate 238 sound/pci/ice1712/juli.c } else if (rate > 48000) { rate 533 sound/pci/ice1712/juli.c new = (old & ~GPIO_RATE_MASK) | get_gpio_val(rate); rate 566 sound/pci/ice1712/juli.c int rate; rate 569 sound/pci/ice1712/juli.c rate = snd_ak4114_external_rate(ak4114); rate 572 sound/pci/ice1712/juli.c juli_akm_set_rate_val(ice->akm, rate); rate 329 sound/pci/ice1712/prodigy192.c if (rate == 0) /* no hint - S/PDIF input is master, simply return */ rate 331 sound/pci/ice1712/prodigy192.c else if (rate <= 48000) rate 333 sound/pci/ice1712/prodigy192.c else if (rate <= 96000) rate 58 sound/pci/ice1712/revo.c if (rate == 0) /* no hint - S/PDIF input is master, simply return */ rate 62 sound/pci/ice1712/revo.c if (rate > 96000) rate 64 sound/pci/ice1712/revo.c else if (rate > 48000) rate 328 sound/pci/ice1712/revo.c revo_set_rate_val(ak, rate); rate 331 sound/pci/ice1712/revo.c snd_ice1712_gpio_write_bits(ice, 1 << 8, rate > 96000 ? 1 << 8 : 0); rate 333 sound/pci/ice1712/revo.c if (rate > 96000) rate 335 sound/pci/ice1712/revo.c else if (rate > 48000) rate 221 sound/pci/ice1712/se.c if (rate > 96000) rate 349 sound/pci/ice1712/se.c se200pci_WM8740_set_pro_rate(ice, rate); rate 350 sound/pci/ice1712/se.c se200pci_WM8766_set_pro_rate(ice, rate); rate 351 sound/pci/ice1712/se.c se200pci_WM8776_set_pro_rate(ice, rate); rate 979 sound/pci/intel8x0.c int dbl = runtime->rate > 48000; rate 595 sound/pci/intel8x0m.c snd_ac97_write(ichdev->ac97, AC97_LINE1_RATE, runtime->rate); rate 848 sound/pci/korg1212/korg1212.c switch (rate) { rate 862 sound/pci/korg1212/korg1212.c korg1212->clkRate = rate; rate 1323 sound/pci/maestro3.c freq = ((runtime->rate << 15) + 24000 ) / 48000; rate 1382 sound/pci/maestro3.c subs->runtime->rate > 45000 ? 0xff : 0); rate 1497 sound/pci/maestro3.c if (runtime->rate > 48000 || rate 1498 sound/pci/maestro3.c runtime->rate < 8000) rate 174 sound/pci/mixart/mixart.c if(rate != 0) rate 177 sound/pci/mixart/mixart.c if(rate == 0) rate 180 sound/pci/mixart/mixart.c snd_printk(KERN_ERR "error mixart_set_clock(%d) called with wrong pipe->status !\n", rate); rate 186 sound/pci/mixart/mixart.c clock_properties.clock_generic_type = (rate != 0) ? CGT_INTERNAL_CLOCK : CGT_NO_CLOCK; rate 188 sound/pci/mixart/mixart.c clock_properties.frequency = rate; rate 192 sound/pci/mixart/mixart.c snd_printdd("mixart_set_clock to %d kHz\n", rate); rate 205 sound/pci/mixart/mixart.c if(rate) pipe->status = PIPE_CLOCK_SET; rate 483 sound/pci/mixart/mixart.c chip->mgr->sample_rate = subs->runtime->rate; rate 487 sound/pci/mixart/mixart.c if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) rate 416 sound/pci/nm256/nm256.c if (rate == samplerates[i]) rate 431 sound/pci/nm256/nm256.c int rate_index = snd_nm256_fixed_rate(runtime->rate); rate 444 sound/pci/nm256/nm256.c runtime->rate = samplerates[rate_index]; rate 166 sound/pci/pcxhr/pcxhr.c realfreq = rate; rate 169 sound/pci/pcxhr/pcxhr.c switch (rate) { rate 188 sound/pci/pcxhr/pcxhr.c err = pcxhr_pll_freq_register(rate, &pllreg, &realfreq); rate 225 sound/pci/pcxhr/pcxhr.c if (rate == 0) rate 228 sound/pci/pcxhr/pcxhr.c err = pcxhr_get_clock_reg(mgr, rate, &val, &realfreq); rate 233 sound/pci/pcxhr/pcxhr.c if (rate < 55000) rate 235 sound/pci/pcxhr/pcxhr.c else if (rate < 100000) rate 275 sound/pci/pcxhr/pcxhr.c if (rate < PCXHR_IRQ_TIMER_FREQ) rate 279 sound/pci/pcxhr/pcxhr.c rmh.cmd[2] = rate; rate 285 sound/pci/pcxhr/pcxhr.c snd_printdd("pcxhr_set_clock to %dHz (realfreq=%d)\n", rate, realfreq); rate 295 sound/pci/pcxhr/pcxhr.c int err, rate; rate 322 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_32000 : rate = 32000; break; rate 323 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_44100 : rate = 44100; break; rate 324 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_48000 : rate = 48000; break; rate 325 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_64000 : rate = 64000; break; rate 326 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_88200 : rate = 88200; break; rate 327 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_96000 : rate = 96000; break; rate 328 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_128000 : rate = 128000; break; rate 329 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_176400 : rate = 176400; break; rate 330 sound/pci/pcxhr/pcxhr.c case REG_STATUS_SYNC_192000 : rate = 192000; break; rate 331 sound/pci/pcxhr/pcxhr.c default: rate = 0; rate 333 sound/pci/pcxhr/pcxhr.c snd_printdd("External clock is at %d Hz\n", rate); rate 334 sound/pci/pcxhr/pcxhr.c *sample_rate = rate; rate 749 sound/pci/pcxhr/pcxhr.c if (mgr->sample_rate != subs->runtime->rate) { rate 750 sound/pci/pcxhr/pcxhr.c err = pcxhr_set_clock(mgr, subs->runtime->rate); rate 756 sound/pci/pcxhr/pcxhr.c mgr->sample_rate = subs->runtime->rate; rate 671 sound/pci/pcxhr/pcxhr_mixer.c int rate, ret = 0; rate 680 sound/pci/pcxhr/pcxhr_mixer.c pcxhr_get_external_clock(mgr, mgr->use_clock_type, &rate); rate 682 sound/pci/pcxhr/pcxhr_mixer.c rate = mgr->sample_rate; rate 683 sound/pci/pcxhr/pcxhr_mixer.c if (rate) { rate 684 sound/pci/pcxhr/pcxhr_mixer.c pcxhr_set_clock(mgr, rate); rate 686 sound/pci/pcxhr/pcxhr_mixer.c mgr->sample_rate = rate; rate 722 sound/pci/pcxhr/pcxhr_mixer.c int i, err, rate; rate 727 sound/pci/pcxhr/pcxhr_mixer.c rate = mgr->sample_rate_real; rate 729 sound/pci/pcxhr/pcxhr_mixer.c err = pcxhr_get_external_clock(mgr, i, &rate); rate 733 sound/pci/pcxhr/pcxhr_mixer.c ucontrol->value.integer.value[i] = rate; rate 485 sound/pci/riptide/riptide.c unsigned int rate; rate 1029 sound/pci/riptide/riptide.c *rate = (unsigned int)p[0]; rate 1031 sound/pci/riptide/riptide.c *rate = (unsigned int)p[1]; rate 1032 sound/pci/riptide/riptide.c snd_printdd("getsampleformat %d %d %d\n", intdec[0], intdec[1], *rate); rate 1067 sound/pci/riptide/riptide.c intdec[1], rate); rate 1069 sound/pci/riptide/riptide.c M = ((rate == 48000) ? 47999 : rate) * 65536; rate 1083 sound/pci/riptide/riptide.c *intdec, rate); rate 1489 sound/pci/riptide/riptide.c unsigned int rate, channels; rate 1497 sound/pci/riptide/riptide.c runtime->channels, runtime->format, runtime->rate); rate 1502 sound/pci/riptide/riptide.c rate = runtime->rate; rate 1505 sound/pci/riptide/riptide.c if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE) rate 1511 sound/pci/riptide/riptide.c if (rate == 48000 && format == SNDRV_PCM_FORMAT_S16_LE) rate 1566 sound/pci/riptide/riptide.c data->rate = 0; rate 1568 sound/pci/riptide/riptide.c if (data->rate != rate || data->format != format || rate 1570 sound/pci/riptide/riptide.c data->rate = rate; rate 1575 sound/pci/riptide/riptide.c || setsamplerate(cif, data->intdec, rate)) rate 1945 sound/pci/riptide/riptide.c unsigned int rate; rate 1983 sound/pci/riptide/riptide.c if (!(getsamplerate(cif, data->intdec, &rate))) rate 1984 sound/pci/riptide/riptide.c snd_iprintf(buffer, "rate: %d\n", rate); rate 1994 sound/pci/riptide/riptide.c if (!(getsamplerate(cif, data->intdec, &rate))) rate 1995 sound/pci/riptide/riptide.c snd_iprintf(buffer, "rate: %d\n", rate); rate 412 sound/pci/rme32.c int rate; rate 414 sound/pci/rme32.c rate = ((rme32->wcreg >> RME32_WCR_BITPOS_FREQ_0) & 1) + rate 416 sound/pci/rme32.c switch (rate) { rate 418 sound/pci/rme32.c rate = 32000; rate 421 sound/pci/rme32.c rate = 44100; rate 424 sound/pci/rme32.c rate = 48000; rate 429 sound/pci/rme32.c return (rme32->wcreg & RME32_WCR_DS_BM) ? rate << 1 : rate; rate 499 sound/pci/rme32.c switch (rate) { rate 658 sound/pci/rme32.c int err, rate, dummy; rate 675 sound/pci/rme32.c (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) { rate 677 sound/pci/rme32.c if ((int)params_rate(params) != rate) { rate 713 sound/pci/rme32.c int err, isadat, rate; rate 741 sound/pci/rme32.c if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) { rate 742 sound/pci/rme32.c if ((int)params_rate(params) != rate) { rate 849 sound/pci/rme32.c int rate, dummy; rate 874 sound/pci/rme32.c (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) { rate 876 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 877 sound/pci/rme32.c runtime->hw.rate_min = rate; rate 878 sound/pci/rme32.c runtime->hw.rate_max = rate; rate 892 sound/pci/rme32.c int isadat, rate; rate 914 sound/pci/rme32.c if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) { rate 918 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 919 sound/pci/rme32.c runtime->hw.rate_min = rate; rate 920 sound/pci/rme32.c runtime->hw.rate_max = rate; rate 931 sound/pci/rme32.c int rate, dummy; rate 952 sound/pci/rme32.c (rate = snd_rme32_capture_getrate(rme32, &dummy)) > 0) { rate 954 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 955 sound/pci/rme32.c runtime->hw.rate_min = rate; rate 956 sound/pci/rme32.c runtime->hw.rate_max = rate; rate 966 sound/pci/rme32.c int isadat, rate; rate 974 sound/pci/rme32.c if ((rate = snd_rme32_capture_getrate(rme32, &isadat)) > 0) { rate 978 sound/pci/rme32.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 979 sound/pci/rme32.c runtime->hw.rate_min = rate; rate 980 sound/pci/rme32.c runtime->hw.rate_max = rate; rate 577 sound/pci/rme96.c int n, rate; rate 586 sound/pci/rme96.c rate = 32000; rate 589 sound/pci/rme96.c rate = 44100; rate 592 sound/pci/rme96.c rate = 48000; rate 597 sound/pci/rme96.c return (rme96->areg & RME96_AR_BITPOS_F2) ? rate << 1 : rate; rate 639 sound/pci/rme96.c int rate, dummy; rate 643 sound/pci/rme96.c (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0) rate 646 sound/pci/rme96.c return rate; rate 648 sound/pci/rme96.c rate = ((rme96->wcreg >> RME96_WCR_BITPOS_FREQ_0) & 1) + rate 650 sound/pci/rme96.c switch (rate) { rate 652 sound/pci/rme96.c rate = 32000; rate 655 sound/pci/rme96.c rate = 44100; rate 658 sound/pci/rme96.c rate = 48000; rate 663 sound/pci/rme96.c return (rme96->wcreg & RME96_WCR_DS) ? rate << 1 : rate; rate 673 sound/pci/rme96.c switch (rate) { rate 722 sound/pci/rme96.c switch (rate) { rate 952 sound/pci/rme96.c int err, rate, dummy; rate 962 sound/pci/rme96.c (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0) rate 965 sound/pci/rme96.c if ((int)params_rate(params) != rate) { rate 1005 sound/pci/rme96.c int err, isadat, rate; rate 1024 sound/pci/rme96.c } else if ((rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0) { rate 1025 sound/pci/rme96.c if ((int)params_rate(params) != rate) { rate 1160 sound/pci/rme96.c int rate, dummy; rate 1177 sound/pci/rme96.c (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0) rate 1180 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 1181 sound/pci/rme96.c runtime->hw.rate_min = rate; rate 1182 sound/pci/rme96.c runtime->hw.rate_max = rate; rate 1196 sound/pci/rme96.c int isadat, rate; rate 1202 sound/pci/rme96.c (rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0) rate 1207 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 1208 sound/pci/rme96.c runtime->hw.rate_min = rate; rate 1209 sound/pci/rme96.c runtime->hw.rate_max = rate; rate 1227 sound/pci/rme96.c int rate, dummy; rate 1244 sound/pci/rme96.c (rate = snd_rme96_capture_getrate(rme96, &dummy)) > 0) rate 1247 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 1248 sound/pci/rme96.c runtime->hw.rate_min = rate; rate 1249 sound/pci/rme96.c runtime->hw.rate_max = rate; rate 1258 sound/pci/rme96.c int isadat, rate; rate 1268 sound/pci/rme96.c if ((rate = snd_rme96_capture_getrate(rme96, &isadat)) > 0) { rate 1272 sound/pci/rme96.c runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); rate 1273 sound/pci/rme96.c runtime->hw.rate_min = rate; rate 1274 sound/pci/rme96.c runtime->hw.rate_max = rate; rate 1031 sound/pci/rme9652/hdsp.c if (rate >= 112000) rate 1032 sound/pci/rme9652/hdsp.c rate /= 4; rate 1033 sound/pci/rme9652/hdsp.c else if (rate >= 56000) rate 1034 sound/pci/rme9652/hdsp.c rate /= 2; rate 1037 sound/pci/rme9652/hdsp.c div64_32(&n, rate, &r); rate 1071 sound/pci/rme9652/hdsp.c else if (rate != external_freq) { rate 1090 sound/pci/rme9652/hdsp.c if (rate > 96000 && hdsp->io_type != H9632) rate 1093 sound/pci/rme9652/hdsp.c switch (rate) { rate 1156 sound/pci/rme9652/hdsp.c hdsp_set_dds_value(hdsp, rate); rate 1158 sound/pci/rme9652/hdsp.c if (rate >= 128000) { rate 1160 sound/pci/rme9652/hdsp.c } else if (rate > 48000) { rate 1183 sound/pci/rme9652/hdsp.c hdsp->system_sample_rate = rate; rate 2030 sound/pci/rme9652/hdsp.c int rate; rate 2042 sound/pci/rme9652/hdsp.c rate = 32000; rate 2045 sound/pci/rme9652/hdsp.c rate = 44100; rate 2048 sound/pci/rme9652/hdsp.c rate = 48000; rate 2051 sound/pci/rme9652/hdsp.c rate = 64000; rate 2054 sound/pci/rme9652/hdsp.c rate = 88200; rate 2057 sound/pci/rme9652/hdsp.c rate = 96000; rate 2060 sound/pci/rme9652/hdsp.c rate = 128000; rate 2063 sound/pci/rme9652/hdsp.c rate = 176400; rate 2066 sound/pci/rme9652/hdsp.c rate = 192000; rate 2069 sound/pci/rme9652/hdsp.c rate = 48000; rate 2073 sound/pci/rme9652/hdsp.c hdsp_set_rate(hdsp, rate, 1); rate 3101 sound/pci/rme9652/hdsp.c int rate = hdsp->system_sample_rate + offset_hz; rate 3102 sound/pci/rme9652/hdsp.c hdsp_set_dds_value(hdsp, rate); rate 666 sound/pci/rme9652/hdspm.c int rate = 0; rate 676 sound/pci/rme9652/hdspm.c rate = 32000; rate 679 sound/pci/rme9652/hdspm.c rate = 44100; rate 682 sound/pci/rme9652/hdspm.c rate = 48000; rate 685 sound/pci/rme9652/hdspm.c rate = 64000; rate 688 sound/pci/rme9652/hdspm.c rate = 88200; rate 691 sound/pci/rme9652/hdspm.c rate = 96000; rate 695 sound/pci/rme9652/hdspm.c rate = 0; rate 703 sound/pci/rme9652/hdspm.c if (rate != 0 && rate 705 sound/pci/rme9652/hdspm.c return rate; rate 713 sound/pci/rme9652/hdspm.c rate = 32000; rate 716 sound/pci/rme9652/hdspm.c rate = 44100; rate 719 sound/pci/rme9652/hdspm.c rate = 48000; rate 722 sound/pci/rme9652/hdspm.c rate = 64000; rate 725 sound/pci/rme9652/hdspm.c rate = 88200; rate 728 sound/pci/rme9652/hdspm.c rate = 96000; rate 731 sound/pci/rme9652/hdspm.c rate = 128000; rate 734 sound/pci/rme9652/hdspm.c rate = 176400; rate 737 sound/pci/rme9652/hdspm.c rate = 192000; rate 740 sound/pci/rme9652/hdspm.c rate = 0; rate 744 sound/pci/rme9652/hdspm.c return rate; rate 836 sound/pci/rme9652/hdspm.c if (rate >= 112000) rate 837 sound/pci/rme9652/hdspm.c rate /= 4; rate 838 sound/pci/rme9652/hdspm.c else if (rate >= 56000) rate 839 sound/pci/rme9652/hdspm.c rate /= 2; rate 847 sound/pci/rme9652/hdspm.c div64_32(&n, rate, &r); rate 891 sound/pci/rme9652/hdspm.c } else if (rate != external_freq) { rate 920 sound/pci/rme9652/hdspm.c if (rate <= 48000) rate 922 sound/pci/rme9652/hdspm.c else if (rate <= 96000) rate 927 sound/pci/rme9652/hdspm.c switch (rate) { rate 977 sound/pci/rme9652/hdspm.c hdspm_set_dds_value(hdspm, rate); rate 979 sound/pci/rme9652/hdspm.c if (hdspm->is_aes32 && rate != current_rate) rate 986 sound/pci/rme9652/hdspm.c hdspm->system_sample_rate = rate; rate 1512 sound/pci/rme9652/hdspm.c int rate; rate 1524 sound/pci/rme9652/hdspm.c rate = 32000; rate 1527 sound/pci/rme9652/hdspm.c rate = 44100; rate 1530 sound/pci/rme9652/hdspm.c rate = 48000; rate 1533 sound/pci/rme9652/hdspm.c rate = 64000; rate 1536 sound/pci/rme9652/hdspm.c rate = 88200; rate 1539 sound/pci/rme9652/hdspm.c rate = 96000; rate 1542 sound/pci/rme9652/hdspm.c rate = 128000; rate 1545 sound/pci/rme9652/hdspm.c rate = 176400; rate 1548 sound/pci/rme9652/hdspm.c rate = 192000; rate 1552 sound/pci/rme9652/hdspm.c rate = 44100; rate 1556 sound/pci/rme9652/hdspm.c hdspm_set_rate(hdspm, rate, 1); rate 509 sound/pci/rme9652/rme9652.c switch (rate) { rate 514 sound/pci/rme9652/rme9652.c rate = 0; rate 520 sound/pci/rme9652/rme9652.c rate = RME9652_freq; rate 526 sound/pci/rme9652/rme9652.c rate = RME9652_DS; rate 532 sound/pci/rme9652/rme9652.c rate = RME9652_DS | RME9652_freq; rate 548 sound/pci/rme9652/rme9652.c rme9652->control_register |= rate; rate 555 sound/pci/rme9652/rme9652.c if (rate & RME9652_DS) { rate 362 sound/pci/sis7019.c if (rate == 44100) rate 364 sound/pci/sis7019.c else if (rate == 8000) rate 366 sound/pci/sis7019.c else if (rate == 48000) rate 369 sound/pci/sis7019.c delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff; rate 558 sound/pci/sis7019.c delta = sis_rate_to_delta(runtime->rate); rate 801 sound/pci/sis7019.c delta = sis_rate_to_delta(runtime->rate); rate 456 sound/pci/sonicvibes.c if (rate < 625000 / SV_ADCMULT) rate 457 sound/pci/sonicvibes.c rate = 625000 / SV_ADCMULT; rate 458 sound/pci/sonicvibes.c if (rate > 150000000 / SV_ADCMULT) rate 459 sound/pci/sonicvibes.c rate = 150000000 / SV_ADCMULT; rate 461 sound/pci/sonicvibes.c for (r = 0; rate < 75000000 / SV_ADCMULT; r += 0x20, rate <<= 1); rate 465 sound/pci/sonicvibes.c if (xr >= rate) rate 466 sound/pci/sonicvibes.c xd = xr - rate; rate 468 sound/pci/sonicvibes.c xd = rate - xr; rate 491 sound/pci/sonicvibes.c snd_sonicvibes_pll(rate, &r, &m, &n); rate 506 sound/pci/sonicvibes.c div = 48000 / rate; rate 509 sound/pci/sonicvibes.c if ((48000 / div) == rate) { /* use the alternate clock */ rate 513 sound/pci/sonicvibes.c snd_sonicvibes_setpll(sonic, SV_IREG_ADC_PLL, rate); rate 524 sound/pci/sonicvibes.c unsigned int rate, div, r, m, n; rate 528 sound/pci/sonicvibes.c rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE)->min; rate 529 sound/pci/sonicvibes.c div = 48000 / rate; rate 532 sound/pci/sonicvibes.c if ((48000 / div) == rate) { rate 533 sound/pci/sonicvibes.c params->rate_num = rate; rate 536 sound/pci/sonicvibes.c snd_sonicvibes_pll(rate, &r, &m, &n); rate 551 sound/pci/sonicvibes.c div = (rate * 65536 + SV_FULLRATE / 2) / SV_FULLRATE; rate 687 sound/pci/sonicvibes.c snd_sonicvibes_set_dac_rate(sonic, runtime->rate); rate 712 sound/pci/sonicvibes.c snd_sonicvibes_set_adc_rate(sonic, runtime->rate); rate 682 sound/pci/trident/trident_main.c if (rate == 44100) rate 684 sound/pci/trident/trident_main.c else if (rate == 8000) rate 686 sound/pci/trident/trident_main.c else if (rate == 48000) rate 689 sound/pci/trident/trident_main.c delta = (((rate << 12) + 24000) / 48000) & 0x0000ffff; rate 712 sound/pci/trident/trident_main.c if (rate == 44100) rate 714 sound/pci/trident/trident_main.c else if (rate == 8000) rate 716 sound/pci/trident/trident_main.c else if (rate == 48000) rate 719 sound/pci/trident/trident_main.c delta = ((48000 << 12) / rate) & 0x0000ffff; rate 737 sound/pci/trident/trident_main.c unsigned int res = (rate * period_size) / 48000; rate 952 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); rate 953 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); rate 1072 sound/pci/trident/trident_main.c val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate; rate 1097 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); rate 1098 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); rate 1194 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_adc_rate(runtime->rate); rate 1195 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); rate 1219 sound/pci/trident/trident_main.c evoice->Delta = snd_trident_convert_rate(runtime->rate); rate 1413 sound/pci/trident/trident_main.c voice->Delta = snd_trident_convert_rate(runtime->rate); rate 1414 sound/pci/trident/trident_main.c voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); rate 345 sound/pci/via82xx.c int rate; rate 980 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); rate 981 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); rate 992 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); rate 1005 sound/pci/via82xx.c if (rec->rate != rate) { rate 1006 sound/pci/via82xx.c if (rec->rate && rec->used > 1) /* already set */ rate 1009 sound/pci/via82xx.c rec->rate = rate; rate 1025 sound/pci/via82xx.c int ac97_rate = chip->dxs_src ? 48000 : runtime->rate; rate 1033 sound/pci/via82xx.c chip->no_vra ? 48000 : runtime->rate); rate 1035 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); rate 1037 sound/pci/via82xx.c if (runtime->rate == 48000) rate 1040 sound/pci/via82xx.c rbits = (0x100000 / 48000) * runtime->rate + rate 1041 sound/pci/via82xx.c ((0x100000 % 48000) * runtime->rate) / 48000; rate 1070 sound/pci/via82xx.c if (via_lock_rate(&chip->rates[0], runtime->rate) < 0) rate 1072 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate); rate 1073 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_SURR_DAC_RATE, runtime->rate); rate 1074 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate); rate 1075 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate); rate 1117 sound/pci/via82xx.c if (via_lock_rate(&chip->rates[1], runtime->rate) < 0) rate 1119 sound/pci/via82xx.c snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); rate 1188 sound/pci/via82xx.c } else if (! ratep->rate) { rate 1195 sound/pci/via82xx.c runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate; rate 1280 sound/pci/via82xx.c ratep->rate = 0; rate 1282 sound/pci/via82xx.c if (! ratep->rate) { rate 126 sound/pci/ymfpci/ymfpci_main.c switch (rate) { rate 133 sound/pci/ymfpci/ymfpci_main.c default: return ((rate << 16) / 375) << 5; rate 149 sound/pci/ymfpci/ymfpci_main.c if (rate == 44100) rate 152 sound/pci/ymfpci/ymfpci_main.c if (rate <= def_rate[i]) rate 165 sound/pci/ymfpci/ymfpci_main.c if (rate == 44100) rate 168 sound/pci/ymfpci/ymfpci_main.c if (rate <= def_rate[i]) rate 491 sound/pci/ymfpci/ymfpci_main.c u32 delta = snd_ymfpci_calc_delta(runtime->rate); rate 492 sound/pci/ymfpci/ymfpci_main.c u32 lpfQ = snd_ymfpci_calc_lpfQ(runtime->rate); rate 493 sound/pci/ymfpci/ymfpci_main.c u32 lpfK = snd_ymfpci_calc_lpfK(runtime->rate); rate 523 sound/pci/ymfpci/ymfpci_main.c runtime->rate == 44100 && runtime->channels == 2 && rate 710 sound/pci/ymfpci/ymfpci_main.c u32 rate, format; rate 717 sound/pci/ymfpci/ymfpci_main.c rate = ((48000 * 4096) / runtime->rate) - 1; rate 730 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writel(chip, YDSXGR_RECSLOTSR, rate); rate 734 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writel(chip, YDSXGR_ADCSLOTSR, rate); rate 96 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c int inc, ret = 0, rate; rate 112 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c rate = snd_ak4117_check_rate_and_errors(chip->ak4117, AK4117_CHECK_NO_STAT|AK4117_CHECK_NO_RATE); rate 120 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c rate = 0; rate 129 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c if ((chip->ak4117->rcs0 & AK4117_UNLCK) || runtime->rate != rate) { rate 101 sound/ppc/pmac.c if (rate > chip->freq_table[0]) rate 107 sound/ppc/pmac.c if (rate >= chip->freq_table[i]) rate 222 sound/ppc/pmac.c rate_index = snd_pmac_rate_index(chip, rec, runtime->rate); rate 424 sound/ppc/snd_ps3.c int rate ; rate 426 sound/ppc/snd_ps3.c rate = substream->runtime->rate; rate 428 sound/ppc/snd_ps3.c rate * delay_ms / 1000) rate 434 sound/ppc/snd_ps3.c rate, rate 435 sound/ppc/snd_ps3.c snd_pcm_format_size(substream->runtime->format, rate), rate 436 sound/ppc/snd_ps3.c rate * delay_ms / 1000, rate 692 sound/ppc/snd_ps3.c substream->runtime->rate, rate 699 sound/ppc/snd_ps3.c switch (substream->runtime->rate) { rate 714 sound/ppc/snd_ps3.c substream->runtime->rate); rate 416 sound/sh/aica.c dreamcastcard->channel->freq = substream->runtime->rate; rate 90 sound/soc/at32/playpaq_wm8510.c unsigned int rate, width_bits, channels; rate 98 sound/soc/at32/playpaq_wm8510.c rate = params_rate(params); rate 101 sound/soc/at32/playpaq_wm8510.c bitrate = rate * width_bits * channels; rate 122 sound/soc/at32/playpaq_wm8510.c rate, actual_rate); rate 179 sound/soc/au1x/psc-ac97.c (pscdata->rate != params_rate(params))) rate 206 sound/soc/au1x/psc-ac97.c pscdata->rate = params_rate(params); rate 132 sound/soc/au1x/psc-i2s.c (params_rate(params) != pscdata->rate)) rate 139 sound/soc/au1x/psc-i2s.c pscdata->rate = params_rate(params); rate 28 sound/soc/au1x/psc.h unsigned long rate; rate 36 sound/soc/codecs/ac97.c return snd_ac97_set_rate(codec->ac97, reg, runtime->rate); rate 349 sound/soc/codecs/ak4535.c int rate = params_rate(params), fs = 256; rate 351 sound/soc/codecs/ak4535.c if (rate) rate 352 sound/soc/codecs/ak4535.c fs = ak4535->sysclk / rate; rate 217 sound/soc/codecs/cs4270.c unsigned int rate = freq / cs4270_mode_ratios[i].ratio; rate 218 sound/soc/codecs/cs4270.c rates |= snd_pcm_rate_to_rate_bit(rate); rate 219 sound/soc/codecs/cs4270.c if (rate < rate_min) rate 220 sound/soc/codecs/cs4270.c rate_min = rate; rate 221 sound/soc/codecs/cs4270.c if (rate > rate_max) rate 222 sound/soc/codecs/cs4270.c rate_max = rate; rate 377 sound/soc/codecs/cs4270.c unsigned int rate; rate 383 sound/soc/codecs/cs4270.c rate = params_rate(params); /* Sampling rate, in Hz */ rate 384 sound/soc/codecs/cs4270.c ratio = cs4270->mclk / rate; /* MCLK/LRCK ratio */ rate 234 sound/soc/codecs/ssm2602.c u32 rate; rate 281 sound/soc/codecs/ssm2602.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) rate 342 sound/soc/codecs/ssm2602.c master_runtime->rate, rate 343 sound/soc/codecs/ssm2602.c master_runtime->rate); rate 451 sound/soc/codecs/uda1380.c int rate = params_rate(params); rate 454 sound/soc/codecs/uda1380.c switch (rate) { rate 213 sound/soc/codecs/wm8731.c u32 rate; rate 260 sound/soc/codecs/wm8731.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) rate 470 sound/soc/codecs/wm8750.c u32 rate; rate 531 sound/soc/codecs/wm8750.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) rate 536 sound/soc/codecs/wm8750.c mclk, rate); rate 795 sound/soc/codecs/wm8753.c u32 rate; rate 855 sound/soc/codecs/wm8753.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) rate 1150 sound/soc/codecs/wm8903.c int rate; rate 1243 sound/soc/codecs/wm8903.c int rate; rate 1282 sound/soc/codecs/wm8903.c master_runtime->rate); rate 1286 sound/soc/codecs/wm8903.c master_runtime->rate, rate 1287 sound/soc/codecs/wm8903.c master_runtime->rate); rate 1350 sound/soc/codecs/wm8903.c best_val = abs(sample_rates[dsp_config].rate - fs); rate 1352 sound/soc/codecs/wm8903.c cur_val = abs(sample_rates[i].rate - fs); rate 1361 sound/soc/codecs/wm8903.c switch (sample_rates[dsp_config].rate) { rate 1372 sound/soc/codecs/wm8903.c dev_dbg(&i2c->dev, "DSP fs = %dHz\n", sample_rates[dsp_config].rate); rate 1430 sound/soc/codecs/wm8903.c clock1 |= clk_sys_ratios[clk_config].rate << WM8903_CLK_SYS_RATE_SHIFT; rate 1434 sound/soc/codecs/wm8903.c clk_sys_ratios[clk_config].rate, rate 400 sound/soc/codecs/wm8971.c u32 rate; rate 461 sound/soc/codecs/wm8971.c if (coeff_div[i].rate == rate && coeff_div[i].mclk == mclk) rate 507 sound/soc/codecs/wm9712.c return ac97_write(codec, reg, runtime->rate); rate 526 sound/soc/codecs/wm9712.c return ac97_write(codec, AC97_PCM_SURR_DAC_RATE, runtime->rate); rate 989 sound/soc/codecs/wm9713.c return ac97_write(codec, reg, runtime->rate); rate 1008 sound/soc/codecs/wm9713.c return ac97_write(codec, AC97_PCM_SURR_DAC_RATE, runtime->rate); rate 372 sound/soc/fsl/fsl_ssi.c if (!first_runtime->rate || !first_runtime->sample_bits) { rate 382 sound/soc/fsl/fsl_ssi.c first_runtime->rate, first_runtime->rate); rate 463 sound/soc/s3c24xx/s3c2412-i2s.c div = fsclk / rate; rate 465 sound/soc/s3c24xx/s3c2412-i2s.c if ((fsclk % rate) > (rate / 2)) rate 472 sound/soc/s3c24xx/s3c2412-i2s.c deviation = actual - rate; rate 527 sound/sparc/cs4231.c if (rate == rates[i]) rate 1582 sound/sparc/dbri.c if (CS4215_FREQ[freq_idx].freq == rate) rate 1585 sound/sparc/dbri.c if (CS4215_FREQ[freq_idx].freq != rate) { rate 1586 sound/sparc/dbri.c printk(KERN_WARNING "DBRI: Unsupported rate %d Hz\n", rate); rate 852 sound/synth/emux/soundfont.c r = (3 - ((rate >> 6) & 3)) * 3; rate 853 sound/synth/emux/soundfont.c p = rate & 0x3f; rate 1086 sound/synth/emux/soundfont.c int rate = (patch.tremolo_rate * 1000 / 38) / 42; rate 1087 sound/synth/emux/soundfont.c zone->v.parm.tremfrq = ((patch.tremolo_depth / 2) << 8) | rate; rate 1091 sound/synth/emux/soundfont.c int rate = (patch.vibrato_rate * 1000 / 38) / 42; rate 1092 sound/synth/emux/soundfont.c zone->v.parm.fm2frq2 = ((patch.vibrato_depth / 6) << 8) | rate; rate 214 sound/usb/caiaq/caiaq-audio.c if (runtime->rate == rates[i]) rate 223 sound/usb/caiaq/caiaq-audio.c bpp = ((runtime->rate / 8000) + CLOCK_DRIFT_TOLERANCE) rate 229 sound/usb/caiaq/caiaq-audio.c ret = snd_usb_caiaq_set_audio_params(dev, runtime->rate, rate 207 sound/usb/caiaq/caiaq-device.c switch (rate) { rate 227 sound/usb/caiaq/caiaq-device.c rate, depth, bpp); rate 223 sound/usb/usbaudio.c return ((rate << 13) + 62) / 125; rate 232 sound/usb/usbaudio.c return ((rate << 10) + 62) / 125; rate 1043 sound/usb/usbaudio.c subs->freqn = get_usb_full_speed_rate(rate); rate 1045 sound/usb/usbaudio.c subs->freqn = get_usb_high_speed_rate(rate); rate 1205 sound/usb/usbaudio.c if (rate < fp->rate_min || rate > fp->rate_max) rate 1210 sound/usb/usbaudio.c if (fp->rate_table[i] == rate) rate 1289 sound/usb/usbaudio.c data[0] = rate; rate 1290 sound/usb/usbaudio.c data[1] = rate >> 8; rate 1291 sound/usb/usbaudio.c data[2] = rate >> 16; rate 1296 sound/usb/usbaudio.c dev->devnum, iface, fmt->altsetting, rate, ep); rate 1307 sound/usb/usbaudio.c if (crate != rate) { rate 1308 sound/usb/usbaudio.c snd_printd(KERN_WARNING "current rate %d is different from the runtime rate %d\n", crate, rate); rate 1458 sound/usb/usbaudio.c unsigned int channels, rate, format; rate 1467 sound/usb/usbaudio.c rate = params_rate(hw_params); rate 1469 sound/usb/usbaudio.c fmt = find_format(subs, format, rate, channels); rate 1472 sound/usb/usbaudio.c format, rate, channels); rate 1478 sound/usb/usbaudio.c subs->cur_rate != rate; rate 1482 sound/usb/usbaudio.c if (subs->cur_rate != rate) { rate 1487 sound/usb/usbaudio.c ret = init_usb_sample_rate(subs->dev, subs->interface, alts, fmt, rate); rate 1490 sound/usb/usbaudio.c subs->cur_rate = rate; rate 2538 sound/usb/usbaudio.c unsigned int rate = combine_triple(&fmt[idx]); rate 2540 sound/usb/usbaudio.c if (rate == 48000 && nr_rates == 1 && rate 2543 sound/usb/usbaudio.c rate = 96000; rate 2544 sound/usb/usbaudio.c fp->rate_table[r] = rate; rate 2545 sound/usb/usbaudio.c nonzero_rates |= rate; rate 2546 sound/usb/usbaudio.c if (rate < fp->rate_min) rate 2547 sound/usb/usbaudio.c fp->rate_min = rate; rate 2548 sound/usb/usbaudio.c else if (rate > fp->rate_max) rate 2549 sound/usb/usbaudio.c fp->rate_max = rate; rate 2550 sound/usb/usbaudio.c fp->rates |= snd_pcm_rate_to_rate_bit(rate); rate 279 sound/usb/usx2y/us122l.c data[0] = rate; rate 280 sound/usb/usx2y/us122l.c data[1] = rate >> 8; rate 281 sound/usb/usx2y/us122l.c data[2] = rate >> 16; rate 287 sound/usb/usx2y/us122l.c dev->devnum, rate, ep); rate 304 sound/usb/usx2y/us122l.c switch (rate) { rate 317 sound/usb/usx2y/us122l.c rate, use_packsize, period_frames, 6)) rate 320 sound/usb/usx2y/us122l.c err = us122l_set_sample_rate(us122l->chip.dev, rate); rate 124 sound/usb/usx2y/usb_stream.c return ((rate << 13) + 62) / 125; rate 133 sound/usb/usx2y/usb_stream.c return ((rate << 10) + 62) / 125; rate 34 sound/usb/usx2y/usbusx2y.h unsigned int rate, rate 674 sound/usb/usx2y/usbusx2yaudio.c struct s_c2 *ra = rate == 48000 ? SetRate48000 : SetRate44100; rate 676 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->rate != rate) { rate 723 sound/usb/usx2y/usbusx2yaudio.c usX2Y->rate = rate; rate 756 sound/usb/usx2y/usbusx2yaudio.c usX2Y->rate = 0; rate 765 sound/usb/usx2y/usbusx2yaudio.c unsigned int rate = params_rate(hw_params); rate 787 sound/usb/usx2y/usbusx2yaudio.c (test_substream->runtime->rate && rate 788 sound/usb/usx2y/usbusx2yaudio.c test_substream->runtime->rate != rate))) rate 853 sound/usb/usx2y/usbusx2yaudio.c if (usX2Y->rate != runtime->rate) rate 854 sound/usb/usx2y/usbusx2yaudio.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0) rate 96 sound/usb/usx2y/usx2yhwdeppcm.c return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size == 2^x ? rate 509 sound/usb/usx2y/usx2yhwdeppcm.c if (usX2Y->rate != runtime->rate) rate 510 sound/usb/usx2y/usx2yhwdeppcm.c if ((err = usX2Y_rate_set(usX2Y, runtime->rate)) < 0)