Lines Matching +full:dai +full:- +full:link +full:-
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 asoc_simple_dai *dai);
160 #define asoc_simple_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);
201 struct asoc_simple_dai *dai) in asoc_simple_debug_dai() argument
205 /* dai might be NULL */ in asoc_simple_debug_dai()
206 if (!dai) in asoc_simple_debug_dai()
209 if (dai->name) in asoc_simple_debug_dai()
210 dev_dbg(dev, "%s dai name = %s\n", in asoc_simple_debug_dai()
211 name, dai->name); in asoc_simple_debug_dai()
213 if (dai->slots) in asoc_simple_debug_dai()
214 dev_dbg(dev, "%s slots = %d\n", name, dai->slots); in asoc_simple_debug_dai()
215 if (dai->slot_width) in asoc_simple_debug_dai()
216 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
217 if (dai->tx_slot_mask) in asoc_simple_debug_dai()
218 dev_dbg(dev, "%s tx slot mask = %d\n", name, dai->tx_slot_mask); in asoc_simple_debug_dai()
219 if (dai->rx_slot_mask) in asoc_simple_debug_dai()
220 dev_dbg(dev, "%s rx slot mask = %d\n", name, dai->rx_slot_mask); in asoc_simple_debug_dai()
221 if (dai->clk) in asoc_simple_debug_dai()
222 dev_dbg(dev, "%s clk %luHz\n", name, clk_get_rate(dai->clk)); in asoc_simple_debug_dai()
223 if (dai->sysclk) in asoc_simple_debug_dai()
225 name, dai->sysclk); in asoc_simple_debug_dai()
226 if (dai->clk || dai->sysclk) in asoc_simple_debug_dai()
228 name, dai->clk_direction ? "OUT" : "IN"); in asoc_simple_debug_dai()
238 if (card->name) in asoc_simple_debug_info()
239 dev_dbg(dev, "Card Name: %s\n", card->name); in asoc_simple_debug_info()
241 for (i = 0; i < card->num_links; i++) { in asoc_simple_debug_info()
243 struct snd_soc_dai_link *link = simple_priv_to_link(priv, i); in asoc_simple_debug_info() local
244 struct asoc_simple_dai *dai; in asoc_simple_debug_info() local
248 dev_dbg(dev, "DAI%d\n", i); in asoc_simple_debug_info()
250 dev_dbg(dev, "cpu num = %d\n", link->num_cpus); in asoc_simple_debug_info()
251 for_each_prop_dai_cpu(props, j, dai) in asoc_simple_debug_info()
252 asoc_simple_debug_dai(priv, "cpu", dai); in asoc_simple_debug_info()
253 dev_dbg(dev, "codec num = %d\n", link->num_codecs); in asoc_simple_debug_info()
254 for_each_prop_dai_codec(props, j, dai) in asoc_simple_debug_info()
255 asoc_simple_debug_dai(priv, "codec", dai); in asoc_simple_debug_info()
257 if (link->name) in asoc_simple_debug_info()
258 dev_dbg(dev, "dai name = %s\n", link->name); in asoc_simple_debug_info()
259 if (link->dai_fmt) in asoc_simple_debug_info()
260 dev_dbg(dev, "dai format = %04x\n", link->dai_fmt); in asoc_simple_debug_info()
261 if (props->adata.convert_rate) in asoc_simple_debug_info()
262 dev_dbg(dev, "convert_rate = %d\n", props->adata.convert_rate); in asoc_simple_debug_info()
263 if (props->adata.convert_channels) in asoc_simple_debug_info()
264 dev_dbg(dev, "convert_channels = %d\n", props->adata.convert_channels); in asoc_simple_debug_info()
266 if (cnf->name_prefix) in asoc_simple_debug_info()
267 dev_dbg(dev, "name prefix = %s\n", cnf->name_prefix); in asoc_simple_debug_info()
268 if (props->mclk_fs) in asoc_simple_debug_info()
269 dev_dbg(dev, "mclk-fs = %d\n", props->mclk_fs); in asoc_simple_debug_info()