Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 25 of 36) sorted by relevance

12

/sound/soc/codecs/
Dmax98926.c249 int sr; member
253 .sr = 0,
257 .sr = 1,
261 .sr = 2,
265 .sr = 3,
269 .sr = 4,
273 .sr = 5,
277 .sr = 6,
281 .sr = 7,
285 .sr = 8,
[all …]
Dmax98925.c207 int sr; member
212 .sr = 0,
217 .sr = 1,
222 .sr = 2,
227 .sr = 3,
232 .sr = 4,
237 .sr = 5,
242 .sr = 6,
247 .sr = 7,
252 .sr = 8,
[all …]
Dwm8955.c199 int sr; member
248 int sr = -1; in wm8955_configure_clocking() local
259 sr = i; in wm8955_configure_clocking()
266 if (sr == -1) { in wm8955_configure_clocking()
269 WARN_ON(sr == -1); in wm8955_configure_clocking()
283 clock_cfgs[sr].mclk, &pll); in wm8955_configure_clocking()
320 srate = clock_cfgs[sr].usb | (clock_cfgs[sr].sr << WM8955_SR_SHIFT); in wm8955_configure_clocking()
Dda7219.c1429 unsigned long sr, bclk_rate; in da7219_set_dai_tdm_slot() local
1473 sr = clk_get_rate(wclk); in da7219_set_dai_tdm_slot()
1474 bclk_rate = sr * frame_size; in da7219_set_dai_tdm_slot()
1566 unsigned long sr, bclk_rate; in da7219_hw_params() local
1596 sr = params_rate(params); in da7219_hw_params()
1598 ret = clk_set_rate(wclk, sr); in da7219_hw_params()
1601 "Failed to set WCLK SR %lu: %d\n", sr, ret); in da7219_hw_params()
1605 ret = da7219_set_sr(component, sr); in da7219_hw_params()
1608 "Failed to set SR %lu: %d\n", sr, ret); in da7219_hw_params()
1625 bclk_rate = frame_size * sr; in da7219_hw_params()
[all …]
Dtlv320aic23.c298 int sr = (src >> 2) & 0x0f; in get_current_sample_rates() local
300 int adc = (val * sr_adc_mult_table[sr]) / SR_MULT; in get_current_sample_rates()
301 int dac = (val * sr_dac_mult_table[sr]) / SR_MULT; in get_current_sample_rates()
Dwm8711.c104 u8 sr:4; member
163 u16 srate = (coeff_div[i].sr << 2) | in wm8711_hw_params()
Dwm8971.c364 u8 sr:5; member
534 (coeff_div[coeff].sr << 1) | coeff_div[coeff].usb); in wm8971_pcm_hw_params()
Dwmfw.h172 __le32 sr; member
/sound/soc/rockchip/
Drockchip_pdm.c40 unsigned int sr; member
47 unsigned int sr; member
76 static unsigned int get_pdm_clk(struct rk_pdm_dev *pdm, unsigned int sr, in get_pdm_clk() argument
82 if (!sr) in get_pdm_clk()
87 if (sr % clkref[i].sr) in get_pdm_clk()
89 div = sr / clkref[i].sr; in get_pdm_clk()
108 static unsigned int get_pdm_ds_ratio(unsigned int sr) in get_pdm_ds_ratio() argument
113 if (!sr) in get_pdm_ds_ratio()
118 if (sr == ds_ratio[i].sr) in get_pdm_ds_ratio()
/sound/soc/fsl/
Dfsl_dma.c207 u32 sr, sr2 = 0; in fsl_dma_isr() local
212 sr = in_be32(&dma_channel->sr); in fsl_dma_isr()
214 if (sr & CCSR_DMA_SR_TE) { in fsl_dma_isr()
221 if (sr & CCSR_DMA_SR_CH) in fsl_dma_isr()
224 if (sr & CCSR_DMA_SR_PE) { in fsl_dma_isr()
231 if (sr & CCSR_DMA_SR_EOLNI) { in fsl_dma_isr()
236 if (sr & CCSR_DMA_SR_CB) in fsl_dma_isr()
239 if (sr & CCSR_DMA_SR_EOSI) { in fsl_dma_isr()
255 if (sr & CCSR_DMA_SR_EOLSI) { in fsl_dma_isr()
262 out_be32(&dma_channel->sr, sr2); in fsl_dma_isr()
[all …]
Dfsl_dma.h13 __be32 sr; /* Status register */ member
/sound/soc/atmel/
Datmel-i2s.c212 unsigned int sr, imr, pending, ch, mask; in atmel_i2s_interrupt() local
215 regmap_read(dev->regmap, ATMEL_I2SC_SR, &sr); in atmel_i2s_interrupt()
217 pending = sr & imr; in atmel_i2s_interrupt()
226 if (sr & ATMEL_I2SC_SR_RXORCH(ch)) { in atmel_i2s_interrupt()
240 if (sr & ATMEL_I2SC_SR_TXURCH(ch)) { in atmel_i2s_interrupt()
276 unsigned int rhr, sr = 0; in atmel_i2s_prepare() local
279 regmap_read(dev->regmap, ATMEL_I2SC_SR, &sr); in atmel_i2s_prepare()
280 if (sr & ATMEL_I2SC_SR_RXRDY) { in atmel_i2s_prepare()
Dmchp-i2s-mcc.c479 u32 sr; in mchp_i2s_mcc_is_running() local
481 regmap_read(dev->regmap, MCHP_I2SMCC_SR, &sr); in mchp_i2s_mcc_is_running()
482 return !!(sr & (MCHP_I2SMCC_SR_TXEN | MCHP_I2SMCC_SR_RXEN)); in mchp_i2s_mcc_is_running()
741 u32 sr; in mchp_i2s_mcc_trigger() local
756 regmap_read(dev->regmap, MCHP_I2SMCC_SR, &sr); in mchp_i2s_mcc_trigger()
757 if (is_playback && (sr & MCHP_I2SMCC_SR_TXEN)) { in mchp_i2s_mcc_trigger()
765 } else if (!is_playback && (sr & MCHP_I2SMCC_SR_RXEN)) { in mchp_i2s_mcc_trigger()
Dmchp-spdifrx.c281 u32 sr, imr, pending; in mchp_spdif_interrupt() local
285 regmap_read(dev->regmap, SPDIFRX_ISR, &sr); in mchp_spdif_interrupt()
287 pending = sr & imr; in mchp_spdif_interrupt()
288 dev_dbg(dev->dev, "ISR: %#x, IMR: %#x, pending: %#x\n", sr, imr, in mchp_spdif_interrupt()
Dmchp-spdiftx.c246 u32 sr, imr, pending, idr = 0; in mchp_spdiftx_interrupt() local
248 regmap_read(dev->regmap, SPDIFTX_ISR, &sr); in mchp_spdiftx_interrupt()
250 pending = sr & imr; in mchp_spdiftx_interrupt()
/sound/drivers/
Dmtpav.c521 u8 sr, cbyt; in snd_mtpav_read_bytes() local
540 sr = snd_mtpav_getreg(mcrd, SREG); in snd_mtpav_read_bytes()
543 sr &= SIGS_IN0 | SIGS_IN1; in snd_mtpav_read_bytes()
544 sr >>= 4; in snd_mtpav_read_bytes()
545 mtp_read_byte |= sr << (i * 2); in snd_mtpav_read_bytes()
/sound/pci/au88x0/
Dau88x0_synth.c358 static void vortex_wt_SetFrequency(vortex_t * vortex, int wt, unsigned int sr)
364 eax = ((sr << 0xf) * 0x57619F1) & 0xffffffff;
365 edx = (((sr << 0xf) * 0x57619F1)) >> 0x20;
Dau88x0_xtalk.h39 static void vortex_XtalkHw_SetSampleRate(vortex_t * vortex, u32 sr);
Dau88x0_xtalk.c640 static void vortex_XtalkHw_SetSampleRate(vortex_t * vortex, u32 sr) in vortex_XtalkHw_SetSampleRate() argument
645 temp = (temp & 0xffffff07) | ((sr & 0x1f) << 3); in vortex_XtalkHw_SetSampleRate()
650 static void vortex_XtalkHw_GetSampleRate(vortex_t * vortex, u32 *sr)
652 *sr = (hwread(vortex->mmio, 0x24660) >> 3) & 0x1f;
Dau88x0_eq.c373 static void vortex_EqHw_SetSampleRate(vortex_t * vortex, u32 sr) in vortex_EqHw_SetSampleRate() argument
375 hwwrite(vortex->mmio, 0x2b440, ((sr & 0x1f) << 3) | 0xb800); in vortex_EqHw_SetSampleRate()
384 static void vortex_EqHw_GetSampleRate(vortex_t * vortex, u32 *sr)
386 *sr = (hwread(vortex->mmio, 0x2b440) >> 3) & 0x1f;
Dau88x0_a3d.c376 static void a3dsrc_SetA3DSampleRate(a3dsrc_t * a, int sr) in a3dsrc_SetA3DSampleRate() argument
381 esp0 = (((esp0 & 0x7fffffff) | 0xB8000000) & 0x7) | ((sr & 0x1f) << 3); in a3dsrc_SetA3DSampleRate()
414 static void a3dsrc_GetA3DSampleRate(a3dsrc_t * a, int *sr)
417 *sr = ((hwread(vortex->mmio, A3D_SLICE_Control + (a->slice << 0xd))
/sound/soc/sunxi/
Dsun4i-i2s.c42 #define SUN4I_I2S_FMT0_SR(sr) ((sr) << 4) argument
486 int ret, sr, wss; in sun4i_i2s_hw_params() local
512 sr = i2s->variant->get_sr(i2s, word_size); in sun4i_i2s_hw_params()
513 if (sr < 0) in sun4i_i2s_hw_params()
521 regmap_field_write(i2s->field_fmt_sr, sr); in sun4i_i2s_hw_params()
/sound/atmel/
Dac97c.c469 u32 sr = ac97c_readl(chip, SR); in atmel_ac97c_interrupt() local
474 if (sr & AC97C_SR_CAEVT) { in atmel_ac97c_interrupt()
522 if (sr & AC97C_SR_COEVT) { in atmel_ac97c_interrupt()
534 "casr 0x%08x cosr 0x%08x\n", sr, casr, cosr); in atmel_ac97c_interrupt()
/sound/soc/stm/
Dstm32_i2s.c247 u32 sr, ier; in stm32_i2s_isr() local
251 regmap_read(i2s->regmap, STM32_I2S_SR_REG, &sr); in stm32_i2s_isr()
254 flags = sr & ier; in stm32_i2s_isr()
257 sr, ier); in stm32_i2s_isr()
Dstm32_spdifrx.c671 unsigned int cr, mask, sr, imr; in stm32_spdifrx_isr() local
675 regmap_read(spdifrx->regmap, STM32_SPDIFRX_SR, &sr); in stm32_spdifrx_isr()
683 flags = sr & mask; in stm32_spdifrx_isr()
686 sr, imr); in stm32_spdifrx_isr()

12