Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: Fix TLV320AIC3X PLL divider table for 64 kHz rate
@ 2008-02-26 11:42 Mark Brown
  2008-02-26 11:42 ` [PATCH 2/3] ASoC: Add support for 12 MHz MCLK in TLV320AIC3X Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2008-02-26 11:42 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown, Jarkko Nikula

From: Jarkko Nikula <jarkko.nikula@nokia.com>

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

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 710e028..569ecac 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -681,8 +681,8 @@ static const struct aic3x_rate_divs aic3x_divs[] = {
 	{22579200, 48000, 48000, 0x0, 8, 7075},
 	{33868800, 48000, 48000, 0x0, 5, 8049},
 	/* 64k */
-	{22579200, 96000, 96000, 0x1, 8, 7075},
-	{33868800, 96000, 96000, 0x1, 5, 8049},
+	{22579200, 64000, 96000, 0x1, 8, 7075},
+	{33868800, 64000, 96000, 0x1, 5, 8049},
 	/* 88.2k */
 	{22579200, 88200, 88200, 0x0, 8, 0},
 	{33868800, 88200, 88200, 0x0, 5, 3333},
-- 
1.5.4.3

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

* [PATCH 2/3] ASoC: Add support for 12 MHz MCLK in TLV320AIC3X
  2008-02-26 11:42 [PATCH 1/3] ASoC: Fix TLV320AIC3X PLL divider table for 64 kHz rate Mark Brown
@ 2008-02-26 11:42 ` Mark Brown
  2008-02-26 11:42   ` [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint() Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2008-02-26 11:42 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown, Jarkko Nikula

From: Jarkko Nikula <jarkko.nikula@nokia.com>

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/tlv320aic3x.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 569ecac..fc63a93 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -660,33 +660,43 @@ struct aic3x_rate_divs {
 /* AIC3X codec mclk clock divider coefficients */
 static const struct aic3x_rate_divs aic3x_divs[] = {
 	/* 8k */
+	{12000000, 8000, 48000, 0xa, 16, 3840},
 	{22579200, 8000, 48000, 0xa, 8, 7075},
 	{33868800, 8000, 48000, 0xa, 5, 8049},
 	/* 11.025k */
+	{12000000, 11025, 44100, 0x6, 15, 528},
 	{22579200, 11025, 44100, 0x6, 8, 0},
 	{33868800, 11025, 44100, 0x6, 5, 3333},
 	/* 16k */
+	{12000000, 16000, 48000, 0x4, 16, 3840},
 	{22579200, 16000, 48000, 0x4, 8, 7075},
 	{33868800, 16000, 48000, 0x4, 5, 8049},
 	/* 22.05k */
+	{12000000, 22050, 44100, 0x2, 15, 528},
 	{22579200, 22050, 44100, 0x2, 8, 0},
 	{33868800, 22050, 44100, 0x2, 5, 3333},
 	/* 32k */
+	{12000000, 32000, 48000, 0x1, 16, 3840},
 	{22579200, 32000, 48000, 0x1, 8, 7075},
 	{33868800, 32000, 48000, 0x1, 5, 8049},
 	/* 44.1k */
+	{12000000, 44100, 44100, 0x0, 15, 528},
 	{22579200, 44100, 44100, 0x0, 8, 0},
 	{33868800, 44100, 44100, 0x0, 5, 3333},
 	/* 48k */
+	{12000000, 48000, 48000, 0x0, 16, 3840},
 	{22579200, 48000, 48000, 0x0, 8, 7075},
 	{33868800, 48000, 48000, 0x0, 5, 8049},
 	/* 64k */
+	{12000000, 64000, 96000, 0x1, 16, 3840},
 	{22579200, 64000, 96000, 0x1, 8, 7075},
 	{33868800, 64000, 96000, 0x1, 5, 8049},
 	/* 88.2k */
+	{12000000, 88200, 88200, 0x0, 15, 528},
 	{22579200, 88200, 88200, 0x0, 8, 0},
 	{33868800, 88200, 88200, 0x0, 5, 3333},
 	/* 96k */
+	{12000000, 96000, 96000, 0x0, 16, 3840},
 	{22579200, 96000, 96000, 0x0, 8, 7075},
 	{33868800, 96000, 96000, 0x0, 5, 8049},
 };
@@ -807,6 +817,7 @@ static int aic3x_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai,
 	struct aic3x_priv *aic3x = codec->private_data;
 
 	switch (freq) {
+	case 12000000:
 	case 22579200:
 	case 33868800:
 		aic3x->sysclk = freq;
-- 
1.5.4.3

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

* [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint()
  2008-02-26 11:42 ` [PATCH 2/3] ASoC: Add support for 12 MHz MCLK in TLV320AIC3X Mark Brown
@ 2008-02-26 11:42   ` Mark Brown
  2008-02-26 14:03     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2008-02-26 11:42 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown

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

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 620d7ea..abac684 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1334,10 +1334,11 @@ int snd_soc_dapm_set_endpoint(struct snd_soc_codec *codec,
 	list_for_each_entry(w, &codec->dapm_widgets, list) {
 		if (!strcmp(w->name, endpoint)) {
 			w->connected = status;
+			return 0;
 		}
 	}
 
-	return 0;
+	return -ENODEV;
 }
 EXPORT_SYMBOL_GPL(snd_soc_dapm_set_endpoint);
 
-- 
1.5.4.3

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

* Re: [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint()
  2008-02-26 11:42   ` [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint() Mark Brown
@ 2008-02-26 14:03     ` Takashi Iwai
  2008-02-26 14:26       ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2008-02-26 14:03 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel

At Tue, 26 Feb 2008 11:42:55 +0000,
Mark Brown wrote:
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Applied to HG tree.  Thanks.
Other two patches were alredy on HG tree.
Should these be pushed to 2.6.25?


Takashi

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

* Re: [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint()
  2008-02-26 14:03     ` Takashi Iwai
@ 2008-02-26 14:26       ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2008-02-26 14:26 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On Tue, Feb 26, 2008 at 03:03:51PM +0100, Takashi Iwai wrote:

> Applied to HG tree.  Thanks.
> Other two patches were alredy on HG tree.
> Should these be pushed to 2.6.25?

At least

   ASoC: Fix TLV320AIC3X PLL divider table for 64 kHz rate

ought to go upstream since it's a bug fix.  The other two should be safe
and worthwhile but it depends on your approach to -rc.

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

end of thread, other threads:[~2008-02-26 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26 11:42 [PATCH 1/3] ASoC: Fix TLV320AIC3X PLL divider table for 64 kHz rate Mark Brown
2008-02-26 11:42 ` [PATCH 2/3] ASoC: Add support for 12 MHz MCLK in TLV320AIC3X Mark Brown
2008-02-26 11:42   ` [PATCH 3/3] Report errors from snd_soc_dapm_set_endpoint() Mark Brown
2008-02-26 14:03     ` Takashi Iwai
2008-02-26 14:26       ` Mark Brown

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