Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC updates
@ 2008-12-05 16:53 Mark Brown
  2008-12-05 17:09 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2008-12-05 16:53 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

The following changes since commit 32c8dabc97d436582298ebd0e33af041c69f5a4b:
  Mark Brown (1):
        ASoC: Remove obsolete declaration of struct snd_soc_clock_info

are available in the git repository at:

  git://opensource.wolfsonmicro.com/linux-2.6-asoc for-tiwai

Daniel Mack (1):
      ASoC: tlv320aic3x: control additions and cleanups

Grazvydas Ignotas (1):
      ASoC: Add support for OMAP3 Pandora

 sound/soc/codecs/tlv320aic3x.c |   18 ++-
 sound/soc/omap/Kconfig         |    8 +
 sound/soc/omap/Makefile        |    2 +
 sound/soc/omap/omap3pandora.c  |  311 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 334 insertions(+), 5 deletions(-)
 create mode 100644 sound/soc/omap/omap3pandora.c

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

* Re: [PATCH 0/2] ASoC updates
  2008-12-05 16:53 Mark Brown
@ 2008-12-05 17:09 ` Takashi Iwai
  0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2008-12-05 17:09 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Fri, 5 Dec 2008 16:53:42 +0000,
Mark Brown wrote:
> 
> The following changes since commit 32c8dabc97d436582298ebd0e33af041c69f5a4b:
>   Mark Brown (1):
>         ASoC: Remove obsolete declaration of struct snd_soc_clock_info
> 
> are available in the git repository at:
> 
>   git://opensource.wolfsonmicro.com/linux-2.6-asoc for-tiwai

Thanks, pulled now.


Takashi

> 
> Daniel Mack (1):
>       ASoC: tlv320aic3x: control additions and cleanups
> 
> Grazvydas Ignotas (1):
>       ASoC: Add support for OMAP3 Pandora
> 
>  sound/soc/codecs/tlv320aic3x.c |   18 ++-
>  sound/soc/omap/Kconfig         |    8 +
>  sound/soc/omap/Makefile        |    2 +
>  sound/soc/omap/omap3pandora.c  |  311 ++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 334 insertions(+), 5 deletions(-)
>  create mode 100644 sound/soc/omap/omap3pandora.c
> 

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

* [PATCH 0/2] ASoC updates
@ 2008-12-11 16:17 Mark Brown
  2008-12-11 16:18 ` [PATCH 1/2] ASoC: Fix variable name for Blackfin I2S DAI Mark Brown
  2008-12-11 16:30 ` [PATCH 0/2] ASoC updates Takashi Iwai
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Brown @ 2008-12-11 16:17 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

The following changes since commit 6de45d5d776d2a7e7a9adc8ea49d37fe1bd45fb2:
  Takashi Iwai (1):
        ALSA: ASoC - Fix DAI registration in s3c2443-ac97.c

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git for-tiwai

Mark Brown (1):
      ASoC: Fix variable name for Blackfin I2S DAI

Stanley.Miao (1):
      ASoC: TWL4030: hands-free start-up sequence.

 sound/soc/blackfin/bf5xx-i2s.c |    4 ++--
 sound/soc/codecs/twl4030.c     |   34 ++++++++++++++++++++++++++++++----
 sound/soc/codecs/twl4030.h     |    6 ++++++
 3 files changed, 38 insertions(+), 6 deletions(-)

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

* [PATCH 1/2] ASoC: Fix variable name for Blackfin I2S DAI
  2008-12-11 16:17 [PATCH 0/2] ASoC updates Mark Brown
@ 2008-12-11 16:18 ` Mark Brown
  2008-12-11 16:19   ` [PATCH 2/2] ASoC: TWL4030: hands-free start-up sequence Mark Brown
  2008-12-11 16:30 ` [PATCH 0/2] ASoC updates Takashi Iwai
  1 sibling, 1 reply; 6+ messages in thread
From: Mark Brown @ 2008-12-11 16:18 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

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

diff --git a/sound/soc/blackfin/bf5xx-i2s.c b/sound/soc/blackfin/bf5xx-i2s.c
index c17b131..d1d95d2 100644
--- a/sound/soc/blackfin/bf5xx-i2s.c
+++ b/sound/soc/blackfin/bf5xx-i2s.c
@@ -315,13 +315,13 @@ EXPORT_SYMBOL_GPL(bf5xx_i2s_dai);
 
 static int __init bfin_i2s_init(void)
 {
-	return snd_soc_register_dai(&bfin_i2s_dai);
+	return snd_soc_register_dai(&bf5xx_i2s_dai);
 }
 module_init(bfin_i2s_init);
 
 static void __exit bfin_i2s_exit(void)
 {
-	snd_soc_unregister_dai(&bfin_i2s_dai);
+	snd_soc_unregister_dai(&bf5xx_i2s_dai);
 }
 module_exit(bfin_i2s_exit);
 
-- 
1.5.6.5

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

* [PATCH 2/2] ASoC: TWL4030: hands-free start-up sequence.
  2008-12-11 16:18 ` [PATCH 1/2] ASoC: Fix variable name for Blackfin I2S DAI Mark Brown
@ 2008-12-11 16:19   ` Mark Brown
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2008-12-11 16:19 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Stanley.Miao, alsa-devel, Mark Brown

From: Stanley.Miao <stanley.miao@windriver.com>

A special start-up sequence is required to reduce the pop-noise of Class D
amplifier when enable hands-free on TWL4030.

Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/twl4030.c |   34 ++++++++++++++++++++++++++++++----
 sound/soc/codecs/twl4030.h |    6 ++++++
 2 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 1377302..5184888 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -322,6 +322,30 @@ static int outmixer_event(struct snd_soc_dapm_widget *w,
 	return ret;
 }
 
+static int handsfree_event(struct snd_soc_dapm_widget *w,
+		struct snd_kcontrol *kcontrol, int event)
+{
+	struct soc_enum *e = (struct soc_enum *)w->kcontrols->private_value;
+	unsigned char hs_ctl;
+
+	hs_ctl = twl4030_read_reg_cache(w->codec, e->reg);
+
+	if (hs_ctl & TWL4030_HF_CTL_REF_EN) {
+		hs_ctl |= TWL4030_HF_CTL_RAMP_EN;
+		twl4030_write(w->codec, e->reg, hs_ctl);
+		hs_ctl |= TWL4030_HF_CTL_LOOP_EN;
+		twl4030_write(w->codec, e->reg, hs_ctl);
+		hs_ctl |= TWL4030_HF_CTL_HB_EN;
+		twl4030_write(w->codec, e->reg, hs_ctl);
+	} else {
+		hs_ctl &= ~(TWL4030_HF_CTL_RAMP_EN | TWL4030_HF_CTL_LOOP_EN
+				| TWL4030_HF_CTL_HB_EN);
+		twl4030_write(w->codec, e->reg, hs_ctl);
+	}
+
+	return 0;
+}
+
 /*
  * Some of the gain controls in TWL (mostly those which are associated with
  * the outputs) are implemented in an interesting way:
@@ -806,10 +830,12 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	SND_SOC_DAPM_MUX("CarkitR Mux", SND_SOC_NOPM, 0, 0,
 		&twl4030_dapm_carkitr_control),
 	/* HandsfreeL/R */
-	SND_SOC_DAPM_MUX("HandsfreeL Mux", TWL4030_REG_HFL_CTL, 5, 0,
-		&twl4030_dapm_handsfreel_control),
-	SND_SOC_DAPM_MUX("HandsfreeR Mux", TWL4030_REG_HFR_CTL, 5, 0,
-		&twl4030_dapm_handsfreer_control),
+	SND_SOC_DAPM_MUX_E("HandsfreeL Mux", TWL4030_REG_HFL_CTL, 5, 0,
+		&twl4030_dapm_handsfreel_control, handsfree_event,
+		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD),
+	SND_SOC_DAPM_MUX_E("HandsfreeR Mux", TWL4030_REG_HFR_CTL, 5, 0,
+		&twl4030_dapm_handsfreer_control, handsfree_event,
+		SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD),
 
 	SND_SOC_DAPM_ADC("ADCL", "Left Capture", SND_SOC_NOPM, 0, 0),
 	SND_SOC_DAPM_ADC("ADCR", "Right Capture", SND_SOC_NOPM, 0, 0),
diff --git a/sound/soc/codecs/twl4030.h b/sound/soc/codecs/twl4030.h
index a2065d4..54615c7 100644
--- a/sound/soc/codecs/twl4030.h
+++ b/sound/soc/codecs/twl4030.h
@@ -191,6 +191,12 @@
 #define TWL4030_RAMP_DELAY_2581MS	0x1C
 #define TWL4030_RAMP_EN			0x02
 
+/* HFL_CTL (0x29, 0x2A) Fields */
+#define TWL4030_HF_CTL_HB_EN		0x04
+#define TWL4030_HF_CTL_LOOP_EN		0x08
+#define TWL4030_HF_CTL_RAMP_EN		0x10
+#define TWL4030_HF_CTL_REF_EN		0x20
+
 /* APLL_CTL (0x3A) Fields */
 
 #define TWL4030_APLL_EN			0x10
-- 
1.5.6.5

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

* Re: [PATCH 0/2] ASoC updates
  2008-12-11 16:17 [PATCH 0/2] ASoC updates Mark Brown
  2008-12-11 16:18 ` [PATCH 1/2] ASoC: Fix variable name for Blackfin I2S DAI Mark Brown
@ 2008-12-11 16:30 ` Takashi Iwai
  1 sibling, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2008-12-11 16:30 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Thu, 11 Dec 2008 16:17:52 +0000,
Mark Brown wrote:
> 
> The following changes since commit 6de45d5d776d2a7e7a9adc8ea49d37fe1bd45fb2:
>   Takashi Iwai (1):
>         ALSA: ASoC - Fix DAI registration in s3c2443-ac97.c
> 
> are available in the git repository at:
> 
>   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git for-tiwai

Pulled now.  Thanks.


Takashi

> Mark Brown (1):
>       ASoC: Fix variable name for Blackfin I2S DAI
> 
> Stanley.Miao (1):
>       ASoC: TWL4030: hands-free start-up sequence.
> 
>  sound/soc/blackfin/bf5xx-i2s.c |    4 ++--
>  sound/soc/codecs/twl4030.c     |   34 ++++++++++++++++++++++++++++++----
>  sound/soc/codecs/twl4030.h     |    6 ++++++
>  3 files changed, 38 insertions(+), 6 deletions(-)
> 

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

end of thread, other threads:[~2008-12-11 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 16:17 [PATCH 0/2] ASoC updates Mark Brown
2008-12-11 16:18 ` [PATCH 1/2] ASoC: Fix variable name for Blackfin I2S DAI Mark Brown
2008-12-11 16:19   ` [PATCH 2/2] ASoC: TWL4030: hands-free start-up sequence Mark Brown
2008-12-11 16:30 ` [PATCH 0/2] ASoC updates Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2008-12-05 16:53 Mark Brown
2008-12-05 17:09 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox