Skip to contentSkip to conversation

Driver for TI/BB PCM3006 codec

DISCUSSION Mark Brown 1 participant 1 message Jan 8, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Mark Brown

author
#1 lore raw
Quoted 3 lines · Davide Rizzo

This patch implements the driver for the TI (ex Burr-Brown) PCM3006 codec

This looks good but needs a refresh against the current ASoC code - there have been some API changes around codec registration for 2.6.29. You should make this a platform driver, then register the codec and DAIs with the ASoC core when that driver is probed.

Current code is in the topic/asoc branc of:

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

A few other comments below.

Review config SND_SOC_CS4270_VD33_ERRATA · line 66

Quoted 10 lines

+++ linux-2.6.28.elpa/sound/soc/codecs/Kconfig 2009-01-04
08:58:40.000000000 +0100

(quoted diff) +4 -0
@@ -60,6 +60,10 @@ config SND_SOC_CS4270_VD33_ERRATA
 	bool
 	depends on SND_SOC_CS4270
 
+config SND_SOC_PCM3006
+	tristate
+	depends on SND_SOC
+

The depends isn't needed and this should also be added to SND_SOC_ALL_CODECS.

Review config SND_SOC_CS4270_VD33_ERRATA

Quoted 6 lines
(quoted diff) +5 -0
+/*
+ * pcm3006.c  --  ALSA Soc PCM3006 codec support
+ *
 
+ *  Revision history
+ *    25th Apr 2008   Initial version.

Please drop the changelog from the code - git will keep track of this.

Review

Quoted 11 lines
(quoted diff) +11 -0
+static unsigned int pcm3006_read(struct snd_soc_codec *codec,
+	unsigned int reg)
+{
+	return 0;
+}
+
+static int pcm3006_write(struct snd_soc_codec *codec, unsigned int reg,
+	unsigned int val)
+{
+	return 0;
+}

Just remove these if the codec doesn't have any registers, they are only needed if that is the case.

Review line 3

Quoted 5 lines

12:30:42.000000000 +0200

(quoted diff) +3 -0
@@ -0,0 +1,19 @@
+/*
+ * linux/sound/codecs/i2s.h -- ALSA SoC Layer
+ *

Looks like bitrot here...