Home
last modified time | relevance | path

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

123

/sound/core/
A Dpcm_misc.c35 unsigned char width; /* bit width */ member
52 .width = 8, .phys = 8, .le = -1, .signd = 1,
56 .width = 8, .phys = 8, .le = -1, .signd = 0,
355 val = pcm_formats[(INT)format].width; in snd_pcm_format_width()
426 int width; in snd_pcm_format_set_silence() local
435 if (!width) in snd_pcm_format_set_silence()
440 unsigned int bytes = samples * width / 8; in snd_pcm_format_set_silence()
445 width /= 8; in snd_pcm_format_set_silence()
449 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
450 dst += width; in snd_pcm_format_set_silence()
[all …]
/sound/core/oss/
A Dpcm_plugin.c52 ssize_t width; in snd_pcm_plugin_alloc() local
63 if (width < 0) in snd_pcm_plugin_alloc()
64 return width; in snd_pcm_plugin_alloc()
580 if (width < 0) in snd_pcm_plug_client_channels_buf()
581 return width; in snd_pcm_plug_client_channels_buf()
678 int width; in snd_pcm_area_silence() local
686 if (dst_area->step == (unsigned int) width && width >= 8) in snd_pcm_area_silence()
709 width /= 8; in snd_pcm_area_silence()
724 int width; in snd_pcm_area_copy() local
736 dst_area->step == (unsigned int) width && width >= 8) { in snd_pcm_area_copy()
[all …]
A 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/
A 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()
A Dmax98396.c455 int in, out, width, bsel, max_sr; member
457 { .in = 2, .out = 4, .width = 16, .bsel = MAX98396_BSEL_32, .max_sr = 192000 },
458 { .in = 2, .out = 6, .width = 24, .bsel = MAX98396_BSEL_48, .max_sr = 192000 },
459 { .in = 2, .out = 8, .width = 32, .bsel = MAX98396_BSEL_64, .max_sr = 192000 },
460 { .in = 3, .out = 15, .width = 32, .bsel = MAX98396_BSEL_125, .max_sr = 192000 },
461 { .in = 4, .out = 8, .width = 16, .bsel = MAX98396_BSEL_64, .max_sr = 192000 },
462 { .in = 4, .out = 12, .width = 24, .bsel = MAX98396_BSEL_96, .max_sr = 192000 },
463 { .in = 4, .out = 16, .width = 32, .bsel = MAX98396_BSEL_128, .max_sr = 192000 },
464 { .in = 5, .out = 15, .width = 24, .bsel = MAX98396_BSEL_125, .max_sr = 192000 },
490 static int max98396_pcm_config_index(int in_slots, int out_slots, int width) in max98396_pcm_config_index() argument
[all …]
A Dframer-codec.c34 unsigned int rx_mask, int slots, int width) in framer_dai_set_tdm_slot() argument
38 switch (width) { in framer_dai_set_tdm_slot()
44 dev_err(dai->dev, "tdm slot width %d not supported\n", width); in framer_dai_set_tdm_slot()
76 int width; in framer_dai_hw_rule_channels_by_format() local
78 width = snd_pcm_format_physical_width(format); in framer_dai_hw_rule_channels_by_format()
79 if (width == 8 || width == 16 || width == 32 || width == 64) { in framer_dai_hw_rule_channels_by_format()
80 ch.max = nb_ts * 8 / width; in framer_dai_hw_rule_channels_by_format()
82 dev_err(dai->dev, "format physical width %d not supported\n", width); in framer_dai_hw_rule_channels_by_format()
A 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()
325 unsigned int rate, width, r; in wl1273_hw_params() local
334 width = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS)->min; in wl1273_hw_params()
368 r = snd_wl1273_fm_set_i2s_mode(core, rate, width); in wl1273_hw_params()
A Drt9120.c241 int width, fs; in rt9120_hw_params() local
243 switch (width = params_width(param)) { in rt9120_hw_params()
255 dev_err(dai->dev, "Unsupported data width [%d]\n", width); in rt9120_hw_params()
262 switch (width = params_physical_width(param)) { in rt9120_hw_params()
273 dev_err(dai->dev, "Unsupported slot width [%d]\n", width); in rt9120_hw_params()
280 fs = width * params_channels(param); in rt9120_hw_params()
A Dak4613.c215 unsigned int width; member
279 .width = _width, \
568 unsigned int width = params_width(params); in ak4613_dai_hw_params() local
624 if ((iface->fmt == fmt) && (iface->width == width)) { in ak4613_dai_hw_params()
A Dpcm186x.c268 unsigned int width = params_width(params); in pcm186x_hw_params() local
276 __func__, rate, format, width, channels); in pcm186x_hw_params()
278 switch (width) { in pcm186x_hw_params()
312 div_lrck = width * channels; in pcm186x_hw_params()
A Dtlv320aic3x.c1048 int width = aic3x->slot_width; in aic3x_hw_params() local
1050 if (!width) in aic3x_hw_params()
1051 width = params_width(params); in aic3x_hw_params()
1055 switch (width) { in aic3x_hw_params()
1197 int width = aic3x->slot_width; in aic3x_prepare() local
1199 if (!width) in aic3x_prepare()
1200 width = substream->runtime->sample_bits; in aic3x_prepare()
1204 delay += (aic3x->tdm_delay*width + 1); in aic3x_prepare()
1206 delay += aic3x->tdm_delay*width; in aic3x_prepare()
A Drt9123.c239 unsigned int fmtval, width, slot_width; in rt9123_dai_hw_params() local
270 switch (width = params_width(param)) { in rt9123_dai_hw_params()
287 dev_err(dev, "Unsupported width %d\n", width); in rt9123_dai_hw_params()
A Dtlv320adc3xxx.c1198 int i, width = 16; in adc3xxx_hw_params() local
1211 width = 16; in adc3xxx_hw_params()
1215 width = 20; in adc3xxx_hw_params()
1219 width = 24; in adc3xxx_hw_params()
1223 width = 32; in adc3xxx_hw_params()
1259 bdiv = (adc3xxx_divs[i].aosr * adc3xxx_divs[i].madc) / (2 * width); in adc3xxx_hw_params()
A Dtas6424.c115 unsigned int width = params_width(params); in tas6424_hw_params() local
118 dev_dbg(component->dev, "%s() rate=%u width=%u\n", __func__, rate, width); in tas6424_hw_params()
135 switch (width) { in tas6424_hw_params()
142 dev_err(component->dev, "unsupported sample width: %u\n", width); in tas6424_hw_params()
A Des8311.c509 unsigned int width = (unsigned int)par_width; in es8311_hw_params() local
542 mclk_freq = rate * width * 2; in es8311_hw_params()
606 if (div_lrclk % (2 * width) != 0) { in es8311_hw_params()
613 unsigned int div_bclk = div_lrclk / (2 * width); in es8311_hw_params()
/sound/soc/fsl/
A Dfsl_asrc_m2m.c56 u32 i, reg, size, t_size = 0, width; in asrc_read_last_fifo() local
61 width = snd_pcm_format_physical_width(pair->sample_format[OUT]); in asrc_read_last_fifo()
62 if (width == 32) in asrc_read_last_fifo()
64 else if (width == 16) in asrc_read_last_fifo()
104 int dir, int width) in asrc_dmaconfig() argument
114 switch (width) { in asrc_dmaconfig()
194 unsigned int width; in asrc_m2m_device_run() local
214 if (in_buf_len < width * pair->channels / 8 || in asrc_m2m_device_run()
216 in_buf_len % (width * pair->channels / 8)) { in asrc_m2m_device_run()
227 in_buf_len, IN, width); in asrc_m2m_device_run()
[all …]
A Dfsl_asrc_dma.c153 int ret, width; in fsl_asrc_dma_hw_params() local
271 width = snd_pcm_format_physical_width(asrc->asrc_format); in fsl_asrc_dma_hw_params()
272 if (width < 8 || width > 64) in fsl_asrc_dma_hw_params()
274 else if (width == 8) in fsl_asrc_dma_hw_params()
276 else if (width == 16) in fsl_asrc_dma_hw_params()
278 else if (width == 24) in fsl_asrc_dma_hw_params()
280 else if (width <= 32) in fsl_asrc_dma_hw_params()
A Dimx-card.c292 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate() local
299 if (width != plat_data->tdm_fs_mul[i].min) in akcodec_get_mclk_rate()
307 width = max(width, plat_data->fs_mul[i].wmin); in akcodec_get_mclk_rate()
308 width = min(width, plat_data->fs_mul[i].wmax); in akcodec_get_mclk_rate()
311 width *= link_data->one2one_ratio ? 1 : 2; in akcodec_get_mclk_rate()
313 return rate * width; in akcodec_get_mclk_rate()
551 u32 width; in imx_card_parse_of() local
687 ret = of_property_read_u32(args.np, "fsl,asrc-width", &width); in imx_card_parse_of()
694 if (width == 24) in imx_card_parse_of()
/sound/soc/bcm/
A 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/pxa/
A Dpxa-ssp.c539 int width = snd_pcm_format_physical_width(params_format(params)); in pxa_ssp_hw_params() local
543 int bclk = rate * chn * (width / 8); in pxa_ssp_hw_params()
553 ((chn == 2) && (ttsa != 1)) || (width == 32), in pxa_ssp_hw_params()
627 if (((priv->sysclk / bclk) == 64) && (width == 16)) { in pxa_ssp_hw_params()
639 sspsp |= SSPSP_SFRMWDTH(width * 2); in pxa_ssp_hw_params()
640 sspsp |= SSPSP_SFRMDLY(width * 4); in pxa_ssp_hw_params()
651 sspsp |= SSPSP_SFRMWDTH(width + 1); in pxa_ssp_hw_params()
652 sspsp |= SSPSP_SFRMDLY((width + 1) * 2); in pxa_ssp_hw_params()
/sound/soc/sunxi/
A Dsun4i-i2s.c197 int (*get_sr)(unsigned int width);
198 int (*get_wss)(unsigned int width);
409 static int sun4i_i2s_get_sr(unsigned int width) in sun4i_i2s_get_sr() argument
411 switch (width) { in sun4i_i2s_get_sr()
423 static int sun4i_i2s_get_wss(unsigned int width) in sun4i_i2s_get_wss() argument
425 switch (width) { in sun4i_i2s_get_wss()
441 switch (width) { in sun8i_i2s_get_sr_wss()
605 u32 width; in sun4i_i2s_hw_params() local
628 width = DMA_SLAVE_BUSWIDTH_2_BYTES; in sun4i_i2s_hw_params()
631 width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sun4i_i2s_hw_params()
[all …]
/sound/soc/renesas/rcar/
A 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()
377 int width; in rsnd_ssi_config_init() local
420 width = snd_pcm_format_width(runtime->format); in rsnd_ssi_config_init()
428 width = 32; in rsnd_ssi_config_init()
431 switch (width) { in rsnd_ssi_config_init()
/sound/soc/meson/
A Daxg-toddr.c58 unsigned int type, width; in axg_toddr_dai_hw_params() local
74 width = params_width(params); in axg_toddr_dai_hw_params()
82 FIELD_PREP(CTRL0_TODDR_LSB_POS, TODDR_MSB_POS - (width - 1))); in axg_toddr_dai_hw_params()
A Daxg-spdifin.c119 unsigned int width) in axg_spdifin_write_mode_param() argument
127 shift = width * (num_per_reg - 1 - rem); in axg_spdifin_write_mode_param()
129 regmap_update_bits(map, reg, GENMASK(width - 1, 0) << shift, in axg_spdifin_write_mode_param()
/sound/soc/sof/intel/
A Dhda-dai-ops.c250 unsigned int width; in dmic_calc_stream_format() local
255 width = params_physical_width(params); in dmic_calc_stream_format()
260 width = 32; in dmic_calc_stream_format()
263 bits = snd_hdac_stream_format_bits(format, SNDRV_PCM_SUBFORMAT_STD, width); in dmic_calc_stream_format()

Completed in 77 milliseconds

123