rdai 45 sound/soc/sh/rcar/cmd.c struct rsnd_dai *rdai; rdai 56 sound/soc/sh/rcar/cmd.c for_each_rsnd_dai(rdai, priv, i) { rdai 57 sound/soc/sh/rcar/cmd.c tio = &rdai->playback; rdai 62 sound/soc/sh/rcar/cmd.c tio = &rdai->capture; rdai 234 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai; rdai 237 sound/soc/sh/rcar/core.c for_each_rsnd_dai(rdai, priv, i) { rdai 238 sound/soc/sh/rcar/core.c io = &rdai->playback; rdai 242 sound/soc/sh/rcar/core.c io = &rdai->capture; rdai 318 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 325 sound/soc/sh/rcar/core.c chan /= rsnd_rdai_ssi_lane_get(rdai); rdai 332 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 333 sound/soc/sh/rcar/core.c int lane = rsnd_rdai_ssi_lane_get(rdai); rdai 620 sound/soc/sh/rcar/core.c int rsnd_rdai_channels_ctrl(struct rsnd_dai *rdai, rdai 624 sound/soc/sh/rcar/core.c rdai->max_channels = max_channels; rdai 626 sound/soc/sh/rcar/core.c return rdai->max_channels; rdai 629 sound/soc/sh/rcar/core.c int rsnd_rdai_ssi_lane_ctrl(struct rsnd_dai *rdai, rdai 633 sound/soc/sh/rcar/core.c rdai->ssi_lane = ssi_lane; rdai 635 sound/soc/sh/rcar/core.c return rdai->ssi_lane; rdai 638 sound/soc/sh/rcar/core.c int rsnd_rdai_width_ctrl(struct rsnd_dai *rdai, int width) rdai 641 sound/soc/sh/rcar/core.c rdai->chan_width = width; rdai 643 sound/soc/sh/rcar/core.c return rdai->chan_width; rdai 651 sound/soc/sh/rcar/core.c return priv->rdai + id; rdai 708 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *rsnd_rdai_to_io(struct rsnd_dai *rdai, rdai 712 sound/soc/sh/rcar/core.c return &rdai->playback; rdai 714 sound/soc/sh/rcar/core.c return &rdai->capture; rdai 721 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 722 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 765 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 770 sound/soc/sh/rcar/core.c rdai->clk_master = 0; rdai 773 sound/soc/sh/rcar/core.c rdai->clk_master = 1; /* codec is slave, cpu is master */ rdai 780 sound/soc/sh/rcar/core.c rdai->bit_clk_inv = 0; rdai 783 sound/soc/sh/rcar/core.c rdai->sys_delay = 0; rdai 784 sound/soc/sh/rcar/core.c rdai->data_alignment = 0; rdai 785 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = 0; rdai 789 sound/soc/sh/rcar/core.c rdai->sys_delay = 1; rdai 790 sound/soc/sh/rcar/core.c rdai->data_alignment = 0; rdai 791 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = 1; rdai 794 sound/soc/sh/rcar/core.c rdai->sys_delay = 1; rdai 795 sound/soc/sh/rcar/core.c rdai->data_alignment = 1; rdai 796 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = 1; rdai 799 sound/soc/sh/rcar/core.c rdai->sys_delay = 0; rdai 800 sound/soc/sh/rcar/core.c rdai->data_alignment = 0; rdai 801 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = 1; rdai 808 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = !rdai->frm_clk_inv; rdai 811 sound/soc/sh/rcar/core.c rdai->bit_clk_inv = !rdai->bit_clk_inv; rdai 814 sound/soc/sh/rcar/core.c rdai->bit_clk_inv = !rdai->bit_clk_inv; rdai 815 sound/soc/sh/rcar/core.c rdai->frm_clk_inv = !rdai->frm_clk_inv; rdai 830 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 849 sound/soc/sh/rcar/core.c rsnd_rdai_channels_set(rdai, slots); rdai 850 sound/soc/sh/rcar/core.c rsnd_rdai_ssi_lane_set(rdai, 1); rdai 851 sound/soc/sh/rcar/core.c rsnd_rdai_width_set(rdai, slot_width); rdai 880 sound/soc/sh/rcar/core.c static int rsnd_soc_hw_rule(struct rsnd_dai *rdai, rdai 897 sound/soc/sh/rcar/core.c rate = rsnd_ssi_clk_query(rdai, rdai 904 sound/soc/sh/rcar/core.c rate = rsnd_ssi_clk_query(rdai, rdai 922 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 933 sound/soc/sh/rcar/core.c return rsnd_soc_hw_rule(rdai, rsnd_soc_hw_rate_list, rdai 945 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 956 sound/soc/sh/rcar/core.c return rsnd_soc_hw_rule(rdai, rsnd_soc_hw_channels_list, rdai 976 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 977 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 978 sound/soc/sh/rcar/core.c struct snd_pcm_hw_constraint_list *constraint = &rdai->constraint; rdai 980 sound/soc/sh/rcar/core.c unsigned int max_channels = rsnd_rdai_channels_get(rdai); rdai 1011 sound/soc/sh/rcar/core.c if (rsnd_rdai_is_clk_master(rdai)) { rdai 1016 sound/soc/sh/rcar/core.c is_play ? &rdai->playback : &rdai->capture, rdai 1020 sound/soc/sh/rcar/core.c is_play ? &rdai->playback : &rdai->capture, rdai 1030 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1031 sound/soc/sh/rcar/core.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 1032 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 1046 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1047 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 1133 sound/soc/sh/rcar/core.c void rsnd_parse_connect_common(struct rsnd_dai *rdai, rdai 1139 sound/soc/sh/rcar/core.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 1151 sound/soc/sh/rcar/core.c rsnd_dai_connect(mod, &rdai->playback, mod->type); rdai 1153 sound/soc/sh/rcar/core.c rsnd_dai_connect(mod, &rdai->capture, mod->type); rdai 1231 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1234 sound/soc/sh/rcar/core.c ret = rsnd_dai_call(pcm_new, &rdai->playback, rtd); rdai 1238 sound/soc/sh/rcar/core.c ret = rsnd_dai_call(pcm_new, &rdai->capture, rtd); rdai 1242 sound/soc/sh/rcar/core.c ret = rsnd_preallocate_pages(rtd, &rdai->playback, rdai 1247 sound/soc/sh/rcar/core.c ret = rsnd_preallocate_pages(rtd, &rdai->capture, rdai 1263 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai; rdai 1267 sound/soc/sh/rcar/core.c rdai = rsnd_rdai_get(priv, dai_i); rdai 1269 sound/soc/sh/rcar/core.c io_playback = &rdai->playback; rdai 1270 sound/soc/sh/rcar/core.c io_capture = &rdai->capture; rdai 1272 sound/soc/sh/rcar/core.c snprintf(rdai->name, RSND_DAI_NAME_SIZE, "rsnd-dai.%d", dai_i); rdai 1274 sound/soc/sh/rcar/core.c rdai->priv = priv; rdai 1275 sound/soc/sh/rcar/core.c drv->name = rdai->name; rdai 1295 sound/soc/sh/rcar/core.c io_playback->rdai = rdai; rdai 1296 sound/soc/sh/rcar/core.c io_capture->rdai = rdai; rdai 1297 sound/soc/sh/rcar/core.c rsnd_rdai_channels_set(rdai, 2); /* default 2ch */ rdai 1298 sound/soc/sh/rcar/core.c rsnd_rdai_ssi_lane_set(rdai, 1); /* default 1lane */ rdai 1299 sound/soc/sh/rcar/core.c rsnd_rdai_width_set(rdai, 32); /* default 32bit width */ rdai 1308 sound/soc/sh/rcar/core.c rsnd_parse_connect_ssi(rdai, playback, capture); rdai 1309 sound/soc/sh/rcar/core.c rsnd_parse_connect_ssiu(rdai, playback, capture); rdai 1310 sound/soc/sh/rcar/core.c rsnd_parse_connect_src(rdai, playback, capture); rdai 1311 sound/soc/sh/rcar/core.c rsnd_parse_connect_ctu(rdai, playback, capture); rdai 1312 sound/soc/sh/rcar/core.c rsnd_parse_connect_mix(rdai, playback, capture); rdai 1313 sound/soc/sh/rcar/core.c rsnd_parse_connect_dvc(rdai, playback, capture); rdai 1325 sound/soc/sh/rcar/core.c dev_dbg(dev, "%s (%s/%s)\n", rdai->name, rdai 1336 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai; rdai 1351 sound/soc/sh/rcar/core.c rdai = devm_kcalloc(dev, nr, sizeof(*rdai), GFP_KERNEL); rdai 1352 sound/soc/sh/rcar/core.c if (!rdrv || !rdai) rdai 1357 sound/soc/sh/rcar/core.c priv->rdai = rdai; rdai 1367 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); rdai 1369 sound/soc/sh/rcar/core.c rsnd_parse_connect_graph(priv, &rdai->playback, dai_np); rdai 1370 sound/soc/sh/rcar/core.c rsnd_parse_connect_graph(priv, &rdai->capture, dai_np); rdai 1378 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_rdai_get(priv, dai_i); rdai 1380 sound/soc/sh/rcar/core.c rsnd_parse_connect_simple(priv, &rdai->playback, dai_np); rdai 1381 sound/soc/sh/rcar/core.c rsnd_parse_connect_simple(priv, &rdai->capture, dai_np); rdai 1397 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1398 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 1444 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1445 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 1458 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai); rdai 1459 sound/soc/sh/rcar/core.c struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream); rdai 1725 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai; rdai 1761 sound/soc/sh/rcar/core.c for_each_rsnd_dai(rdai, priv, i) { rdai 1762 sound/soc/sh/rcar/core.c ret = rsnd_rdai_continuance_probe(priv, &rdai->playback); rdai 1766 sound/soc/sh/rcar/core.c ret = rsnd_rdai_continuance_probe(priv, &rdai->capture); rdai 1789 sound/soc/sh/rcar/core.c for_each_rsnd_dai(rdai, priv, i) { rdai 1790 sound/soc/sh/rcar/core.c rsnd_dai_call(remove, &rdai->playback, priv); rdai 1791 sound/soc/sh/rcar/core.c rsnd_dai_call(remove, &rdai->capture, priv); rdai 1808 sound/soc/sh/rcar/core.c struct rsnd_dai *rdai; rdai 1825 sound/soc/sh/rcar/core.c for_each_rsnd_dai(rdai, priv, i) { rdai 1826 sound/soc/sh/rcar/core.c ret |= rsnd_dai_call(remove, &rdai->playback, priv); rdai 1827 sound/soc/sh/rcar/core.c ret |= rsnd_dai_call(remove, &rdai->capture, priv); rdai 216 sound/soc/sh/rcar/dvc.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 218 sound/soc/sh/rcar/dvc.c int channels = rsnd_rdai_channels_get(rdai); rdai 449 sound/soc/sh/rcar/rsnd.h void rsnd_parse_connect_common(struct rsnd_dai *rdai, rdai 494 sound/soc/sh/rcar/rsnd.h struct rsnd_dai *rdai; rdai 516 sound/soc/sh/rcar/rsnd.h #define rsnd_io_to_rdai(io) ((io)->rdai) rdai 544 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_is_clk_master(rdai) ((rdai)->clk_master) rdai 545 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_to_priv(rdai) ((rdai)->priv) rdai 546 sound/soc/sh/rcar/rsnd.h #define for_each_rsnd_dai(rdai, priv, i) \ rdai 549 sound/soc/sh/rcar/rsnd.h ((rdai) = rsnd_rdai_get(priv, i)); \ rdai 554 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_channels_set(rdai, max_channels) \ rdai 555 sound/soc/sh/rcar/rsnd.h rsnd_rdai_channels_ctrl(rdai, max_channels) rdai 556 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_channels_get(rdai) \ rdai 557 sound/soc/sh/rcar/rsnd.h rsnd_rdai_channels_ctrl(rdai, 0) rdai 558 sound/soc/sh/rcar/rsnd.h int rsnd_rdai_channels_ctrl(struct rsnd_dai *rdai, rdai 561 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_ssi_lane_set(rdai, ssi_lane) \ rdai 562 sound/soc/sh/rcar/rsnd.h rsnd_rdai_ssi_lane_ctrl(rdai, ssi_lane) rdai 563 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_ssi_lane_get(rdai) \ rdai 564 sound/soc/sh/rcar/rsnd.h rsnd_rdai_ssi_lane_ctrl(rdai, 0) rdai 565 sound/soc/sh/rcar/rsnd.h int rsnd_rdai_ssi_lane_ctrl(struct rsnd_dai *rdai, rdai 568 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_width_set(rdai, width) \ rdai 569 sound/soc/sh/rcar/rsnd.h rsnd_rdai_width_ctrl(rdai, width) rdai 570 sound/soc/sh/rcar/rsnd.h #define rsnd_rdai_width_get(rdai) \ rdai 571 sound/soc/sh/rcar/rsnd.h rsnd_rdai_width_ctrl(rdai, 0) rdai 572 sound/soc/sh/rcar/rsnd.h int rsnd_rdai_width_ctrl(struct rsnd_dai *rdai, int width); rdai 681 sound/soc/sh/rcar/rsnd.h struct rsnd_dai *rdai; rdai 776 sound/soc/sh/rcar/rsnd.h void rsnd_parse_connect_ssi(struct rsnd_dai *rdai, rdai 779 sound/soc/sh/rcar/rsnd.h unsigned int rsnd_ssi_clk_query(struct rsnd_dai *rdai, rdai 789 sound/soc/sh/rcar/rsnd.h void rsnd_parse_connect_ssiu(struct rsnd_dai *rdai, rdai 808 sound/soc/sh/rcar/rsnd.h #define rsnd_parse_connect_src(rdai, playback, capture) \ rdai 809 sound/soc/sh/rcar/rsnd.h rsnd_parse_connect_common(rdai, rsnd_src_mod_get, \ rdai 810 sound/soc/sh/rcar/rsnd.h rsnd_src_of_node(rsnd_rdai_to_priv(rdai)), \ rdai 820 sound/soc/sh/rcar/rsnd.h #define rsnd_parse_connect_ctu(rdai, playback, capture) \ rdai 821 sound/soc/sh/rcar/rsnd.h rsnd_parse_connect_common(rdai, rsnd_ctu_mod_get, \ rdai 822 sound/soc/sh/rcar/rsnd.h rsnd_ctu_of_node(rsnd_rdai_to_priv(rdai)), \ rdai 832 sound/soc/sh/rcar/rsnd.h #define rsnd_parse_connect_mix(rdai, playback, capture) \ rdai 833 sound/soc/sh/rcar/rsnd.h rsnd_parse_connect_common(rdai, rsnd_mix_mod_get, \ rdai 834 sound/soc/sh/rcar/rsnd.h rsnd_mix_of_node(rsnd_rdai_to_priv(rdai)), \ rdai 844 sound/soc/sh/rcar/rsnd.h #define rsnd_parse_connect_dvc(rdai, playback, capture) \ rdai 845 sound/soc/sh/rcar/rsnd.h rsnd_parse_connect_common(rdai, rsnd_dvc_mod_get, \ rdai 846 sound/soc/sh/rcar/rsnd.h rsnd_dvc_of_node(rsnd_rdai_to_priv(rdai)), \ rdai 213 sound/soc/sh/rcar/ssi.c static u32 rsnd_rdai_width_to_swl(struct rsnd_dai *rdai) rdai 215 sound/soc/sh/rcar/ssi.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 217 sound/soc/sh/rcar/ssi.c int width = rsnd_rdai_width_get(rdai); rdai 229 sound/soc/sh/rcar/ssi.c unsigned int rsnd_ssi_clk_query(struct rsnd_dai *rdai, rdai 232 sound/soc/sh/rcar/ssi.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 238 sound/soc/sh/rcar/ssi.c int width = rsnd_rdai_width_get(rdai); rdai 271 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 280 sound/soc/sh/rcar/ssi.c if (!rsnd_rdai_is_clk_master(rdai)) rdai 308 sound/soc/sh/rcar/ssi.c main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); rdai 328 sound/soc/sh/rcar/ssi.c ssi->cr_clk = FORCE | rsnd_rdai_width_to_swl(rdai) | rdai 343 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 346 sound/soc/sh/rcar/ssi.c if (!rsnd_rdai_is_clk_master(rdai)) rdai 365 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 366 sound/soc/sh/rcar/ssi.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 384 sound/soc/sh/rcar/ssi.c cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai); rdai 386 sound/soc/sh/rcar/ssi.c if (rdai->bit_clk_inv) rdai 388 sound/soc/sh/rcar/ssi.c if (rdai->frm_clk_inv && !is_tdm) rdai 390 sound/soc/sh/rcar/ssi.c if (rdai->data_alignment) rdai 392 sound/soc/sh/rcar/ssi.c if (rdai->sys_delay) rdai 528 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 531 sound/soc/sh/rcar/ssi.c if (fmt_width > rdai->chan_width) { rdai 737 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 743 sound/soc/sh/rcar/ssi.c if (!rsnd_rdai_is_clk_master(rdai)) rdai 1039 sound/soc/sh/rcar/ssi.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 1054 sound/soc/sh/rcar/ssi.c rsnd_rdai_channels_set(rdai, (i + 1) * 2); rdai 1055 sound/soc/sh/rcar/ssi.c rsnd_rdai_ssi_lane_set(rdai, (i + 1)); rdai 1061 sound/soc/sh/rcar/ssi.c void rsnd_parse_connect_ssi(struct rsnd_dai *rdai, rdai 1065 sound/soc/sh/rcar/ssi.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 1079 sound/soc/sh/rcar/ssi.c rsnd_ssi_connect(mod, &rdai->playback); rdai 1081 sound/soc/sh/rcar/ssi.c rsnd_ssi_connect(mod, &rdai->capture); rdai 62 sound/soc/sh/rcar/ssiu.c struct rsnd_dai *rdai = rsnd_io_to_rdai(io); rdai 66 sound/soc/sh/rcar/ssiu.c int is_clk_master = rsnd_rdai_is_clk_master(rdai); rdai 356 sound/soc/sh/rcar/ssiu.c void rsnd_parse_connect_ssiu(struct rsnd_dai *rdai, rdai 360 sound/soc/sh/rcar/ssiu.c struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); rdai 364 sound/soc/sh/rcar/ssiu.c struct rsnd_dai_stream *io_p = &rdai->playback; rdai 365 sound/soc/sh/rcar/ssiu.c struct rsnd_dai_stream *io_c = &rdai->capture;