Lines Matching +full:be +full:- +full:dai +full:- +full:link
1 /* SPDX-License-Identifier: GPL-2.0
79 #define simple_priv_to_card(priv) (&(priv)->snd_card)
80 #define simple_priv_to_props(priv, i) ((priv)->dai_props + (i))
81 #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
82 #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
84 #define simple_props_to_dlc_cpu(props, i) ((props)->cpus + i)
85 #define simple_props_to_dlc_codec(props, i) ((props)->codecs + i)
86 #define simple_props_to_dlc_platform(props, i) ((props)->platforms + i)
88 #define simple_props_to_dai_cpu(props, i) ((props)->cpu_dai + i)
89 #define simple_props_to_dai_codec(props, i) ((props)->codec_dai + i)
90 #define simple_props_to_codec_conf(props, i) ((props)->codec_conf + i)
94 ((i) < (props)->num.cpus) && \
99 ((i) < (props)->num.codecs) && \
104 ((i) < (props)->num.platforms) && \
109 ((i) < (props)->num.codecs) && \
110 (props)->codec_conf && \
116 ((i) < (props)->num.cpus) && \
121 ((i) < (props)->num.codecs) && \
128 int link; /* number of link */ member
139 struct simple_util_dai *dai);
160 #define simple_util_parse_tdm(np, dai) \ argument
161 snd_soc_of_parse_tdm_slot(np, &(dai)->tx_slot_mask, \
162 &(dai)->rx_slot_mask, \
163 &(dai)->slots, \
164 &(dai)->slot_width);
210 struct simple_util_dai *dai) in simple_util_debug_dai() argument
214 /* dai might be NULL */ in simple_util_debug_dai()
215 if (!dai) in simple_util_debug_dai()
218 if (dai->name) in simple_util_debug_dai()
219 dev_dbg(dev, "%s dai name = %s\n", in simple_util_debug_dai()
220 name, dai->name); in simple_util_debug_dai()
222 if (dai->slots) in simple_util_debug_dai()
223 dev_dbg(dev, "%s slots = %d\n", name, dai->slots); in simple_util_debug_dai()
224 if (dai->slot_width) in simple_util_debug_dai()
225 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in simple_util_debug_dai()
226 if (dai->tx_slot_mask) in simple_util_debug_dai()
227 dev_dbg(dev, "%s tx slot mask = %d\n", name, dai->tx_slot_mask); in simple_util_debug_dai()
228 if (dai->rx_slot_mask) in simple_util_debug_dai()
229 dev_dbg(dev, "%s rx slot mask = %d\n", name, dai->rx_slot_mask); in simple_util_debug_dai()
230 if (dai->clk) in simple_util_debug_dai()
231 dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk)); in simple_util_debug_dai()
232 if (dai->sysclk) in simple_util_debug_dai()
234 name, dai->sysclk); in simple_util_debug_dai()
235 if (dai->clk || dai->sysclk) in simple_util_debug_dai()
237 name, dai->clk_direction ? "OUT" : "IN"); in simple_util_debug_dai()
247 if (card->name) in simple_util_debug_info()
248 dev_dbg(dev, "Card Name: %s\n", card->name); in simple_util_debug_info()
250 for (i = 0; i < card->num_links; i++) { in simple_util_debug_info()
252 struct snd_soc_dai_link *link = simple_priv_to_link(priv, i); in simple_util_debug_info() local
253 struct simple_util_dai *dai; in simple_util_debug_info() local
257 dev_dbg(dev, "DAI%d\n", i); in simple_util_debug_info()
259 dev_dbg(dev, "cpu num = %d\n", link->num_cpus); in simple_util_debug_info()
260 for_each_prop_dai_cpu(props, j, dai) in simple_util_debug_info()
261 simple_util_debug_dai(priv, "cpu", dai); in simple_util_debug_info()
262 dev_dbg(dev, "codec num = %d\n", link->num_codecs); in simple_util_debug_info()
263 for_each_prop_dai_codec(props, j, dai) in simple_util_debug_info()
264 simple_util_debug_dai(priv, "codec", dai); in simple_util_debug_info()
266 if (link->name) in simple_util_debug_info()
267 dev_dbg(dev, "dai name = %s\n", link->name); in simple_util_debug_info()
268 if (link->dai_fmt) in simple_util_debug_info()
269 dev_dbg(dev, "dai format = %04x\n", link->dai_fmt); in simple_util_debug_info()
270 if (props->adata.convert_rate) in simple_util_debug_info()
271 dev_dbg(dev, "convert_rate = %d\n", props->adata.convert_rate); in simple_util_debug_info()
272 if (props->adata.convert_channels) in simple_util_debug_info()
273 dev_dbg(dev, "convert_channels = %d\n", props->adata.convert_channels); in simple_util_debug_info()
275 if (cnf->name_prefix) in simple_util_debug_info()
276 dev_dbg(dev, "name prefix = %s\n", cnf->name_prefix); in simple_util_debug_info()
277 if (props->mclk_fs) in simple_util_debug_info()
278 dev_dbg(dev, "mclk-fs = %d\n", props->mclk_fs); in simple_util_debug_info()