Lines Matching +full:tdm +full:- +full:slots

1 // SPDX-License-Identifier: GPL-2.0+
3 // soc-util.c -- ALSA SoC Audio Layer utility functions
29 case -EPROBE_DEFER: in snd_soc_ret()
30 case -ENOTSUPP: in snd_soc_ret()
31 case -EOPNOTSUPP: in snd_soc_ret()
84 * snd_soc_tdm_params_to_bclk - calculate bclk from params and tdm slot info.
86 * Calculate the bclk from the params sample rate, the tdm slot count and the
87 * tdm slot width. Optionally round-up the slot count to a given multiple.
95 * I2S mode, which has a left and right phase so the number of slots is always
102 * @tdm_width: Width in bits of the tdm slots. Must be >= 0.
103 * @tdm_slots: Number of tdm slots per frame. Must be >= 0.
153 if (component->driver == &dummy_platform) in dummy_dma_open()
158 if (!rtd->dai_link->no_pcm) in dummy_dma_open()
222 .name = "snd-soc-dummy-dai",
246 if (dai->driver == &dummy_dai) in snd_soc_dai_is_dummy()
254 return ((component->driver == &dummy_platform) || in snd_soc_component_is_dummy()
255 (component->driver == &dummy_codec)); in snd_soc_component_is_dummy()
260 .dai_name = "snd-soc-dummy-dai",
261 .name = "snd-soc-dummy",
270 if ((dlc->name && strcmp(dlc->name, snd_soc_dummy_dlc.name) == 0) || in snd_soc_dlc_is_dummy()
271 (dlc->dai_name && strcmp(dlc->dai_name, snd_soc_dummy_dlc.dai_name) == 0)) in snd_soc_dlc_is_dummy()
282 ret = devm_snd_soc_register_component(&fdev->dev, in snd_soc_dummy_probe()
287 ret = devm_snd_soc_register_component(&fdev->dev, &dummy_platform, in snd_soc_dummy_probe()
301 soc_dummy_dev = faux_device_create("snd-soc-dummy", NULL, in snd_soc_util_init()
304 return -ENODEV; in snd_soc_util_init()