Skip to content

Commit 78edead

Browse files
morimotobroonie
authored andcommitted
ASoC: rsnd: tidyup SRC position on each code
This is cleanup for CTU/MIX support Signed-off-by: Kuninori Morimoto <[email protected]> Tested-by: Keita Kobayashi <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5cbbadd commit 78edead

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

sound/soc/sh/rcar/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
snd-soc-rcar-objs := core.o gen.o dma.o src.o adg.o ssi.o dvc.o
1+
snd-soc-rcar-objs := core.o gen.o dma.o adg.o ssi.o src.o dvc.o
22
obj-$(CONFIG_SND_SOC_RCAR) += snd-soc-rcar.o
33

44
snd-soc-rsrc-card-objs := rsrc-card.o

sound/soc/sh/rcar/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,13 +641,13 @@ static int rsnd_path_init(struct rsnd_priv *priv,
641641
* using fixed path.
642642
*/
643643

644-
/* SRC */
645-
ret = rsnd_path_add(priv, io, src);
644+
/* SSI */
645+
ret = rsnd_path_add(priv, io, ssi);
646646
if (ret < 0)
647647
return ret;
648648

649-
/* SSI */
650-
ret = rsnd_path_add(priv, io, ssi);
649+
/* SRC */
650+
ret = rsnd_path_add(priv, io, src);
651651
if (ret < 0)
652652
return ret;
653653

sound/soc/sh/rcar/rsnd.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,6 @@ struct rsnd_priv {
440440
*/
441441
void *gen;
442442

443-
/*
444-
* below value will be filled on rsnd_src_probe()
445-
*/
446-
void *src;
447-
int src_nr;
448-
449443
/*
450444
* below value will be filled on rsnd_adg_probe()
451445
*/
@@ -462,6 +456,12 @@ struct rsnd_priv {
462456
void *ssi;
463457
int ssi_nr;
464458

459+
/*
460+
* below value will be filled on rsnd_src_probe()
461+
*/
462+
void *src;
463+
int src_nr;
464+
465465
/*
466466
* below value will be filled on rsnd_dvc_probe()
467467
*/
@@ -534,6 +534,19 @@ int rsnd_kctrl_new_e(struct rsnd_mod *mod,
534534
const char * const *texts,
535535
u32 max);
536536

537+
/*
538+
* R-Car SSI
539+
*/
540+
int rsnd_ssi_probe(struct platform_device *pdev,
541+
const struct rsnd_of_data *of_data,
542+
struct rsnd_priv *priv);
543+
void rsnd_ssi_remove(struct platform_device *pdev,
544+
struct rsnd_priv *priv);
545+
struct rsnd_mod *rsnd_ssi_mod_get(struct rsnd_priv *priv, int id);
546+
int rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod);
547+
int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod);
548+
int rsnd_ssi_use_busif(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
549+
537550
/*
538551
* R-Car SRC
539552
*/
@@ -554,19 +567,6 @@ int rsnd_src_ssiu_stop(struct rsnd_mod *ssi_mod,
554567
int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod);
555568
int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod);
556569

557-
/*
558-
* R-Car SSI
559-
*/
560-
int rsnd_ssi_probe(struct platform_device *pdev,
561-
const struct rsnd_of_data *of_data,
562-
struct rsnd_priv *priv);
563-
void rsnd_ssi_remove(struct platform_device *pdev,
564-
struct rsnd_priv *priv);
565-
struct rsnd_mod *rsnd_ssi_mod_get(struct rsnd_priv *priv, int id);
566-
int rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod);
567-
int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod);
568-
int rsnd_ssi_use_busif(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
569-
570570
/*
571571
* R-Car DVC
572572
*/

0 commit comments

Comments
 (0)