Home
last modified time | relevance | path

Searched refs:bitwidth (Results 1 – 22 of 22) sorted by relevance

/sound/soc/samsung/
Dsnow.c35 int bfs, psr, rfs, bitwidth; in snow_card_hw_params() local
40 bitwidth = snd_pcm_format_width(params_format(params)); in snow_card_hw_params()
41 if (bitwidth < 0) { in snow_card_hw_params()
42 dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); in snow_card_hw_params()
43 return bitwidth; in snow_card_hw_params()
46 if (bitwidth != 16 && bitwidth != 24) { in snow_card_hw_params()
47 dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); in snow_card_hw_params()
51 bfs = 2 * bitwidth; in snow_card_hw_params()
Dtm2_wm5110.c214 int bitwidth, ret; in tm2_hdmi_hw_params() local
216 bitwidth = snd_pcm_format_width(params_format(params)); in tm2_hdmi_hw_params()
217 if (bitwidth < 0) { in tm2_hdmi_hw_params()
218 dev_err(rtd->card->dev, "Invalid bit-width: %d\n", bitwidth); in tm2_hdmi_hw_params()
219 return bitwidth; in tm2_hdmi_hw_params()
222 switch (bitwidth) { in tm2_hdmi_hw_params()
230 dev_err(rtd->card->dev, "Unsupported bit-width: %d\n", bitwidth); in tm2_hdmi_hw_params()
/sound/soc/qcom/
Dstorm.c27 int bitwidth, ret; in storm_ops_hw_params() local
29 bitwidth = snd_pcm_format_width(format); in storm_ops_hw_params()
30 if (bitwidth < 0) { in storm_ops_hw_params()
31 dev_err(card->dev, "invalid bit width given: %d\n", bitwidth); in storm_ops_hw_params()
32 return bitwidth; in storm_ops_hw_params()
40 sysclk_freq = rate * bitwidth * 2 * STORM_SYSCLK_MULT; in storm_ops_hw_params()
Dlpass-hdmi.c27 int bitwidth; in lpass_hdmi_daiops_hw_params() local
37 bitwidth = snd_pcm_format_width(format); in lpass_hdmi_daiops_hw_params()
38 if (bitwidth < 0) { in lpass_hdmi_daiops_hw_params()
40 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
41 return bitwidth; in lpass_hdmi_daiops_hw_params()
44 switch (bitwidth) { in lpass_hdmi_daiops_hw_params()
53 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
69 __func__, bitwidth); in lpass_hdmi_daiops_hw_params()
Dlpass-cpu.c57 i2sctl->bitwidth = devm_regmap_field_alloc(dev, map, v->bitwidth); in lpass_cpu_init_i2sctl_bitfields()
63 IS_ERR(i2sctl->bitwidth)) in lpass_cpu_init_i2sctl_bitfields()
145 int bitwidth, ret; in lpass_cpu_daiops_hw_params() local
147 bitwidth = snd_pcm_format_width(format); in lpass_cpu_daiops_hw_params()
148 if (bitwidth < 0) { in lpass_cpu_daiops_hw_params()
149 dev_err(dai->dev, "invalid bit width given: %d\n", bitwidth); in lpass_cpu_daiops_hw_params()
150 return bitwidth; in lpass_cpu_daiops_hw_params()
167 switch (bitwidth) { in lpass_cpu_daiops_hw_params()
178 dev_err(dai->dev, "invalid bitwidth given: %d\n", bitwidth); in lpass_cpu_daiops_hw_params()
182 ret = regmap_fields_write(i2sctl->bitwidth, id, regval); in lpass_cpu_daiops_hw_params()
[all …]
Dlpass-platform.c430 int bitwidth; in lpass_platform_pcmops_hw_params() local
437 bitwidth = snd_pcm_format_width(format); in lpass_platform_pcmops_hw_params()
438 if (bitwidth < 0) { in lpass_platform_pcmops_hw_params()
440 bitwidth); in lpass_platform_pcmops_hw_params()
441 return bitwidth; in lpass_platform_pcmops_hw_params()
499 switch (bitwidth) { in lpass_platform_pcmops_hw_params()
517 bitwidth, channels); in lpass_platform_pcmops_hw_params()
549 bitwidth, channels); in lpass_platform_pcmops_hw_params()
555 bitwidth, channels); in lpass_platform_pcmops_hw_params()
Dlpass.h71 struct regmap_field *bitwidth; member
228 struct reg_field bitwidth; member
Dlpass-ipq806x.c134 .bitwidth = REG_FIELD_ID(0x0010, 0, 1, 5, 0x4),
Dlpass-apq8016.c253 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 4, 0x1000),
Dlpass-sc7180.c193 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 3, 0x1000),
Dlpass-sc7280.c283 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 3, 0x1000),
/sound/soc/mediatek/mt8186/
Dmt8186-mt6366-rt1019-rt5682s.c119 int bitwidth; in mt8186_rt5682s_i2s_hw_params() local
122 bitwidth = snd_pcm_format_width(params_format(params)); in mt8186_rt5682s_i2s_hw_params()
123 if (bitwidth < 0) { in mt8186_rt5682s_i2s_hw_params()
124 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8186_rt5682s_i2s_hw_params()
125 return bitwidth; in mt8186_rt5682s_i2s_hw_params()
128 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8186_rt5682s_i2s_hw_params()
/sound/soc/mediatek/mt8192/
Dmt8192-mt6359-rt1015-rt5682.c103 int bitwidth; in mt8192_rt5682x_i2s_hw_params() local
106 bitwidth = snd_pcm_format_width(params_format(params)); in mt8192_rt5682x_i2s_hw_params()
107 if (bitwidth < 0) { in mt8192_rt5682x_i2s_hw_params()
108 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8192_rt5682x_i2s_hw_params()
109 return bitwidth; in mt8192_rt5682x_i2s_hw_params()
112 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8192_rt5682x_i2s_hw_params()
/sound/soc/mediatek/mt8195/
Dmt8195-mt6359.c526 int bitwidth; in mt8195_rt5682_etdm_hw_params() local
529 bitwidth = snd_pcm_format_width(params_format(params)); in mt8195_rt5682_etdm_hw_params()
530 if (bitwidth < 0) { in mt8195_rt5682_etdm_hw_params()
531 dev_err(card->dev, "invalid bit width: %d\n", bitwidth); in mt8195_rt5682_etdm_hw_params()
532 return bitwidth; in mt8195_rt5682_etdm_hw_params()
535 ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x00, 0x0, 0x2, bitwidth); in mt8195_rt5682_etdm_hw_params()
Dmt8195-dai-etdm.c230 static int get_etdm_wlen(unsigned int bitwidth) in get_etdm_wlen() argument
232 return bitwidth <= 16 ? 16 : 32; in get_etdm_wlen()
/sound/soc/codecs/
Dtas2780.c151 static int tas2780_set_bitwidth(struct tas2780_priv *tas2780, int bitwidth) in tas2780_set_bitwidth() argument
159 switch (bitwidth) { in tas2780_set_bitwidth()
Dtas2770.c194 static int tas2770_set_bitwidth(struct tas2770_priv *tas2770, int bitwidth) in tas2770_set_bitwidth() argument
199 switch (bitwidth) { in tas2770_set_bitwidth()
Dtas2764.c251 static int tas2764_set_bitwidth(struct tas2764_priv *tas2764, int bitwidth) in tas2764_set_bitwidth() argument
258 switch (bitwidth) { in tas2764_set_bitwidth()
Dtas2562.c227 static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth) in tas2562_set_bitwidth() argument
233 switch (bitwidth) { in tas2562_set_bitwidth()
Dcs43130.h470 unsigned int bitwidth; member
Dcs43130.c472 unsigned int bitwidth) in cs43130_get_bitwidth_table() argument
477 if (cs43130_bitwidth_table[i].bitwidth == bitwidth) in cs43130_get_bitwidth_table()
/sound/soc/qcom/qdsp6/
Dq6afe.c536 u16 bitwidth; member
1285 port->scfg->bitwidth = cfg->bit_width; in q6afe_tdm_port_prepare()