aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/arizona.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-02-20 17:28:41 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-04 11:01:01 +0800
commitf3f1163d19ebd5aa374e5df5372a8f932f2bd5f9 (patch)
tree6dd729aa935c5f62c38ccc6b2299002961fe7a80 /sound/soc/codecs/arizona.c
parentee929a9780605f21ad67a1ccb626baa41e038c1a (diff)
ASoC: arizona: Add convience define for clearing SYNCCLK
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r--sound/soc/codecs/arizona.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 2bebfae3485..6837863b582 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -1185,7 +1185,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
int ret;
if (fll->ref_src < 0 || fll->ref_src == source) {
- if (fll->sync_src == -1 &&
+ if (fll->sync_src == ARIZONA_FLL_SRC_NONE &&
fll->ref_src == source && fll->ref_freq == Fref &&
fll->fout == Fout)
return 0;
@@ -1196,7 +1196,7 @@ int arizona_set_fll(struct arizona_fll *fll, int source,
return ret;
}
- fll->sync_src = -1;
+ fll->sync_src = ARIZONA_FLL_SRC_NONE;
fll->ref_src = source;
fll->ref_freq = Fref;
} else {
@@ -1240,7 +1240,7 @@ int arizona_init_fll(struct arizona *arizona, int id, int base, int lock_irq,
fll->id = id;
fll->base = base;
fll->arizona = arizona;
- fll->sync_src = -1;
+ fll->sync_src = ARIZONA_FLL_SRC_NONE;
/* Configure default refclk to 32kHz if we have one */
regmap_read(arizona->regmap, ARIZONA_CLOCK_32K_1, &val);
@@ -1250,7 +1250,7 @@ int arizona_init_fll(struct arizona *arizona, int id, int base, int lock_irq,
fll->ref_src = val & ARIZONA_CLK_32K_SRC_MASK;
break;
default:
- fll->ref_src = -1;
+ fll->ref_src = ARIZONA_FLL_SRC_NONE;
}
fll->ref_freq = 32768;