Home
last modified time | relevance | path

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

/sound/core/
Dpcm_misc.c32 unsigned char width; /* bit width */ member
44 .width = 8, .phys = 8, .le = -1, .signd = 1,
48 .width = 8, .phys = 8, .le = -1, .signd = 0,
52 .width = 16, .phys = 16, .le = 1, .signd = 1,
56 .width = 16, .phys = 16, .le = 0, .signd = 1,
60 .width = 16, .phys = 16, .le = 1, .signd = 0,
64 .width = 16, .phys = 16, .le = 0, .signd = 0,
68 .width = 24, .phys = 32, .le = 1, .signd = 1,
72 .width = 24, .phys = 32, .le = 0, .signd = 1,
76 .width = 24, .phys = 32, .le = 1, .signd = 0,
[all …]
Dpcm_lib.c1423 int width = l & 0xffff; in snd_pcm_hw_rule_msbits() local
1430 if ((snd_interval_value(i) == width) || in snd_pcm_hw_rule_msbits()
1431 (width == 0 && snd_interval_value(i) > msbits)) in snd_pcm_hw_rule_msbits()
1453 unsigned int width, in snd_pcm_hw_constraint_msbits() argument
1456 unsigned long l = (msbits << 16) | width; in snd_pcm_hw_constraint_msbits()
1789 int width; in snd_pcm_lib_ioctl_channel_info() local
1794 width = snd_pcm_format_physical_width(runtime->format); in snd_pcm_lib_ioctl_channel_info()
1795 if (width < 0) in snd_pcm_lib_ioctl_channel_info()
1796 return width; in snd_pcm_lib_ioctl_channel_info()
1801 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()
349 unsigned int width = snd_pcm_format_width(format); in snd_pcm_plug_slave_format() local
360 if (w >= width) in snd_pcm_plug_slave_format()
361 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()
Dpcm_oss.c1701 unsigned long width; in snd_pcm_oss_sync() local
1717 width = snd_pcm_format_physical_width(format); in snd_pcm_oss_sync()
1722 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; in snd_pcm_oss_sync()
1736 size * 8 / width); in snd_pcm_oss_sync()
/sound/soc/codecs/
Dsi476x.c162 int rate, width, err; in si476x_codec_hw_params() local
172 width = SI476X_PCM_FORMAT_S8; in si476x_codec_hw_params()
175 width = SI476X_PCM_FORMAT_S16_LE; in si476x_codec_hw_params()
178 width = SI476X_PCM_FORMAT_S20_3LE; in si476x_codec_hw_params()
181 width = SI476X_PCM_FORMAT_S24_LE; in si476x_codec_hw_params()
198 (width << SI476X_DIGITAL_IO_SLOT_SIZE_SHIFT) | in si476x_codec_hw_params()
199 (width << SI476X_DIGITAL_IO_SAMPLE_SIZE_SHIFT)); in si476x_codec_hw_params()
Dwl1273.c44 int rate, int width) in snd_wl1273_fm_set_i2s_mode() argument
51 dev_dbg(dev, "width: %d\n", width); in snd_wl1273_fm_set_i2s_mode()
88 switch (width) { in snd_wl1273_fm_set_i2s_mode()
117 dev_err(dev, "Data width: %d not supported\n", width); in snd_wl1273_fm_set_i2s_mode()
341 unsigned int rate, width, r; in wl1273_hw_params() local
350 width = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS)->min; in wl1273_hw_params()
384 r = snd_wl1273_fm_set_i2s_mode(core, rate, width); in wl1273_hw_params()
Dak4613.c86 unsigned int width; member
277 unsigned int width = params_width(params); in ak4613_dai_hw_params() local
317 if (fmts->width != width) in ak4613_dai_hw_params()
320 if (fmts->width < width) in ak4613_dai_hw_params()
Dtlv320aic3x.c1042 int width = aic3x->slot_width; in aic3x_hw_params() local
1044 if (!width) in aic3x_hw_params()
1045 width = params_width(params); in aic3x_hw_params()
1049 switch (width) { in aic3x_hw_params()
1191 int width = aic3x->slot_width; in aic3x_prepare() local
1193 if (!width) in aic3x_prepare()
1194 width = substream->runtime->sample_bits; in aic3x_prepare()
1198 delay += (aic3x->tdm_delay*width + 1); in aic3x_prepare()
1200 delay += aic3x->tdm_delay*width; in aic3x_prepare()
Dadau1977.c500 unsigned int rx_mask, int slots, int width) in adau1977_set_tdm_slot() argument
534 switch (width) { in adau1977_set_tdm_slot()
598 adau1977->slot_width = width; in adau1977_set_tdm_slot()
601 adau1977->max_master_fs = min(192000, 24576000 / width / slots); in adau1977_set_tdm_slot()
Dssm4567.c235 unsigned int rx_mask, int slots, int width) in ssm4567_set_tdm_slot() argument
252 switch (width) { in ssm4567_set_tdm_slot()
Dssm2518.c525 unsigned int rx_mask, int slots, int width) in ssm2518_set_tdm_slot() argument
560 switch (width) { in ssm2518_set_tdm_slot()
Dad193x.c147 unsigned int rx_mask, int slots, int width) in ad193x_set_tdm_slot() argument
/sound/soc/pxa/
Dmagician.c93 unsigned int acps, acds, width; in magician_playback_hw_params() local
97 width = snd_pcm_format_physical_width(params_format(params)); in magician_playback_hw_params()
107 switch (width) { in magician_playback_hw_params()
119 switch (width) { in magician_playback_hw_params()
131 switch (width) { in magician_playback_hw_params()
143 switch (width) { in magician_playback_hw_params()
155 switch (width) { in magician_playback_hw_params()
168 switch (width) { in magician_playback_hw_params()
194 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 1, 0, 1, width); in magician_playback_hw_params()
Dpxa-ssp.c550 int width = snd_pcm_format_physical_width(params_format(params)); in pxa_ssp_hw_params() local
561 ((chn == 2) && (ttsa != 1)) || (width == 32), in pxa_ssp_hw_params()
591 if ((pxa_ssp_get_scr(ssp) == 4) && (width == 16)) { in pxa_ssp_hw_params()
603 sspsp |= SSPSP_SFRMWDTH(width * 2); in pxa_ssp_hw_params()
604 sspsp |= SSPSP_SFRMDLY(width * 4); in pxa_ssp_hw_params()
615 sspsp |= SSPSP_SFRMWDTH(width + 1); in pxa_ssp_hw_params()
616 sspsp |= SSPSP_SFRMDLY((width + 1) * 2); in pxa_ssp_hw_params()
Dzylonite.c91 int width = snd_pcm_format_physical_width(params_format(params)); in zylonite_voice_hw_params() local
114 pll_out = rate * (width + 1) * 8; in zylonite_voice_hw_params()
/sound/soc/fsl/
Dfsl_asrc.c450 int width = snd_pcm_format_width(params_format(params)); in fsl_asrc_dai_hw_params() local
466 if (width == 16) in fsl_asrc_dai_hw_params()
467 width = ASRC_WIDTH_16_BIT; in fsl_asrc_dai_hw_params()
469 width = ASRC_WIDTH_24_BIT; in fsl_asrc_dai_hw_params()
482 config.input_word_width = width; in fsl_asrc_dai_hw_params()
488 config.output_word_width = width; in fsl_asrc_dai_hw_params()
Dfsl-asoc-card.c458 u32 width; in fsl_asoc_card_probe() local
638 ret = of_property_read_u32(asrc_np, "fsl,asrc-width", &width); in fsl_asoc_card_probe()
645 if (width == 24) in fsl_asoc_card_probe()
Dfsl_esai.c517 u32 width = snd_pcm_format_width(params_format(params)); in fsl_esai_hw_params() local
520 u32 slot_width = width; in fsl_esai_hw_params()
544 val = ESAI_xFCR_xWA(width) | ESAI_xFCR_xFWM(esai_priv->fifo_depth) | in fsl_esai_hw_params()
550 val = ESAI_xCR_xSWS(slot_width, width) | (tx ? ESAI_xCR_PADC : 0); in fsl_esai_hw_params()
/sound/soc/blackfin/
Dbf5xx-i2s.c219 unsigned int rx_mask, int slots, int width) in bf5xx_i2s_set_tdm_slot() argument
227 if (width != 32) in bf5xx_i2s_set_tdm_slot()
/sound/pci/asihpi/
Dasihpi.c459 int width; in snd_card_asihpi_pcm_hw_params() local
502 width = snd_pcm_format_width(params_format(params)); in snd_card_asihpi_pcm_hw_params()
503 bytes_per_sec *= width; in snd_card_asihpi_pcm_hw_params()
505 if (width < 0 || bytes_per_sec == 0) in snd_card_asihpi_pcm_hw_params()