Home
last modified time | relevance | path

Searched refs:sample_rate (Results 1 – 25 of 57) sorted by relevance

123

/sound/soc/samsung/
Dlittlemill.c20 static int sample_rate = 44100; variable
41 sample_rate * 512); in littlemill_set_bias_level()
49 sample_rate * 512, in littlemill_set_bias_level()
108 sample_rate = params_rate(params); in littlemill_hw_params()
112 sample_rate * 512); in littlemill_hw_params()
120 sample_rate * 512, in littlemill_hw_params()
Dtobermory.c20 static int sample_rate = 44100; variable
37 sample_rate * 512); in tobermory_set_bias_level()
43 sample_rate * 512, in tobermory_set_bias_level()
100 sample_rate = params_rate(params); in tobermory_hw_params()
/sound/pci/echoaudio/
Dlayla24_dsp.c173 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
174 chip->sample_rate = rate; in set_sample_rate()
233 chip->comm_page->sample_rate = in set_sample_rate()
242 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ in set_sample_rate()
243 chip->sample_rate = rate; in set_sample_rate()
265 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
361 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dgina24_dsp.c177 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
178 chip->sample_rate = rate; in set_sample_rate()
226 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
227 chip->sample_rate = rate; in set_sample_rate()
250 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
314 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dlayla20_dsp.c169 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
170 chip->sample_rate = rate; in set_sample_rate()
178 chip->sample_rate = rate; in set_sample_rate()
179 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
196 rate = chip->sample_rate; in set_input_clock()
Dechoaudio_3g.c180 control_reg = set_spdif_bits(chip, control_reg, chip->sample_rate); in set_professional_spdif()
264 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
265 chip->sample_rate = rate; in set_sample_rate()
314 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
315 chip->sample_rate = rate; in set_sample_rate()
340 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
402 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dmona_dsp.c208 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
209 chip->sample_rate = rate; in set_sample_rate()
288 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
289 chip->sample_rate = rate; in set_sample_rate()
317 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
391 chip->sample_rate = 48000; in dsp_set_digital_mode()
Ddarla24_dsp.c140 chip->sample_rate = rate; in set_sample_rate()
146 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ in set_sample_rate()
160 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
Dmia_dsp.c142 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
144 chip->sample_rate = rate; in set_sample_rate()
162 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
Dgina20_dsp.c132 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
142 chip->sample_rate = rate; in set_sample_rate()
159 set_sample_rate(chip, chip->sample_rate); in set_input_clock()
Ddarla20_dsp.c116 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
126 chip->sample_rate = rate; in set_sample_rate()
Dindigoio_dsp.c96 chip->sample_rate = rate; in set_sample_rate()
97 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
Dindigo_dsp.c121 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
123 chip->sample_rate = rate; in set_sample_rate()
Dindigodj_dsp.c121 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
123 chip->sample_rate = rate; in set_sample_rate()
Dechoaudio_gml.c169 switch (chip->sample_rate) { in set_professional_spdif()
183 switch (chip->sample_rate) { in set_professional_spdif()
/sound/pci/pcxhr/
Dpcxhr.c428 int *sample_rate) in pcxhr_sub_get_external_clock() argument
484 *sample_rate = rate; in pcxhr_sub_get_external_clock()
491 int *sample_rate) in pcxhr_get_external_clock() argument
495 sample_rate); in pcxhr_get_external_clock()
498 sample_rate); in pcxhr_get_external_clock()
558 int err, is_capture, sample_rate, stream_num; in pcxhr_set_format() local
591 sample_rate = chip->mgr->sample_rate; in pcxhr_set_format()
592 if (sample_rate <= 32000 && sample_rate !=0) { in pcxhr_set_format()
593 if (sample_rate <= 11025) in pcxhr_set_format()
928 if (mgr->sample_rate != subs->runtime->rate) { in pcxhr_prepare()
[all …]
Dpcxhr.h108 int sample_rate; member
211 int *sample_rate);
/sound/usb/usx2y/
Dusb_stream.h32 unsigned sample_rate; member
105 unsigned sample_rate, unsigned use_packsize,
Dus122l.c401 if ((cfg->sample_rate != 44100 && cfg->sample_rate != 48000 && in usb_stream_hwdep_ioctl()
403 (cfg->sample_rate != 88200 && cfg->sample_rate != 96000))) || in usb_stream_hwdep_ioctl()
409 switch (cfg->sample_rate) { in usb_stream_hwdep_ioctl()
443 if (!us122l_start(us122l, cfg->sample_rate, cfg->period_frames)) in usb_stream_hwdep_ioctl()
725 us122l->sk.s->cfg.sample_rate); in snd_us122l_resume()
/sound/soc/fsl/
Dimx-wm8962.c52 static int sample_rate = 44100; variable
58 sample_rate = params_rate(params); in imx_hifi_hw_params()
86 pll_out = sample_rate * 384; in imx_wm8962_set_bias_level()
88 pll_out = sample_rate * 256; in imx_wm8962_set_bias_level()
Dfsl-asoc-card.c85 u32 sample_rate; member
125 priv->sample_rate = params_rate(params); in fsl_asoc_card_hw_params()
213 pll_out = priv->sample_rate * 384; in fsl_asoc_card_set_bias_level()
215 pll_out = priv->sample_rate * 256; in fsl_asoc_card_set_bias_level()
438 priv->sample_rate = 44100; in fsl_asoc_card_probe()
Dfsl_spdif.c369 int sample_rate) in spdif_set_sample_rate() argument
381 switch (sample_rate) { in spdif_set_sample_rate()
403 dev_err(&pdev->dev, "unsupported sample rate %d\n", sample_rate); in spdif_set_sample_rate()
429 ret = clk_set_rate(spdif_priv->txclk[rate], 64 * sample_rate * (txclk_df + 1)); in spdif_set_sample_rate()
437 (64 * sample_rate * txclk_df * sysclk_df)); in spdif_set_sample_rate()
452 spdif_priv->txrate[rate], sample_rate); in spdif_set_sample_rate()
553 u32 sample_rate = params_rate(params); in fsl_spdif_hw_params() local
557 ret = spdif_set_sample_rate(substream, sample_rate); in fsl_spdif_hw_params()
560 __func__, sample_rate); in fsl_spdif_hw_params()
/sound/soc/codecs/
Dtlv320aic23.c349 u32 sample_rate = params_rate(params); in tlv320aic23_hw_params() local
352 aic23->requested_dac = sample_rate_dac = sample_rate; in tlv320aic23_hw_params()
354 sample_rate_adc = sample_rate; in tlv320aic23_hw_params()
356 aic23->requested_adc = sample_rate_adc = sample_rate; in tlv320aic23_hw_params()
358 sample_rate_dac = sample_rate; in tlv320aic23_hw_params()
Dtas2552.c142 int sample_rate, pll_clk; in tas2552_hw_params() local
164 sample_rate = params_rate(params); in tas2552_hw_params()
166 if (sample_rate == 48000) in tas2552_hw_params()
168 else if (sample_rate == 44100) in tas2552_hw_params()
/sound/pci/asihpi/
Dhpifunc.c64 pMF->sample_rate = pF->sample_rate; in hpi_format_to_msg()
74 pF->sample_rate = pMF->sample_rate; in hpi_msg_to_format()
284 u32 sample_rate, u32 bit_rate, u32 attributes) in hpi_format_create() argument
327 if (sample_rate < 8000L) { in hpi_format_create()
329 sample_rate = 8000L; in hpi_format_create()
331 if (sample_rate > 200000L) { in hpi_format_create()
333 sample_rate = 200000L; in hpi_format_create()
335 fmt.sample_rate = sample_rate; in hpi_format_create()
345 fmt.bit_rate = channels * sample_rate * 2; in hpi_format_create()
349 fmt.bit_rate = channels * sample_rate * 4; in hpi_format_create()
[all …]

123