From cf29faa1eebfe1c786f4db6bf163a56b80a16769 Mon Sep 17 00:00:00 2001 From: Laxminath Kasam Date: Mon, 20 Feb 2017 22:59:38 +0530 Subject: Revert "ASoC: wsa881x: Add cache-always mode for sdm660" This reverts 'commit b3f17f8fe8f3 ("ASoC: wsa881x: Add cache-always mode for sdm660")' as wsa881x speaker mute without cache-always mode is fixed. CRs-Fixed: 2000566 Change-Id: Ia3c4f2ad5749fd32bb7426ab855c20acc378f563 Signed-off-by: Laxminath Kasam --- sound/soc/codecs/wsa881x-regmap.c | 3 --- sound/soc/codecs/wsa881x.c | 4 ---- sound/soc/codecs/wsa881x.h | 1 - 3 files changed, 8 deletions(-) (limited to 'sound/soc') diff --git a/sound/soc/codecs/wsa881x-regmap.c b/sound/soc/codecs/wsa881x-regmap.c index faa44301286c..20dc3508a5af 100644 --- a/sound/soc/codecs/wsa881x-regmap.c +++ b/sound/soc/codecs/wsa881x-regmap.c @@ -216,9 +216,6 @@ static bool wsa881x_readable_register(struct device *dev, unsigned int reg) static bool wsa881x_volatile_register(struct device *dev, unsigned int reg) { - if (cache_always) - return false; - switch (reg) { case WSA881X_CHIP_ID0: case WSA881X_CHIP_ID1: diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index ba74175dbe10..62547f25bfa1 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -78,7 +78,6 @@ enum { WSA881X_DEV_UP, }; -bool cache_always; /* * Private data Structure for wsa881x. All parameters related to * WSA881X codec needs to be defined here. @@ -1226,9 +1225,6 @@ static int wsa881x_swr_probe(struct swr_device *pdev) if (ret) goto err; } - - cache_always = of_property_read_bool(pdev->dev.of_node, - "qcom,cache-always"); wsa881x_gpio_ctrl(wsa881x, true); wsa881x->state = WSA881X_DEV_UP; diff --git a/sound/soc/codecs/wsa881x.h b/sound/soc/codecs/wsa881x.h index 178237555c54..9bd9f9587a2e 100644 --- a/sound/soc/codecs/wsa881x.h +++ b/sound/soc/codecs/wsa881x.h @@ -20,7 +20,6 @@ #define WSA881X_MAX_SWR_PORTS 4 -extern bool cache_always; extern int wsa881x_set_channel_map(struct snd_soc_codec *codec, u8 *port, u8 num_port, unsigned int *ch_mask, unsigned int *ch_rate); -- cgit v1.2.3