Lines Matching +full:dai +full:- +full:tdm +full:- +full:slot +full:- +full:width
1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-util.c -- ALSA SoC Audio Layer utility functions
57 * snd_soc_tdm_params_to_bclk - calculate bclk from params and tdm slot info.
59 * Calculate the bclk from the params sample rate, the tdm slot count and the
60 * tdm slot width. Optionally round-up the slot count to a given multiple.
63 * If tdm_width == 0: use params_width() as the slot width.
64 * If tdm_slots == 0: use params_channels() as the slot count.
66 * If slot_multiple > 1 the slot count (or params_channels() if tdm_slots == 0)
75 * @tdm_width: Width in bits of the tdm slots. Must be >= 0.
76 * @tdm_slots: Number of tdm slots per frame. Must be >= 0.
77 * @slot_multiple: If >1 roundup slot count to a multiple of this value.
126 if (component->driver == &dummy_platform) in dummy_dma_open()
131 if (!rtd->dai_link->no_pcm) in dummy_dma_open()
196 .name = "snd-soc-dummy-dai",
214 int snd_soc_dai_is_dummy(struct snd_soc_dai *dai) in snd_soc_dai_is_dummy() argument
216 if (dai->driver == &dummy_dai) in snd_soc_dai_is_dummy()
224 return ((component->driver == &dummy_platform) || in snd_soc_component_is_dummy()
225 (component->driver == &dummy_codec)); in snd_soc_component_is_dummy()
230 .dai_name = "snd-soc-dummy-dai",
231 .name = "snd-soc-dummy",
239 ret = devm_snd_soc_register_component(&pdev->dev, in snd_soc_dummy_probe()
244 ret = devm_snd_soc_register_component(&pdev->dev, &dummy_platform, in snd_soc_dummy_probe()
252 .name = "snd-soc-dummy",
264 platform_device_register_simple("snd-soc-dummy", -1, NULL, 0); in snd_soc_util_init()