2 * Renesas R-Car SRC support
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
13 #define SRC_NAME "src"
16 #define OUF_SRCO ((1 << 12) | (1 << 13))
17 #define OUF_SRCI ((1 << 9) | (1 << 8))
19 /* SCU_SYSTEM_STATUS0/1 */
20 #define OUF_SRC(id) ((1 << (id + 16)) | (1 << id))
23 struct rsnd_src_platform_info
*info
; /* rcar_snd.h */
29 #define RSND_SRC_NAME_SIZE 16
31 #define rsnd_src_convert_rate(p) ((p)->info->convert_rate)
32 #define rsnd_mod_to_src(_mod) \
33 container_of((_mod), struct rsnd_src, mod)
34 #define rsnd_src_dma_available(src) \
35 rsnd_dma_available(rsnd_mod_to_dma(&(src)->mod))
37 #define for_each_rsnd_src(pos, priv, i) \
39 ((i) < rsnd_src_nr(priv)) && \
40 ((pos) = (struct rsnd_src *)(priv)->src + i); \
45 * image of SRC (Sampling Rate Converter)
47 * 96kHz <-> +-----+ 48kHz +-----+ 48kHz +-------+
48 * 48kHz <-> | SRC | <------> | SSI | <-----> | codec |
49 * 44.1kHz <-> +-----+ +-----+ +-------+
59 * [mem] -> [SRU] -> [SSI]
64 * [mem] -> [SRC] -> [SSIU] -> [SSI]
69 * How to use SRC bypass mode for debugging
71 * SRC has bypass mode, and it is useful for debugging.
73 * SRCm_MODE controls whether SRC is used or not
74 * SSI_MODE0 controls whether SSIU which receives SRC data
76 * Both SRCm_MODE/SSI_MODE0 settings are needed if you use SRC,
77 * but SRC bypass mode needs SSI_MODE0 only.
80 * struct rsnd_src_platform_info {
85 * rsnd_src_convert_rate() indicates
86 * above convert_rate, and it controls
87 * whether SRC is used or not.
90 * static struct rsnd_dai_platform_info rsnd_dai = {
91 * .playback = { .ssi = &rsnd_ssi[0], },
95 * static struct rsnd_src_platform_info rsnd_src[] = {
99 * static struct rsnd_dai_platform_info rsnd_dai = {
100 * .playback = { .ssi = &rsnd_ssi[0], .src = &rsnd_src[0] },
103 * ex) uses SRC bypass mode
104 * static struct rsnd_src_platform_info rsnd_src[] = {
108 * static struct rsnd_dai_platform_info rsnd_dai = {
109 * .playback = { .ssi = &rsnd_ssi[0], .src = &rsnd_src[0] },
115 * Gen1/Gen2 common functions
117 int rsnd_src_ssiu_start(struct rsnd_mod
*ssi_mod
,
118 struct rsnd_dai
*rdai
,
121 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(ssi_mod
);
122 struct snd_pcm_runtime
*runtime
= rsnd_io_to_runtime(io
);
123 int ssi_id
= rsnd_mod_id(ssi_mod
);
128 rsnd_mod_bset(ssi_mod
, SSI_MODE0
, (1 << ssi_id
),
129 !use_busif
<< ssi_id
);
134 if (rsnd_ssi_is_pin_sharing(ssi_mod
)) {
149 rsnd_mod_bset(ssi_mod
, SSI_MODE1
,
151 rsnd_dai_is_clk_master(rdai
) ?
152 0x2 << shift
: 0x1 << shift
);
156 * DMA settings for SSIU
159 u32 val
= 0x76543210;
162 rsnd_mod_write(ssi_mod
, SSI_BUSIF_ADINR
,
163 rsnd_get_adinr(ssi_mod
));
164 rsnd_mod_write(ssi_mod
, SSI_BUSIF_MODE
, 1);
165 rsnd_mod_write(ssi_mod
, SSI_CTRL
, 0x1);
167 mask
<<= runtime
->channels
* 4;
170 switch (runtime
->sample_bits
) {
172 val
|= 0x67452301 & ~mask
;
175 val
|= 0x76543210 & ~mask
;
178 rsnd_mod_write(ssi_mod
, BUSIF_DALIGN
, val
);
185 int rsnd_src_ssiu_stop(struct rsnd_mod
*ssi_mod
,
186 struct rsnd_dai
*rdai
)
189 * DMA settings for SSIU
191 rsnd_mod_write(ssi_mod
, SSI_CTRL
, 0);
196 int rsnd_src_ssi_irq_enable(struct rsnd_mod
*ssi_mod
,
197 struct rsnd_dai
*rdai
)
199 struct rsnd_priv
*priv
= rsnd_mod_to_priv(ssi_mod
);
201 if (rsnd_is_gen1(priv
))
204 /* enable SSI interrupt if Gen2 */
205 if (rsnd_ssi_is_dma_mode(ssi_mod
))
206 rsnd_mod_write(ssi_mod
, INT_ENABLE
, 0x0e000000);
208 rsnd_mod_write(ssi_mod
, INT_ENABLE
, 0x0f000000);
213 int rsnd_src_ssi_irq_disable(struct rsnd_mod
*ssi_mod
,
214 struct rsnd_dai
*rdai
)
216 struct rsnd_priv
*priv
= rsnd_mod_to_priv(ssi_mod
);
218 if (rsnd_is_gen1(priv
))
221 /* disable SSI interrupt if Gen2 */
222 rsnd_mod_write(ssi_mod
, INT_ENABLE
, 0x00000000);
227 unsigned int rsnd_src_get_ssi_rate(struct rsnd_priv
*priv
,
228 struct rsnd_dai_stream
*io
,
229 struct snd_pcm_runtime
*runtime
)
231 struct rsnd_mod
*src_mod
= rsnd_io_to_mod_src(io
);
232 struct rsnd_src
*src
;
233 unsigned int rate
= 0;
236 src
= rsnd_mod_to_src(src_mod
);
239 * return convert rate if SRC is used,
240 * otherwise, return runtime->rate as usual
242 rate
= rsnd_src_convert_rate(src
);
246 rate
= runtime
->rate
;
251 static int rsnd_src_set_convert_rate(struct rsnd_mod
*mod
,
252 struct rsnd_dai
*rdai
)
254 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
255 struct snd_pcm_runtime
*runtime
= rsnd_io_to_runtime(io
);
256 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
257 u32 convert_rate
= rsnd_src_convert_rate(src
);
261 fsrate
= 0x0400000 / convert_rate
* runtime
->rate
;
263 /* set/clear soft reset */
264 rsnd_mod_write(mod
, SRC_SWRSR
, 0);
265 rsnd_mod_write(mod
, SRC_SWRSR
, 1);
267 /* Set channel number and output bit length */
268 rsnd_mod_write(mod
, SRC_ADINR
, rsnd_get_adinr(mod
));
270 /* Enable the initial value of IFS */
272 rsnd_mod_write(mod
, SRC_IFSCR
, 1);
274 /* Set initial value of IFS */
275 rsnd_mod_write(mod
, SRC_IFSVR
, fsrate
);
278 /* use DMA transfer */
279 rsnd_mod_write(mod
, SRC_BUSIF_MODE
, 1);
284 static int rsnd_src_init(struct rsnd_mod
*mod
,
285 struct rsnd_dai
*rdai
)
287 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
289 clk_prepare_enable(src
->clk
);
294 * Initialize the operation of the SRC internal circuits
295 * see rsnd_src_start()
297 rsnd_mod_write(mod
, SRC_SRCIR
, 1);
302 static int rsnd_src_quit(struct rsnd_mod
*mod
,
303 struct rsnd_dai
*rdai
)
305 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
306 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
307 struct device
*dev
= rsnd_priv_to_dev(priv
);
309 clk_disable_unprepare(src
->clk
);
312 dev_warn(dev
, "src under/over flow err = %d\n", src
->err
);
317 static int rsnd_src_start(struct rsnd_mod
*mod
)
320 * Cancel the initialization and operate the SRC function
321 * see rsnd_src_init()
323 rsnd_mod_write(mod
, SRC_SRCIR
, 0);
328 static int rsnd_src_stop(struct rsnd_mod
*mod
)
337 static int rsnd_src_set_route_gen1(struct rsnd_mod
*mod
,
338 struct rsnd_dai
*rdai
)
340 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
341 struct src_route_config
{
348 { 0x7, 12, }, /* 3 */
349 { 0x7, 16, }, /* 4 */
350 { 0x7, 20, }, /* 5 */
351 { 0x7, 24, }, /* 6 */
352 { 0x3, 28, }, /* 7 */
353 { 0x3, 30, }, /* 8 */
359 id
= rsnd_mod_id(mod
);
360 if (id
< 0 || id
>= ARRAY_SIZE(routes
))
366 val
= rsnd_dai_is_play(rdai
, io
) ? 0x1 : 0x2;
367 val
= val
<< routes
[id
].shift
;
368 mask
= routes
[id
].mask
<< routes
[id
].shift
;
370 rsnd_mod_bset(mod
, SRC_ROUTE_SEL
, mask
, val
);
375 static int rsnd_src_set_convert_timing_gen1(struct rsnd_mod
*mod
,
376 struct rsnd_dai
*rdai
)
378 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
379 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
380 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
381 struct snd_pcm_runtime
*runtime
= rsnd_io_to_runtime(io
);
382 u32 convert_rate
= rsnd_src_convert_rate(src
);
386 int id
= rsnd_mod_id(mod
);
392 shift
= (id
% 4) * 8;
393 mask
= 0x1F << shift
;
396 * ADG is used as source clock if SRC was used,
397 * then, SSI WS is used as destination clock.
398 * SSI WS is used as source clock if SRC is not used
399 * (when playback, source/destination become reverse when capture)
405 ret
= rsnd_adg_set_convert_clk_gen1(priv
, mod
,
408 } else if (8 == id
) {
409 /* use SSI WS, but SRU8 is special */
413 val
= (id
+ 1) << shift
;
421 rsnd_mod_bset(mod
, SRC_TMG_SEL0
, mask
, val
);
424 rsnd_mod_bset(mod
, SRC_TMG_SEL1
, mask
, val
);
427 rsnd_mod_bset(mod
, SRC_TMG_SEL2
, mask
, val
);
434 static int rsnd_src_set_convert_rate_gen1(struct rsnd_mod
*mod
,
435 struct rsnd_dai
*rdai
)
437 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
440 ret
= rsnd_src_set_convert_rate(mod
, rdai
);
444 /* Select SRC mode (fixed value) */
445 rsnd_mod_write(mod
, SRC_SRCCR
, 0x00010110);
447 /* Set the restriction value of the FS ratio (98%) */
448 rsnd_mod_write(mod
, SRC_MNFSR
,
449 rsnd_mod_read(mod
, SRC_IFSVR
) / 100 * 98);
451 /* Gen1/Gen2 are not compatible */
452 if (rsnd_src_convert_rate(src
))
453 rsnd_mod_write(mod
, SRC_ROUTE_MODE0
, 1);
455 /* no SRC_BFSSR settings, since SRC_SRCCR::BUFMD is 0 */
460 static int rsnd_src_probe_gen1(struct rsnd_mod
*mod
,
461 struct rsnd_dai
*rdai
)
463 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
464 struct device
*dev
= rsnd_priv_to_dev(priv
);
466 dev_dbg(dev
, "%s[%d] (Gen1) is probed\n",
467 rsnd_mod_name(mod
), rsnd_mod_id(mod
));
472 static int rsnd_src_init_gen1(struct rsnd_mod
*mod
,
473 struct rsnd_dai
*rdai
)
477 ret
= rsnd_src_init(mod
, rdai
);
481 ret
= rsnd_src_set_route_gen1(mod
, rdai
);
485 ret
= rsnd_src_set_convert_rate_gen1(mod
, rdai
);
489 ret
= rsnd_src_set_convert_timing_gen1(mod
, rdai
);
496 static int rsnd_src_start_gen1(struct rsnd_mod
*mod
,
497 struct rsnd_dai
*rdai
)
499 int id
= rsnd_mod_id(mod
);
501 rsnd_mod_bset(mod
, SRC_ROUTE_CTRL
, (1 << id
), (1 << id
));
503 return rsnd_src_start(mod
);
506 static int rsnd_src_stop_gen1(struct rsnd_mod
*mod
,
507 struct rsnd_dai
*rdai
)
509 int id
= rsnd_mod_id(mod
);
511 rsnd_mod_bset(mod
, SRC_ROUTE_CTRL
, (1 << id
), 0);
513 return rsnd_src_stop(mod
);
516 static struct rsnd_mod_ops rsnd_src_gen1_ops
= {
518 .probe
= rsnd_src_probe_gen1
,
519 .init
= rsnd_src_init_gen1
,
520 .quit
= rsnd_src_quit
,
521 .start
= rsnd_src_start_gen1
,
522 .stop
= rsnd_src_stop_gen1
,
528 #define rsnd_src_irq_enable_gen2(mod) rsnd_src_irq_ctrol_gen2(mod, 1)
529 #define rsnd_src_irq_disable_gen2(mod) rsnd_src_irq_ctrol_gen2(mod, 0)
530 static void rsnd_src_irq_ctrol_gen2(struct rsnd_mod
*mod
, int enable
)
532 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
533 u32 sys_int_val
, int_val
, sys_int_mask
;
534 int irq
= src
->info
->irq
;
535 int id
= rsnd_mod_id(mod
);
538 sys_int_mask
= OUF_SRC(id
);
542 * IRQ is not supported on non-DT
544 * rsnd_src_probe_gen2()
546 if ((irq
<= 0) || !enable
) {
551 rsnd_mod_write(mod
, SRC_INT_ENABLE0
, int_val
);
552 rsnd_mod_bset(mod
, SCU_SYS_INT_EN0
, sys_int_mask
, sys_int_val
);
553 rsnd_mod_bset(mod
, SCU_SYS_INT_EN1
, sys_int_mask
, sys_int_val
);
556 static void rsnd_src_error_clear_gen2(struct rsnd_mod
*mod
)
558 u32 val
= OUF_SRC(rsnd_mod_id(mod
));
560 rsnd_mod_bset(mod
, SCU_SYS_STATUS0
, val
, val
);
561 rsnd_mod_bset(mod
, SCU_SYS_STATUS1
, val
, val
);
564 static bool rsnd_src_error_record_gen2(struct rsnd_mod
*mod
)
566 u32 val
= OUF_SRC(rsnd_mod_id(mod
));
569 if ((rsnd_mod_read(mod
, SCU_SYS_STATUS0
) & val
) ||
570 (rsnd_mod_read(mod
, SCU_SYS_STATUS1
) & val
)) {
571 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
577 /* clear error static */
578 rsnd_src_error_clear_gen2(mod
);
583 static int _rsnd_src_start_gen2(struct rsnd_mod
*mod
)
585 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
586 u32 val
= rsnd_io_to_mod_dvc(io
) ? 0x01 : 0x11;
588 rsnd_mod_write(mod
, SRC_CTRL
, val
);
590 rsnd_src_error_clear_gen2(mod
);
594 rsnd_src_irq_enable_gen2(mod
);
599 static int _rsnd_src_stop_gen2(struct rsnd_mod
*mod
)
601 rsnd_src_irq_disable_gen2(mod
);
603 rsnd_mod_write(mod
, SRC_CTRL
, 0);
605 rsnd_src_error_record_gen2(mod
);
607 return rsnd_src_stop(mod
);
610 static irqreturn_t
rsnd_src_interrupt_gen2(int irq
, void *data
)
612 struct rsnd_mod
*mod
= data
;
613 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
618 if (rsnd_src_error_record_gen2(mod
)) {
619 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
620 struct device
*dev
= rsnd_priv_to_dev(priv
);
622 _rsnd_src_stop_gen2(mod
);
623 _rsnd_src_start_gen2(mod
);
625 dev_dbg(dev
, "%s[%d] restart\n",
626 rsnd_mod_name(mod
), rsnd_mod_id(mod
));
632 static int rsnd_src_set_convert_rate_gen2(struct rsnd_mod
*mod
,
633 struct rsnd_dai
*rdai
)
635 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
636 struct device
*dev
= rsnd_priv_to_dev(priv
);
637 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
638 struct snd_pcm_runtime
*runtime
= rsnd_io_to_runtime(io
);
639 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
640 u32 convert_rate
= rsnd_src_convert_rate(src
);
644 /* 6 - 1/6 are very enough ratio for SRC_BSDSR */
647 else if (convert_rate
> runtime
->rate
)
648 ratio
= 100 * convert_rate
/ runtime
->rate
;
650 ratio
= 100 * runtime
->rate
/ convert_rate
;
653 dev_err(dev
, "FSO/FSI ratio error\n");
657 ret
= rsnd_src_set_convert_rate(mod
, rdai
);
661 rsnd_mod_write(mod
, SRC_SRCCR
, 0x00011110);
664 /* Gen1/Gen2 are not compatible */
665 rsnd_mod_write(mod
, SRC_ROUTE_MODE0
, 1);
668 switch (rsnd_mod_id(mod
)) {
673 rsnd_mod_write(mod
, SRC_BSDSR
, 0x02400000);
676 rsnd_mod_write(mod
, SRC_BSDSR
, 0x01800000);
680 rsnd_mod_write(mod
, SRC_BSISR
, 0x00100060);
685 static int rsnd_src_set_convert_timing_gen2(struct rsnd_mod
*mod
,
686 struct rsnd_dai
*rdai
)
688 struct rsnd_dai_stream
*io
= rsnd_mod_to_io(mod
);
689 struct snd_pcm_runtime
*runtime
= rsnd_io_to_runtime(io
);
690 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
691 u32 convert_rate
= rsnd_src_convert_rate(src
);
695 ret
= rsnd_adg_set_convert_clk_gen2(mod
, rdai
, io
,
699 ret
= rsnd_adg_set_convert_timing_gen2(mod
, rdai
, io
);
704 static int rsnd_src_probe_gen2(struct rsnd_mod
*mod
,
705 struct rsnd_dai
*rdai
)
707 struct rsnd_priv
*priv
= rsnd_mod_to_priv(mod
);
708 struct rsnd_src
*src
= rsnd_mod_to_src(mod
);
709 struct device
*dev
= rsnd_priv_to_dev(priv
);
710 int irq
= src
->info
->irq
;
715 * IRQ is not supported on non-DT
717 * rsnd_src_irq_enable_gen2()
719 ret
= devm_request_irq(dev
, irq
,
720 rsnd_src_interrupt_gen2
,
724 goto rsnd_src_probe_gen2_fail
;
727 ret
= rsnd_dma_init(priv
,
728 rsnd_mod_to_dma(mod
),
729 rsnd_info_is_playback(priv
, src
),
732 goto rsnd_src_probe_gen2_fail
;
734 dev_dbg(dev
, "%s[%d] (Gen2) is probed\n",
735 rsnd_mod_name(mod
), rsnd_mod_id(mod
));
739 rsnd_src_probe_gen2_fail
:
740 dev_err(dev
, "%s[%d] (Gen2) failed\n",
741 rsnd_mod_name(mod
), rsnd_mod_id(mod
));
746 static int rsnd_src_remove_gen2(struct rsnd_mod
*mod
,
747 struct rsnd_dai
*rdai
)
749 rsnd_dma_quit(rsnd_mod_to_priv(mod
), rsnd_mod_to_dma(mod
));
754 static int rsnd_src_init_gen2(struct rsnd_mod
*mod
,
755 struct rsnd_dai
*rdai
)
759 ret
= rsnd_src_init(mod
, rdai
);
763 ret
= rsnd_src_set_convert_rate_gen2(mod
, rdai
);
767 ret
= rsnd_src_set_convert_timing_gen2(mod
, rdai
);
774 static int rsnd_src_start_gen2(struct rsnd_mod
*mod
,
775 struct rsnd_dai
*rdai
)
777 rsnd_dma_start(rsnd_mod_to_dma(mod
));
779 return _rsnd_src_start_gen2(mod
);
782 static int rsnd_src_stop_gen2(struct rsnd_mod
*mod
,
783 struct rsnd_dai
*rdai
)
787 ret
= _rsnd_src_stop_gen2(mod
);
789 rsnd_dma_stop(rsnd_mod_to_dma(mod
));
794 static struct rsnd_mod_ops rsnd_src_gen2_ops
= {
796 .probe
= rsnd_src_probe_gen2
,
797 .remove
= rsnd_src_remove_gen2
,
798 .init
= rsnd_src_init_gen2
,
799 .quit
= rsnd_src_quit
,
800 .start
= rsnd_src_start_gen2
,
801 .stop
= rsnd_src_stop_gen2
,
804 struct rsnd_mod
*rsnd_src_mod_get(struct rsnd_priv
*priv
, int id
)
806 if (WARN_ON(id
< 0 || id
>= rsnd_src_nr(priv
)))
809 return &((struct rsnd_src
*)(priv
->src
) + id
)->mod
;
812 static void rsnd_of_parse_src(struct platform_device
*pdev
,
813 const struct rsnd_of_data
*of_data
,
814 struct rsnd_priv
*priv
)
816 struct device_node
*src_node
;
817 struct device_node
*np
;
818 struct rcar_snd_info
*info
= rsnd_priv_to_info(priv
);
819 struct rsnd_src_platform_info
*src_info
;
820 struct device
*dev
= &pdev
->dev
;
826 src_node
= of_get_child_by_name(dev
->of_node
, "rcar_sound,src");
830 nr
= of_get_child_count(src_node
);
832 goto rsnd_of_parse_src_end
;
834 src_info
= devm_kzalloc(dev
,
835 sizeof(struct rsnd_src_platform_info
) * nr
,
838 dev_err(dev
, "src info allocation error\n");
839 goto rsnd_of_parse_src_end
;
842 info
->src_info
= src_info
;
843 info
->src_info_nr
= nr
;
846 for_each_child_of_node(src_node
, np
) {
847 src_info
[i
].irq
= irq_of_parse_and_map(np
, 0);
852 rsnd_of_parse_src_end
:
853 of_node_put(src_node
);
856 int rsnd_src_probe(struct platform_device
*pdev
,
857 const struct rsnd_of_data
*of_data
,
858 struct rsnd_priv
*priv
)
860 struct rcar_snd_info
*info
= rsnd_priv_to_info(priv
);
861 struct device
*dev
= rsnd_priv_to_dev(priv
);
862 struct rsnd_src
*src
;
863 struct rsnd_mod_ops
*ops
;
865 char name
[RSND_SRC_NAME_SIZE
];
869 if (rsnd_is_gen1(priv
))
870 ops
= &rsnd_src_gen1_ops
;
871 if (rsnd_is_gen2(priv
))
872 ops
= &rsnd_src_gen2_ops
;
874 dev_err(dev
, "unknown Generation\n");
878 rsnd_of_parse_src(pdev
, of_data
, priv
);
883 nr
= info
->src_info_nr
;
887 src
= devm_kzalloc(dev
, sizeof(*src
) * nr
, GFP_KERNEL
);
889 dev_err(dev
, "SRC allocate failed\n");
896 for_each_rsnd_src(src
, priv
, i
) {
897 snprintf(name
, RSND_SRC_NAME_SIZE
, "%s.%d",
900 clk
= devm_clk_get(dev
, name
);
904 src
->info
= &info
->src_info
[i
];
907 rsnd_mod_init(priv
, &src
->mod
, ops
, RSND_MOD_SRC
, i
);
909 dev_dbg(dev
, "SRC%d probed\n", i
);