Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 34) sorted by relevance

12

/sound/core/
Dpcm_misc.c35 unsigned char width; /* bit width */ member
47 .width = 8, .phys = 8, .le = -1, .signd = 1,
51 .width = 8, .phys = 8, .le = -1, .signd = 0,
55 .width = 16, .phys = 16, .le = 1, .signd = 1,
59 .width = 16, .phys = 16, .le = 0, .signd = 1,
63 .width = 16, .phys = 16, .le = 1, .signd = 0,
67 .width = 16, .phys = 16, .le = 0, .signd = 0,
71 .width = 24, .phys = 32, .le = 1, .signd = 1,
75 .width = 24, .phys = 32, .le = 0, .signd = 1,
79 .width = 24, .phys = 32, .le = 1, .signd = 0,
[all …]
Dpcm_lib.c1374 int width = l & 0xffff; in snd_pcm_hw_rule_msbits() local
1382 if ((snd_interval_value(i) == width) || in snd_pcm_hw_rule_msbits()
1383 (width == 0 && snd_interval_value(i) > msbits)) in snd_pcm_hw_rule_msbits()
1405 unsigned int width, in snd_pcm_hw_constraint_msbits() argument
1408 unsigned long l = (msbits << 16) | width; in snd_pcm_hw_constraint_msbits()
1694 int width; in snd_pcm_lib_ioctl_channel_info() local
1699 width = snd_pcm_format_physical_width(runtime->format); in snd_pcm_lib_ioctl_channel_info()
1700 if (width < 0) in snd_pcm_lib_ioctl_channel_info()
1701 return width; in snd_pcm_lib_ioctl_channel_info()
1706 info->first = info->channel * width; in snd_pcm_lib_ioctl_channel_info()
[all …]
/sound/core/oss/
Dpcm_plugin.c52 ssize_t width; in snd_pcm_plugin_alloc() local
62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) in snd_pcm_plugin_alloc()
63 return width; in snd_pcm_plugin_alloc()
64 size = frames * format->channels * width; in snd_pcm_plugin_alloc()
84 c->area.first = channel * width; in snd_pcm_plugin_alloc()
85 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
97 c->area.step = width; in snd_pcm_plugin_alloc()
322 unsigned int width = snd_pcm_format_width(format); in snd_pcm_plug_slave_format() local
333 if (w >= width) in snd_pcm_plug_slave_format()
334 badness = w - width; in snd_pcm_plug_slave_format()
[all …]
Dcopy.c68 int width; in snd_pcm_plugin_build_copy() local
81 width = snd_pcm_format_physical_width(src_format->format); in snd_pcm_plugin_build_copy()
82 if (snd_BUG_ON(width <= 0)) in snd_pcm_plugin_build_copy()
/sound/soc/codecs/
Dsi476x.c153 int rate, width, err; in si476x_codec_hw_params() local
163 width = SI476X_PCM_FORMAT_S8; in si476x_codec_hw_params()
166 width = SI476X_PCM_FORMAT_S16_LE; in si476x_codec_hw_params()
169 width = SI476X_PCM_FORMAT_S20_3LE; in si476x_codec_hw_params()
172 width = SI476X_PCM_FORMAT_S24_LE; in si476x_codec_hw_params()
189 (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | in si476x_codec_hw_params()
190 (width << SI476X_DIGITAL_IO_SAMPLE_SIZE_SHIFT)); in si476x_codec_hw_params()
Dwl1273.c30 int rate, int width) in snd_wl1273_fm_set_i2s_mode() argument
37 dev_dbg(dev, "width: %d\n", width); in snd_wl1273_fm_set_i2s_mode()
74 switch (width) { in snd_wl1273_fm_set_i2s_mode()
103 dev_err(dev, "Data width: %d not supported\n", width); in snd_wl1273_fm_set_i2s_mode()
326 unsigned int rate, width, r; in wl1273_hw_params() local
335 width = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS)->min; in wl1273_hw_params()
369 r = snd_wl1273_fm_set_i2s_mode(core, rate, width); in wl1273_hw_params()
Dak4613.c82 unsigned int width; member
346 unsigned int fmt, unsigned int width) in ak4613_dai_fmt_matching() argument
355 if (fmts->width != width) in ak4613_dai_fmt_matching()
369 unsigned int width = params_width(params); in ak4613_dai_hw_params() local
408 if (ak4613_dai_fmt_matching(priv->iface, is_play, fmt, width)) in ak4613_dai_hw_params()
414 fmt, width)) in ak4613_dai_hw_params()
Dpcm186x.c269 unsigned int width = params_width(params); in pcm186x_hw_params() local
277 __func__, rate, format, width, channels); in pcm186x_hw_params()
279 switch (width) { in pcm186x_hw_params()
313 div_lrck = width * channels; in pcm186x_hw_params()
Dtlv320aic3x.c1053 int width = aic3x->slot_width; in aic3x_hw_params() local
1055 if (!width) in aic3x_hw_params()
1056 width = params_width(params); in aic3x_hw_params()
1060 switch (width) { in aic3x_hw_params()
1202 int width = aic3x->slot_width; in aic3x_prepare() local
1204 if (!width) in aic3x_prepare()
1205 width = substream->runtime->sample_bits; in aic3x_prepare()
1209 delay += (aic3x->tdm_delay*width + 1); in aic3x_prepare()
1211 delay += aic3x->tdm_delay*width; in aic3x_prepare()
Dtas6424.c116 unsigned int width = params_width(params); in tas6424_hw_params() local
119 dev_dbg(component->dev, "%s() rate=%u width=%u\n", __func__, rate, width); in tas6424_hw_params()
136 switch (width) { in tas6424_hw_params()
143 dev_err(component->dev, "unsupported sample width: %u\n", width); in tas6424_hw_params()
Dtscs42xx.c816 unsigned int width; in setup_sample_format() local
821 width = RV_AIC1_WL_16; in setup_sample_format()
824 width = RV_AIC1_WL_20; in setup_sample_format()
827 width = RV_AIC1_WL_24; in setup_sample_format()
830 width = RV_AIC1_WL_32; in setup_sample_format()
838 R_AIC1, RM_AIC1_WL, width); in setup_sample_format()
Dadau1977.c497 unsigned int rx_mask, int slots, int width) in adau1977_set_tdm_slot() argument
531 switch (width) { in adau1977_set_tdm_slot()
595 adau1977->slot_width = width; in adau1977_set_tdm_slot()
598 adau1977->max_master_fs = min(192000, 24576000 / width / slots); in adau1977_set_tdm_slot()
Dssm4567.c234 unsigned int rx_mask, int slots, int width) in ssm4567_set_tdm_slot() argument
251 switch (width) { in ssm4567_set_tdm_slot()
/sound/soc/sunxi/
Dsun4i-i2s.c360 static s8 sun4i_i2s_get_sr(const struct sun4i_i2s *i2s, int width) in sun4i_i2s_get_sr() argument
362 if (width < 16 || width > 24) in sun4i_i2s_get_sr()
365 if (width % 4) in sun4i_i2s_get_sr()
368 return (width - 16) / 4; in sun4i_i2s_get_sr()
371 static s8 sun4i_i2s_get_wss(const struct sun4i_i2s *i2s, int width) in sun4i_i2s_get_wss() argument
373 if (width < 16 || width > 32) in sun4i_i2s_get_wss()
376 if (width % 4) in sun4i_i2s_get_wss()
379 return (width - 16) / 4; in sun4i_i2s_get_wss()
382 static s8 sun8i_i2s_get_sr_wss(const struct sun4i_i2s *i2s, int width) in sun8i_i2s_get_sr_wss() argument
384 if (width % 4) in sun8i_i2s_get_sr_wss()
[all …]
/sound/soc/pxa/
Dpxa-ssp.c557 int width = snd_pcm_format_physical_width(params_format(params)); in pxa_ssp_hw_params() local
561 int bclk = rate * chn * (width / 8); in pxa_ssp_hw_params()
571 ((chn == 2) && (ttsa != 1)) || (width == 32), in pxa_ssp_hw_params()
625 if (width == 32) in pxa_ssp_hw_params()
651 if (((priv->sysclk / bclk) == 64) && (width == 16)) { in pxa_ssp_hw_params()
663 sspsp |= SSPSP_SFRMWDTH(width * 2); in pxa_ssp_hw_params()
664 sspsp |= SSPSP_SFRMDLY(width * 4); in pxa_ssp_hw_params()
675 sspsp |= SSPSP_SFRMWDTH(width + 1); in pxa_ssp_hw_params()
676 sspsp |= SSPSP_SFRMDLY((width + 1) * 2); in pxa_ssp_hw_params()
Dmagician.c88 unsigned int width; in magician_playback_hw_params() local
103 width = snd_pcm_format_physical_width(params_format(params)); in magician_playback_hw_params()
104 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 0, 1, width); in magician_playback_hw_params()
/sound/soc/bcm/
Dbcm2835-i2s.c251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument
256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot()
271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot()
279 dev->slot_width = width; in bcm2835_i2s_set_dai_tdm_slot()
280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot()
320 unsigned int mask, unsigned int width, in bcm2835_i2s_calc_channel_pos() argument
324 * width + bit_offset; in bcm2835_i2s_calc_channel_pos()
326 * width + bit_offset; in bcm2835_i2s_calc_channel_pos()
/sound/soc/sh/rcar/
Dssi.c217 int width = rsnd_rdai_width_get(rdai); in rsnd_rdai_width_to_swl() local
219 switch (width) { in rsnd_rdai_width_to_swl()
225 dev_err(dev, "unsupported slot width value: %d\n", width); in rsnd_rdai_width_to_swl()
238 int width = rsnd_rdai_width_get(rdai); in rsnd_ssi_clk_query() local
251 main_rate = width * param1 * param2 * ssi_clk_mul_table[j]; in rsnd_ssi_clk_query()
373 int width; in rsnd_ssi_config_init() local
417 width = snd_pcm_format_width(runtime->format); in rsnd_ssi_config_init()
425 width = 32; in rsnd_ssi_config_init()
428 switch (width) { in rsnd_ssi_config_init()
/sound/soc/meson/
Daxg-toddr.c59 unsigned int type, width; in axg_toddr_dai_hw_params() local
75 width = params_width(params); in axg_toddr_dai_hw_params()
83 CTRL0_TODDR_LSB_POS(TODDR_MSB_POS - (width - 1))); in axg_toddr_dai_hw_params()
Daxg-spdifin.c147 unsigned int width) in axg_spdifin_write_mode_param() argument
155 shift = width * (num_per_reg - 1 - rem); in axg_spdifin_write_mode_param()
157 regmap_update_bits(map, reg, GENMASK(width - 1, 0) << shift, in axg_spdifin_write_mode_param()
Daxg-tdm-interface.c173 unsigned int width = params_width(params); in axg_tdm_iface_set_stream() local
184 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
191 ts->width = params_width(params); in axg_tdm_iface_set_stream()
Daxg-tdm.h57 unsigned int width; member
/sound/soc/fsl/
Dfsl_asrc.c500 int width = params_width(params); in fsl_asrc_dai_hw_params() local
516 if (width == 16) in fsl_asrc_dai_hw_params()
517 width = ASRC_WIDTH_16_BIT; in fsl_asrc_dai_hw_params()
519 width = ASRC_WIDTH_24_BIT; in fsl_asrc_dai_hw_params()
532 config.input_word_width = width; in fsl_asrc_dai_hw_params()
538 config.output_word_width = width; in fsl_asrc_dai_hw_params()
Dfsl-asoc-card.c490 u32 width; in fsl_asoc_card_probe() local
683 ret = of_property_read_u32(asrc_np, "fsl,asrc-width", &width); in fsl_asoc_card_probe()
690 if (width == 24) in fsl_asoc_card_probe()
Dfsl_esai.c510 u32 width = params_width(params); in fsl_esai_hw_params() local
513 u32 slot_width = width; in fsl_esai_hw_params()
528 val = ESAI_xCR_xSWS(slot_width, width); in fsl_esai_hw_params()
545 val = ESAI_xFCR_xWA(width) | ESAI_xFCR_xFWM(esai_priv->fifo_depth) | in fsl_esai_hw_params()

12