/linux-master/sound/soc/intel/boards/ |
H A D | sof_wm8804.c | 57 int samplerate; local 64 samplerate = params_rate(params); 65 if (samplerate == ctx->sample_rate) 70 if (samplerate <= 96000) { 71 mclk_freq = samplerate * 256; 74 mclk_freq = samplerate * 128; 78 switch (samplerate) { 102 "unsupported samplerate %d\n", samplerate); 106 if (samplerate [all...] |
/linux-master/drivers/staging/vc04_services/bcm2835-audio/ |
H A D | vc_vchi_audioserv_defs.h | 36 u32 samplerate; member in struct:vc_audio_config
|
H A D | bcm2835.h | 100 unsigned int channels, unsigned int samplerate,
|
H A D | bcm2835-vchiq.c | 270 unsigned int channels, unsigned int samplerate, 276 .config.samplerate = samplerate, 269 bcm2835_audio_set_params(struct bcm2835_alsa_stream *alsa_stream, unsigned int channels, unsigned int samplerate, unsigned int bps) argument
|
/linux-master/sound/soc/codecs/ |
H A D | sigmadsp.h | 61 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate);
|
H A D | sigmadsp.c | 614 unsigned int samplerate) 618 if (samplerate == 0) 622 samplerate_index = sigmadsp_rate_to_index(sigmadsp, samplerate); 722 * sigmadsp_setup() - Setup the DSP for the specified samplerate 724 * @samplerate: The samplerate the DSP should be configured for 727 * loaded) and enables the controls for the specified samplerate. Any control 732 int sigmadsp_setup(struct sigmadsp *sigmadsp, unsigned int samplerate) argument 739 if (sigmadsp->current_samplerate == samplerate) 742 samplerate_mask = sigmadsp_get_samplerate_mask(sigmadsp, samplerate); 613 sigmadsp_get_samplerate_mask(struct sigmadsp *sigmadsp, unsigned int samplerate) argument [all...] |
H A D | tas2562.c | 66 static int tas2562_set_samplerate(struct tas2562_data *tas2562, int samplerate) argument 71 switch (samplerate) { 130 __func__, samplerate);
|
H A D | tas2780.c | 240 struct tas2780_priv *tas2780, int samplerate) 246 switch (samplerate) { 239 tas2780_set_samplerate( struct tas2780_priv *tas2780, int samplerate) argument
|
H A D | tas2770.c | 245 static int tas2770_set_samplerate(struct tas2770_priv *tas2770, int samplerate) argument 251 switch (samplerate) {
|
H A D | tas2764.c | 314 static int tas2764_set_samplerate(struct tas2764_priv *tas2764, int samplerate) argument 320 switch (samplerate) {
|
H A D | cpcap.c | 1045 int samplerate) 1070 switch (samplerate) { 1099 dev_err(component->dev, "unsupported samplerate %d", samplerate); 1044 cpcap_set_samprate(struct cpcap_audio *cpcap, enum cpcap_dai dai, int samplerate) argument
|
H A D | tscs42xx.c | 34 int samplerate; member in struct:tscs42xx 196 freq_out = sample_rate_to_pll_freq_out(tscs42xx->samplerate); 933 tscs42xx->samplerate = rate;
|
/linux-master/sound/soc/rockchip/ |
H A D | rockchip_pdm.c | 145 static unsigned int samplerate_to_bit(unsigned int samplerate) argument 147 switch (samplerate) { 201 unsigned int clk_rate, clk_div, samplerate; local 210 samplerate = params_rate(params); 211 clk_rate = get_pdm_clk(pdm, samplerate, &clk_src, &clk_out); 252 val = samplerate_to_bit(samplerate); 256 val = get_pdm_ds_ratio(samplerate);
|
/linux-master/sound/soc/starfive/ |
H A D | jh7110_tdm.c | 124 u32 samplerate; member in struct:jh7110_tdm_dev 200 syncdiv = tdm->pcmclk / tdm->samplerate - 1; 349 tdm->samplerate = params_rate(params); 350 tdm->pcmclk = params_channels(params) * tdm->samplerate * data_width;
|
/linux-master/sound/soc/sunxi/ |
H A D | sun50i-dmic.c | 58 unsigned int samplerate; member in struct:dmic_rate 157 if (dmic_rate_s[i].samplerate == rate) {
|
/linux-master/sound/pci/emu10k1/ |
H A D | emuproc.c | 25 static const int samplerate[16] = { 44100, 1, 48000, 32000, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }; local 44 snd_iprintf(buffer, "Sample Rate : %iHz\n", samplerate[(status & SPCS_SAMPLERATEMASK) >> 24]); 215 static const int samplerate[8] = { 44100, 48000, 96000, 192000, 4, 5, 6, 7 }; local 221 if (tmp & 0x8) snd_iprintf(buffer, "Channel %d: Rate=%d\n", n, samplerate[tmp & 0x7]);
|
/linux-master/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi.c | 2306 unsigned int samplerate) 2318 rational_best_approximation(hsm_clock, samplerate, 2334 static void vc4_hdmi_set_n_cts(struct vc4_hdmi *vc4_hdmi, unsigned int samplerate) argument 2343 n = 128 * samplerate / 1000; 2345 do_div(tmp, 128 * samplerate); 2482 static int sample_rate_to_mai_fmt(int samplerate) argument 2484 switch (samplerate) { 2305 vc4_hdmi_audio_set_mai_clock(struct vc4_hdmi *vc4_hdmi, unsigned int samplerate) argument
|
/linux-master/sound/pci/rme9652/ |
H A D | hdspm.c | 976 int samplerate; /* 0=44.1, 1=48, 2= freq from app */ member in struct:hdspm_tco 1035 int last_external_sample_rate; /* samplerate mystic ... */ 4152 switch (hdspm->tco->samplerate) { 4205 /* TODO freq from app could be supported here, see tco->samplerate */ 4216 ucontrol->value.enumerated.item[0] = hdspm->tco->samplerate; 4226 if (hdspm->tco->samplerate != ucontrol->value.enumerated.item[0]) { 4227 hdspm->tco->samplerate = ucontrol->value.enumerated.item[0];
|