All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903
@ 2008-09-24 12:01 20080924115907.GA12401
  2008-09-24 12:01 ` [PATCH 2/4] ASoC: Fix build of GTA01 audio driver 20080924115907.GA12401
  2008-09-24 12:13 ` [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: 20080924115907.GA12401 @ 2008-09-24 12:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

From: Mark Brown <broonie@opensource.wolfsonmicro.com>

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm8903.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index a3f54ec..ce40d78 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -653,14 +653,14 @@ static const struct snd_kcontrol_new wm8903_snd_controls[] = {
 
 /* Input PGAs - No TLV since the scale depends on PGA mode */
 SOC_SINGLE("Left Input PGA Switch", WM8903_ANALOGUE_LEFT_INPUT_0,
-	   7, 1, 0),
+	   7, 1, 1),
 SOC_SINGLE("Left Input PGA Volume", WM8903_ANALOGUE_LEFT_INPUT_0,
 	   0, 31, 0),
 SOC_SINGLE("Left Input PGA Common Mode Switch", WM8903_ANALOGUE_LEFT_INPUT_1,
 	   6, 1, 0),
 
 SOC_SINGLE("Right Input PGA Switch", WM8903_ANALOGUE_RIGHT_INPUT_0,
-	   7, 1, 0),
+	   7, 1, 1),
 SOC_SINGLE("Right Input PGA Volume", WM8903_ANALOGUE_RIGHT_INPUT_0,
 	   0, 31, 0),
 SOC_SINGLE("Right Input PGA Common Mode Switch", WM8903_ANALOGUE_RIGHT_INPUT_1,
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] ASoC: Fix build of GTA01 audio driver
  2008-09-24 12:01 [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 20080924115907.GA12401
@ 2008-09-24 12:01 ` 20080924115907.GA12401
  2008-09-24 12:01   ` [PATCH 3/4] ASoC: Allow machine drivers to mark pins as not connected 20080924115907.GA12401
  2008-09-24 12:13 ` [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: 20080924115907.GA12401 @ 2008-09-24 12:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

From: Mark Brown <broonie@opensource.wolfsonmicro.com>

Fix a couple of thinkos introduced during the I2C API update.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/s3c24xx/neo1973_wm8753.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
index 47ddcde..48c6756 100644
--- a/sound/soc/s3c24xx/neo1973_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
@@ -649,7 +649,7 @@ static void lm4857_shutdown(struct i2c_client *dev)
 }
 
 static const struct i2c_device_id lm4857_i2c_id[] = {
-	{ "neo1973_lm4857", 0 }
+	{ "neo1973_lm4857", 0 },
 	{ }
 };
 
@@ -730,7 +730,7 @@ static int __init neo1973_init(void)
 	}
 
 	ret = neo1973_add_lm4857_device(neo1973_snd_device,
-					neo1973_wm8753_setup, 0x7C);
+					0, 0x7C);
 	if (ret != 0)
 		platform_device_unregister(neo1973_snd_device);
 
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] ASoC: Allow machine drivers to mark pins as not connected
  2008-09-24 12:01 ` [PATCH 2/4] ASoC: Fix build of GTA01 audio driver 20080924115907.GA12401
@ 2008-09-24 12:01   ` 20080924115907.GA12401
  2008-09-24 12:01     ` [PATCH 4/4] ASoC: Use snd_soc_dapm_nc_pin() in GTA01 audio driver 20080924115907.GA12401
  0 siblings, 1 reply; 5+ messages in thread
From: 20080924115907.GA12401 @ 2008-09-24 12:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

From: Mark Brown <broonie@opensource.wolfsonmicro.com>

Add a new API call snd_soc_dapm_nc_pin() which allows machine drivers to
mark pins as being permanently disabled.  At present this is identical
to snd_soc_dapm_disable_pin() except in terms of improving the internal
documentation of machine drivers that use it.  The intention is that in
future it will be extended to provide additional features such as hiding
controls that are only relevant to paths using the disconnected pin.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 include/sound/soc-dapm.h |    1 +
 sound/soc/soc-dapm.c     |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c1b26fc..ca699a3 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -240,6 +240,7 @@ int snd_soc_dapm_sys_add(struct device *dev);
 /* dapm audio pin control and status */
 int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, char *pin);
 int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin);
+int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, char *pin);
 int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, char *pin);
 int snd_soc_dapm_sync(struct snd_soc_codec *codec);
 
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index c016426..05ffba2 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1484,6 +1484,26 @@ int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin)
 EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin);
 
 /**
+ * snd_soc_dapm_nc_pin - permanently disable pin.
+ * @codec: SoC codec
+ * @pin: pin name
+ *
+ * Marks the specified pin as being not connected, disabling it along
+ * any parent or child widgets.  At present this is identical to
+ * snd_soc_dapm_disable_pin() but in future it will be extended to do
+ * additional things such as disabling controls which only affect
+ * paths through the pin.
+ *
+ * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to
+ * do any widget power switching.
+ */
+int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, char *pin)
+{
+	return snd_soc_dapm_set_pin(codec, pin, 0);
+}
+EXPORT_SYMBOL_GPL(snd_soc_dapm_nc_pin);
+
+/**
  * snd_soc_dapm_get_pin_status - get audio pin status
  * @codec: audio codec
  * @pin: audio signal pin endpoint (or start point)
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] ASoC: Use snd_soc_dapm_nc_pin() in GTA01 audio driver
  2008-09-24 12:01   ` [PATCH 3/4] ASoC: Allow machine drivers to mark pins as not connected 20080924115907.GA12401
@ 2008-09-24 12:01     ` 20080924115907.GA12401
  0 siblings, 0 replies; 5+ messages in thread
From: 20080924115907.GA12401 @ 2008-09-24 12:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

From: Mark Brown <broonie@opensource.wolfsonmicro.com>

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/s3c24xx/neo1973_wm8753.c |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
index 48c6756..41fc69c 100644
--- a/sound/soc/s3c24xx/neo1973_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
@@ -510,13 +510,12 @@ static int neo1973_wm8753_init(struct snd_soc_codec *codec)
 	DBG("Entered %s\n", __func__);
 
 	/* set up NC codec pins */
-	snd_soc_dapm_disable_pin(codec, "LOUT2");
-	snd_soc_dapm_disable_pin(codec, "ROUT2");
-	snd_soc_dapm_disable_pin(codec, "OUT3");
-	snd_soc_dapm_disable_pin(codec, "OUT4");
-	snd_soc_dapm_disable_pin(codec, "LINE1");
-	snd_soc_dapm_disable_pin(codec, "LINE2");
-
+	snd_soc_dapm_nc_pin(codec, "LOUT2");
+	snd_soc_dapm_nc_pin(codec, "ROUT2");
+	snd_soc_dapm_nc_pin(codec, "OUT3");
+	snd_soc_dapm_nc_pin(codec, "OUT4");
+	snd_soc_dapm_nc_pin(codec, "LINE1");
+	snd_soc_dapm_nc_pin(codec, "LINE2");
 
 	/* set endpoints to default mode */
 	set_scenario_endpoints(codec, NEO_AUDIO_OFF);
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903
  2008-09-24 12:01 [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 20080924115907.GA12401
  2008-09-24 12:01 ` [PATCH 2/4] ASoC: Fix build of GTA01 audio driver 20080924115907.GA12401
@ 2008-09-24 12:13 ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2008-09-24 12:13 UTC (permalink / raw)
  To: Takashi Iwai, alsa-devel

On Wed, Sep 24, 2008 at 01:01:07PM +0100, 20080924115907.GA12401@opensource.wolfsonmicro.com wrote:
> From: Mark Brown <broonie@opensource.wolfsonmicro.com>

Gah, sorry, operator error obviously.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-24 12:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-24 12:01 [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 20080924115907.GA12401
2008-09-24 12:01 ` [PATCH 2/4] ASoC: Fix build of GTA01 audio driver 20080924115907.GA12401
2008-09-24 12:01   ` [PATCH 3/4] ASoC: Allow machine drivers to mark pins as not connected 20080924115907.GA12401
2008-09-24 12:01     ` [PATCH 4/4] ASoC: Use snd_soc_dapm_nc_pin() in GTA01 audio driver 20080924115907.GA12401
2008-09-24 12:13 ` [PATCH 1/4] ASoC: Fix inverted input PGA mute bits in WM8903 Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.