aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-11-30 03:49:33 -0500
committerMark Brown <broonie@kernel.org>2015-11-30 13:11:23 -0500
commitc45f7263a805e1c5d8579569884d32141330589f (patch)
treeb098f224e32326dde053f4585b544e68482a1dcf /sound/soc/sh
parent94458364304161551906d276f0164efd3dc30576 (diff)
ASoC: rsnd: add missing ADINR::CHNUM on DVC/SRC/SSIU
DVC/SRC/SSIU needs ADINR::CHNUM settings too. This patch adds these missing value. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/rcar/dvc.c6
-rw-r--r--sound/soc/sh/rcar/src.c3
-rw-r--r--sound/soc/sh/rcar/ssiu.c3
3 files changed, 9 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/dvc.c b/sound/soc/sh/rcar/dvc.c
index 0f61e1344431..c622dec24362 100644
--- a/sound/soc/sh/rcar/dvc.c
+++ b/sound/soc/sh/rcar/dvc.c
@@ -97,11 +97,15 @@ static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io,
97 struct rsnd_mod *mod) 97 struct rsnd_mod *mod)
98{ 98{
99 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); 99 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
100 u32 adinr = 0;
100 u32 dvucr = 0; 101 u32 dvucr = 0;
101 u32 vrctr = 0; 102 u32 vrctr = 0;
102 u32 vrpdr = 0; 103 u32 vrpdr = 0;
103 u32 vrdbr = 0; 104 u32 vrdbr = 0;
104 105
106 adinr = rsnd_get_adinr_bit(mod, io) |
107 rsnd_get_adinr_chan(mod, io);
108
105 /* Enable Digital Volume, Zero Cross Mute Mode */ 109 /* Enable Digital Volume, Zero Cross Mute Mode */
106 dvucr |= 0x101; 110 dvucr |= 0x101;
107 111
@@ -124,7 +128,7 @@ static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io,
124 rsnd_mod_write(mod, DVC_DVUIR, 1); 128 rsnd_mod_write(mod, DVC_DVUIR, 1);
125 129
126 /* General Information */ 130 /* General Information */
127 rsnd_mod_write(mod, DVC_ADINR, rsnd_get_adinr_bit(mod, io)); 131 rsnd_mod_write(mod, DVC_ADINR, adinr);
128 rsnd_mod_write(mod, DVC_DVUCR, dvucr); 132 rsnd_mod_write(mod, DVC_DVUCR, dvucr);
129 133
130 /* Volume Ramp Parameter */ 134 /* Volume Ramp Parameter */
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c
index 6d93c4ed8275..30cad79deab0 100644
--- a/sound/soc/sh/rcar/src.c
+++ b/sound/soc/sh/rcar/src.c
@@ -199,7 +199,8 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
199 /* 199 /*
200 * SRC_ADINR 200 * SRC_ADINR
201 */ 201 */
202 adinr = rsnd_get_adinr_bit(mod, io); 202 adinr = rsnd_get_adinr_bit(mod, io) |
203 rsnd_get_adinr_chan(mod, io);
203 204
204 /* 205 /*
205 * SRC_IFSCR / SRC_IFSVR 206 * SRC_IFSCR / SRC_IFSVR
diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c
index bc245047e904..6120b0a66958 100644
--- a/sound/soc/sh/rcar/ssiu.c
+++ b/sound/soc/sh/rcar/ssiu.c
@@ -82,7 +82,8 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod,
82 u32 val = rsnd_get_dalign(mod, io); 82 u32 val = rsnd_get_dalign(mod, io);
83 83
84 rsnd_mod_write(mod, SSI_BUSIF_ADINR, 84 rsnd_mod_write(mod, SSI_BUSIF_ADINR,
85 rsnd_get_adinr_bit(mod, io)); 85 rsnd_get_adinr_bit(mod, io) |
86 rsnd_get_adinr_chan(mod, io));
86 rsnd_mod_write(mod, SSI_BUSIF_MODE, 1); 87 rsnd_mod_write(mod, SSI_BUSIF_MODE, 1);
87 rsnd_mod_write(mod, SSI_BUSIF_DALIGN, val); 88 rsnd_mod_write(mod, SSI_BUSIF_DALIGN, val);
88 } 89 }