]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ASoC: rsnd: SSI/SSIU use rsnd_get_slot_extend() to check TDM
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 17 Dec 2015 02:56:50 +0000 (02:56 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 18 Dec 2015 12:10:56 +0000 (12:10 +0000)
Current SSI/SSIU are using rsnd_get_slot_runtime() to check TDM,
but using rsnd_get_slot_extend() is more sane.
This patch fix it up

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/ssi.c
sound/soc/sh/rcar/ssiu.c

index 79c3211a1e7f75aa8ee55b96e78c39211b5815eb..7481bc3e0dff7b4350e61510cc8e41d2ff32ad10 100644 (file)
@@ -267,7 +267,7 @@ static int rsnd_ssi_config_init(struct rsnd_ssi *ssi,
        u32 wsr;
        int is_tdm;
 
-       is_tdm = (rsnd_get_slot_runtime(io) >= 6) ? 1 : 0;
+       is_tdm = (rsnd_get_slot_extend(io) >= 6) ? 1 : 0;
 
        /*
         * always use 32bit system word.
index 326550114299e16908beb6cfa148687868a2a901..c7f89beff44ff528fc2c2536a7f4438185b2243d 100644 (file)
@@ -78,7 +78,7 @@ static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod,
        if (ret < 0)
                return ret;
 
-       if (rsnd_get_slot_runtime(io) >= 6) {
+       if (rsnd_get_slot_extend(io) >= 6) {
                /*
                 * TDM Extend Mode
                 * see