Lines Matching +full:dai +full:- +full:tdm +full:- +full:tdm +full:- +full:slot +full:- +full:with
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.
122 * If there are other components associated with rtd, we shouldn't in dummy_dma_open()
126 if (component->driver == &dummy_platform) in dummy_dma_open()
131 if (!rtd->dai_link->no_pcm) in dummy_dma_open()
195 .name = "snd-soc-dummy-dai",
217 int snd_soc_dai_is_dummy(const struct snd_soc_dai *dai) in snd_soc_dai_is_dummy() argument
219 if (dai->driver == &dummy_dai) in snd_soc_dai_is_dummy()
227 return ((component->driver == &dummy_platform) || in snd_soc_component_is_dummy()
228 (component->driver == &dummy_codec)); in snd_soc_component_is_dummy()
233 .dai_name = "snd-soc-dummy-dai",
234 .name = "snd-soc-dummy",
242 ret = devm_snd_soc_register_component(&pdev->dev, in snd_soc_dummy_probe()
247 ret = devm_snd_soc_register_component(&pdev->dev, &dummy_platform, in snd_soc_dummy_probe()
255 .name = "snd-soc-dummy",
267 platform_device_register_simple("snd-soc-dummy", -1, NULL, 0); in snd_soc_util_init()