/openbmc/linux/sound/soc/sof/intel/ |
H A D | hda-dai-ops.c | 182 unsigned int format_val) in hda_setup_hext_stream() argument 184 snd_hdac_ext_stream_setup(hext_stream, format_val); in hda_setup_hext_stream() 210 unsigned int format_val; in hda_calc_stream_format() local 217 format_val = snd_hdac_calc_stream_format(params_rate(params), params_channels(params), in hda_calc_stream_format() 220 dev_dbg(sdev->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val, in hda_calc_stream_format() 223 return format_val; in hda_calc_stream_format() 240 unsigned int format_val; in generic_calc_stream_format() local 242 format_val = snd_hdac_calc_stream_format(params_rate(params), params_channels(params), in generic_calc_stream_format() 247 dev_dbg(sdev->dev, "format_val=%#x, rate=%d, ch=%d, format=%d\n", format_val, in generic_calc_stream_format() 250 return format_val; in generic_calc_stream_format() [all …]
|
H A D | hda-probes.c | 89 hstream->format_val = rate | bits | (params->codec.ch_out - 1); in hda_probes_compr_set_params()
|
H A D | hda-loader.c | 72 hstream->format_val = format; in hda_cl_stream_prepare() 276 hstream->format_val = 0; in hda_cl_cleanup()
|
H A D | hda-dai.c | 194 unsigned int format_val = ops->calc_stream_format(sdev, substream, params); in hda_link_dma_hw_params() local 196 ops->setup_hext_stream(sdev, hext_stream, format_val); in hda_link_dma_hw_params()
|
H A D | hda-pcm.c | 117 hstream->format_val = rate | bits | (params_channels(params) - 1); in hda_dsp_pcm_hw_params()
|
H A D | hda.h | 966 unsigned int format_val);
|
H A D | hda-stream.c | 629 0xffff, hstream->format_val); in hda_dsp_stream_hw_params()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | hdac_hda.c | 211 unsigned int format_val; in hdac_hda_dai_hw_params() local 220 format_val = snd_hdac_calc_stream_format(params_rate(params), in hdac_hda_dai_hw_params() 225 if (!format_val) { in hdac_hda_dai_hw_params() 234 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params() 264 unsigned int format_val; in hdac_hda_dai_prepare() local 278 format_val = hda_pvt->pcm[dai->id].format_val[substream->stream]; in hdac_hda_dai_prepare() 281 stream, format_val, substream); in hdac_hda_dai_prepare()
|
H A D | hdac_hda.h | 22 unsigned int format_val[2]; member
|
/openbmc/linux/sound/hda/ |
H A D | hdac_stream.c | 281 snd_hdac_stream_writew(azx_dev, SD_FORMAT, azx_dev->format_val); in snd_hdac_stream_setup() 335 azx_dev->format_val = 0; in snd_hdac_stream_cleanup() 574 unsigned int format_val) in snd_hdac_stream_set_params() argument 596 format_val != azx_dev->format_val || in snd_hdac_stream_set_params() 600 azx_dev->format_val = format_val; in snd_hdac_stream_set_params() 931 azx_dev->format_val = format; in snd_hdac_dsp_prepare() 995 azx_dev->format_val = 0; in snd_hdac_dsp_cleanup()
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | probes.c | 132 unsigned int format_val; in avs_probe_compr_set_params() local 137 hdac_stream(host_stream)->format_val = 0; in avs_probe_compr_set_params() 147 format_val = snd_hdac_calc_stream_format(params->codec.sample_rate, params->codec.ch_out, in avs_probe_compr_set_params() 149 ret = snd_hdac_stream_set_params(hdac_stream(host_stream), format_val); in avs_probe_compr_set_params()
|
H A D | pcm.c | 342 unsigned int format_val; in avs_dai_hda_be_prepare() local 350 format_val = snd_hdac_calc_stream_format(runtime->rate, runtime->channels, runtime->format, in avs_dai_hda_be_prepare() 355 snd_hdac_ext_stream_setup(link_stream, format_val); in avs_dai_hda_be_prepare() 535 hdac_stream(host_stream)->format_val = 0; in avs_dai_fe_hw_params() 608 unsigned int format_val; in avs_dai_fe_prepare() local 621 format_val = snd_hdac_calc_stream_format(runtime->rate, runtime->channels, runtime->format, in avs_dai_fe_prepare() 624 ret = snd_hdac_stream_set_params(hdac_stream(host_stream), format_val); in avs_dai_fe_prepare()
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-pcm.c | 79 hdac_stream(stream)->format_val = 0; in skl_substream_alloc_pages() 128 unsigned int format_val; in skl_pcm_host_dma_prepare() local 141 format_val = snd_hdac_calc_stream_format(params->s_freq, in skl_pcm_host_dma_prepare() 145 format_val, params->s_freq, params->ch, params->format); in skl_pcm_host_dma_prepare() 148 err = snd_hdac_stream_set_params(hdac_stream(stream), format_val); in skl_pcm_host_dma_prepare() 175 unsigned int format_val; in skl_pcm_link_dma_prepare() local 188 format_val = snd_hdac_calc_stream_format(params->s_freq, params->ch, in skl_pcm_link_dma_prepare() 192 format_val, params->s_freq, params->ch, params->format); in skl_pcm_link_dma_prepare() 196 snd_hdac_ext_stream_setup(stream, format_val); in skl_pcm_link_dma_prepare()
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap.c | 975 map->format.format_val = regmap_format_8; in __regmap_init() 982 map->format.format_val = regmap_format_16_be; in __regmap_init() 987 map->format.format_val = regmap_format_16_le; in __regmap_init() 992 map->format.format_val = regmap_format_16_native; in __regmap_init() 1002 map->format.format_val = regmap_format_24_be; in __regmap_init() 1012 map->format.format_val = regmap_format_32_be; in __regmap_init() 1017 map->format.format_val = regmap_format_32_le; in __regmap_init() 1022 map->format.format_val = regmap_format_32_native; in __regmap_init() 1039 !(map->format.format_reg && map->format.format_val)) in __regmap_init() 1051 } else if (map->format.format_val) { in __regmap_init() [all …]
|
H A D | regcache.c | 617 if (map->format.format_val) { in regcache_set_val() 618 map->format.format_val(base + (map->cache_word_size * idx), in regcache_set_val()
|
H A D | internal.h | 39 void (*format_val)(void *buf, unsigned int val, unsigned int shift); member
|
/openbmc/linux/sound/pci/hda/ |
H A D | hda_controller.c | 122 azx_dev->core.format_val = 0; in azx_pcm_hw_params() 154 unsigned int format_val, stream_tag; in azx_pcm_prepare() local 168 format_val = snd_hdac_calc_stream_format(runtime->rate, in azx_pcm_prepare() 173 if (!format_val) { in azx_pcm_prepare() 181 err = snd_hdac_stream_set_params(azx_stream(azx_dev), format_val); in azx_pcm_prepare() 193 azx_dev->core.format_val, substream); in azx_pcm_prepare()
|
H A D | patch_ca0132.c | 3023 unsigned int format_val; in dma_convert_to_hda_format() local 3025 format_val = snd_hdac_calc_stream_format(sample_rate, in dma_convert_to_hda_format() 3029 *hda_format = (unsigned short)format_val; in dma_convert_to_hda_format()
|
/openbmc/linux/include/sound/ |
H A D | hdaudio.h | 538 unsigned int format_val; /* format value to be set in the member 580 unsigned int format_val);
|