summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-18 15:17:14 +0200
committerMark Brown <broonie@linaro.org>2013-10-18 15:17:14 +0200
commit2a5e9dab9acfb76cf0a4f96a9a17dc6eab2e472b (patch)
tree597933dc20456219f38173b640a8a07e83c2f1b8 /sound/soc
parentMerge remote-tracking branch 'asoc/fix/pcm1792a' into asoc-linus (diff)
parentASoC: rcar: fixup generation checker (diff)
downloadlinux-2a5e9dab9acfb76cf0a4f96a9a17dc6eab2e472b.tar.xz
linux-2a5e9dab9acfb76cf0a4f96a9a17dc6eab2e472b.zip
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/sh/rcar/rsnd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index 9cc6986a8cfb..5dd87f4c919e 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -220,8 +220,8 @@ int rsnd_gen_path_exit(struct rsnd_priv *priv,
void __iomem *rsnd_gen_reg_get(struct rsnd_priv *priv,
struct rsnd_mod *mod,
enum rsnd_reg reg);
-#define rsnd_is_gen1(s) ((s)->info->flags & RSND_GEN1)
-#define rsnd_is_gen2(s) ((s)->info->flags & RSND_GEN2)
+#define rsnd_is_gen1(s) (((s)->info->flags & RSND_GEN_MASK) == RSND_GEN1)
+#define rsnd_is_gen2(s) (((s)->info->flags & RSND_GEN_MASK) == RSND_GEN2)
/*
* R-Car ADG