ASoC: fsi: modify format area definition on flags
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 13 Jul 2010 09:13:19 +0000 (18:13 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Jul 2010 11:35:35 +0000 (12:35 +0100)
There is no necessity that each bit in this area has the meaning.
This patch modify it to sequence number

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/sh_fsi.h

index c0227361a876fc2f919aa9bc03276e20898b7a52..3ecdb965b890c26aa8edd93e9d062dce7c859db1 100644 (file)
 #define SH_FSI_GET_IFMT(x)     ((x >> 8) & SH_FSI_FMT_MASK)
 #define SH_FSI_GET_OFMT(x)     ((x >> 0) & SH_FSI_FMT_MASK)
 
-#define SH_FSI_FMT_MONO                (1 << 0)
-#define SH_FSI_FMT_MONO_DELAY  (1 << 1)
-#define SH_FSI_FMT_PCM         (1 << 2)
-#define SH_FSI_FMT_I2S         (1 << 3)
-#define SH_FSI_FMT_TDM         (1 << 4)
-#define SH_FSI_FMT_TDM_DELAY   (1 << 5)
+#define SH_FSI_FMT_MONO                0
+#define SH_FSI_FMT_MONO_DELAY  1
+#define SH_FSI_FMT_PCM         2
+#define SH_FSI_FMT_I2S         3
+#define SH_FSI_FMT_TDM         4
+#define SH_FSI_FMT_TDM_DELAY   5
 
 #define SH_FSI_IFMT_TDM_CH(x) \
        (SH_FSI_IFMT(TDM)       | SH_FSI_SET_CH_I(x))