]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: rsnd: add missing ADINR::CHNUM on DVC/SRC/SSIU
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 30 Nov 2015 08:49:33 +0000 (08:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 30 Nov 2015 18:11:23 +0000 (18:11 +0000)
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>
sound/soc/sh/rcar/dvc.c
sound/soc/sh/rcar/src.c
sound/soc/sh/rcar/ssiu.c

index 0f61e1344431cee96ad919ebb55883519afd5e5e..c622dec2436276f7e462d864bfb59546030764cb 100644 (file)
@@ -97,11 +97,15 @@ static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io,
                                 struct rsnd_mod *mod)
 {
        struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
+       u32 adinr = 0;
        u32 dvucr = 0;
        u32 vrctr = 0;
        u32 vrpdr = 0;
        u32 vrdbr = 0;
 
+       adinr = rsnd_get_adinr_bit(mod, io) |
+               rsnd_get_adinr_chan(mod, io);
+
        /* Enable Digital Volume, Zero Cross Mute Mode */
        dvucr |= 0x101;
 
@@ -124,7 +128,7 @@ static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io,
        rsnd_mod_write(mod, DVC_DVUIR, 1);
 
        /* General Information */
-       rsnd_mod_write(mod, DVC_ADINR, rsnd_get_adinr_bit(mod, io));
+       rsnd_mod_write(mod, DVC_ADINR, adinr);
        rsnd_mod_write(mod, DVC_DVUCR, dvucr);
 
        /* Volume Ramp Parameter */
index 6d93c4ed8275b2b73bf0f8d0d1931d4354dc1821..30cad79deab08fc79cb6f15e5206e0f7d4c61148 100644 (file)
@@ -199,7 +199,8 @@ static void rsnd_src_set_convert_rate(struct rsnd_dai_stream *io,
        /*
         *      SRC_ADINR
         */
-       adinr = rsnd_get_adinr_bit(mod, io);
+       adinr = rsnd_get_adinr_bit(mod, io) |
+               rsnd_get_adinr_chan(mod, io);
 
        /*
         *      SRC_IFSCR / SRC_IFSVR
index bc245047e904dcbb6131a74e414d39cc053d978f..6120b0a66958c7cbbf8acc05e2915ce5101d7268 100644 (file)
@@ -82,7 +82,8 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod,
                u32 val = rsnd_get_dalign(mod, io);
 
                rsnd_mod_write(mod, SSI_BUSIF_ADINR,
-                              rsnd_get_adinr_bit(mod, io));
+                              rsnd_get_adinr_bit(mod, io) |
+                              rsnd_get_adinr_chan(mod, io));
                rsnd_mod_write(mod, SSI_BUSIF_MODE,  1);
                rsnd_mod_write(mod, SSI_BUSIF_DALIGN, val);
        }