* [PATCH] ASoC: max9768: Fix up review comments in max9768 driver
@ 2012-01-31 11:01 Mark Brown
2012-01-31 11:04 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2012-01-31 11:01 UTC (permalink / raw)
To: Liam Girdwood, Wolfram Sang; +Cc: alsa-devel, Mark Brown
The Mute Switch should be called Playback Switch to match the volume
and the regmap core has been updated so we don't need to mark all the
registers as non-volatile.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
sound/soc/codecs/max9768.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/sound/soc/codecs/max9768.c b/sound/soc/codecs/max9768.c
index 6348995..79e9901 100644
--- a/sound/soc/codecs/max9768.c
+++ b/sound/soc/codecs/max9768.c
@@ -115,7 +115,7 @@ static const struct snd_kcontrol_new max9768_volume[] = {
};
static const struct snd_kcontrol_new max9768_mute[] = {
- SOC_SINGLE_BOOL_EXT("Mute Switch", 0, max9768_get_gpio, max9768_set_gpio),
+ SOC_SINGLE_BOOL_EXT("Playback Switch", 0, max9768_get_gpio, max9768_set_gpio),
};
static int max9768_probe(struct snd_soc_codec *codec)
@@ -150,18 +150,12 @@ static struct snd_soc_codec_driver max9768_codec_driver = {
.num_controls = ARRAY_SIZE(max9768_volume),
};
-static bool max9768_always_false(struct device *dev, unsigned int reg)
-{
- return false;
-}
-
static const struct regmap_config max9768_i2c_regmap_config = {
.reg_bits = 2,
.val_bits = 6,
.max_register = 3,
.reg_defaults = max9768_default_regs,
.num_reg_defaults = ARRAY_SIZE(max9768_default_regs),
- .volatile_reg = max9768_always_false,
.cache_type = REGCACHE_RBTREE,
};
--
1.7.9.rc1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: max9768: Fix up review comments in max9768 driver
2012-01-31 11:01 [PATCH] ASoC: max9768: Fix up review comments in max9768 driver Mark Brown
@ 2012-01-31 11:04 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2012-01-31 11:04 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Liam Girdwood
[-- Attachment #1.1: Type: text/plain, Size: 547 bytes --]
On Tue, Jan 31, 2012 at 11:01:13AM +0000, Mark Brown wrote:
> The Mute Switch should be called Playback Switch to match the volume
> and the regmap core has been updated so we don't need to mark all the
> registers as non-volatile.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Thanks for picking this up!
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-31 11:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 11:01 [PATCH] ASoC: max9768: Fix up review comments in max9768 driver Mark Brown
2012-01-31 11:04 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).