All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support
@ 2010-04-26 10:56 Vladimir Zapolskiy
  2010-04-26 11:18 ` Liam Girdwood
  2010-04-26 14:28 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Zapolskiy @ 2010-04-26 10:56 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Vladimir Zapolskiy, Liam Girdwood

This patch adds support for Philips UDA1345 CODEC. The CODEC has only
volume control, de-emphasis, mute, DC filtering and power control features.

Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
---
 include/sound/uda134x.h    |    1 +
 sound/soc/codecs/uda134x.c |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/include/sound/uda134x.h b/include/sound/uda134x.h
index 475ef8b..509efb0 100644
--- a/include/sound/uda134x.h
+++ b/include/sound/uda134x.h
@@ -21,6 +21,7 @@ struct uda134x_platform_data {
 #define UDA134X_UDA1340 1
 #define UDA134X_UDA1341 2
 #define UDA134X_UDA1344 3
+#define UDA134X_UDA1345 4
 };
 
 #endif /* _UDA134X_H */
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index 20deaca..2f4d728 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -431,6 +431,14 @@ SOC_ENUM("PCM Playback De-emphasis", uda134x_mixer_enum[1]),
 SOC_SINGLE("DC Filter Enable Switch", UDA134X_STATUS0, 0, 1, 0),
 };
 
+static const struct snd_kcontrol_new uda1345_snd_controls[] = {
+SOC_SINGLE("Master Playback Volume", UDA134X_DATA000, 0, 0x3F, 1),
+
+SOC_ENUM("PCM Playback De-emphasis", uda134x_mixer_enum[1]),
+
+SOC_SINGLE("DC Filter Enable Switch", UDA134X_STATUS0, 0, 1, 0),
+};
+
 static struct snd_soc_dai_ops uda134x_dai_ops = {
 	.startup	= uda134x_startup,
 	.shutdown	= uda134x_shutdown,
@@ -486,6 +494,7 @@ static int uda134x_soc_probe(struct platform_device *pdev)
 	case UDA134X_UDA1340:
 	case UDA134X_UDA1341:
 	case UDA134X_UDA1344:
+	case UDA134X_UDA1345:
 		break;
 	default:
 		printk(KERN_ERR "UDA134X SoC codec: "
@@ -551,6 +560,10 @@ static int uda134x_soc_probe(struct platform_device *pdev)
 		ret = snd_soc_add_controls(codec, uda1341_snd_controls,
 					ARRAY_SIZE(uda1341_snd_controls));
 	break;
+	case UDA134X_UDA1345:
+		ret = snd_soc_add_controls(codec, uda1345_snd_controls,
+					ARRAY_SIZE(uda1345_snd_controls));
+	break;
 	default:
 		printk(KERN_ERR "%s unknown codec type: %d",
 			__func__, pd->model);
-- 
1.7.0.4

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

* Re: [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support
  2010-04-26 10:56 [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support Vladimir Zapolskiy
@ 2010-04-26 11:18 ` Liam Girdwood
  2010-04-26 14:28 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2010-04-26 11:18 UTC (permalink / raw)
  To: Vladimir Zapolskiy; +Cc: alsa-devel, Mark Brown

On Mon, 2010-04-26 at 14:56 +0400, Vladimir Zapolskiy wrote:
> This patch adds support for Philips UDA1345 CODEC. The CODEC has only
> volume control, de-emphasis, mute, DC filtering and power control features.
> 
> Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Cc: Liam Girdwood <lrg@slimlogic.co.uk>

Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>

-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk

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

* Re: [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support
  2010-04-26 10:56 [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support Vladimir Zapolskiy
  2010-04-26 11:18 ` Liam Girdwood
@ 2010-04-26 14:28 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-04-26 14:28 UTC (permalink / raw)
  To: Vladimir Zapolskiy; +Cc: alsa-devel, Liam Girdwood

On Mon, Apr 26, 2010 at 02:56:57PM +0400, Vladimir Zapolskiy wrote:
> This patch adds support for Philips UDA1345 CODEC. The CODEC has only
> volume control, de-emphasis, mute, DC filtering and power control features.
> 
> Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>

Applied, thanks.

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

end of thread, other threads:[~2010-04-26 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 10:56 [PATCH] ASoC: UDA134X: Add UDA1345 CODEC support Vladimir Zapolskiy
2010-04-26 11:18 ` Liam Girdwood
2010-04-26 14:28 ` 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.