Skip to contentSkip to conversation

ASoC: Multi-component - Fix tlv320aic23 hw_write/hw_read functions

PATCH In review Ryan Mallon 2 participants 2 messages Jun 27, 2010 – Jul 1, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Multi-component - Fix tlv320aic23 hw_write/hw_read functions

Commit 5ce5888769c4a453bb5a852e156ab4ac72822c40 removed the initialisations of the codec->hw_write/read functions for the tlv320aic23. Fix this by adding the initialisations in tlv320aic23_probe.

---

sound/soc/codecs/tlv320aic23.c +2 -0
index fbc95c5..fe89521 100644
@@ -637,6 +637,8 @@ static int tlv320aic23_probe(struct snd_soc_codec *codec)
 
 	printk(KERN_INFO "AIC23 Audio Codec %s\n", AIC23_VERSION);
 	codec->control_data = aic23->control_data;
+	codec->hw_write = (hw_write_t)i2c_master_send;
+	codec->hw_read = NULL;
 
 	/* Reset codec */
 	tlv320aic23_write(codec, TLV320AIC23_RESET, 0);
#1 lore raw
Quoted 6 lines · Ryan Mallon

Commit 5ce5888769c4a453bb5a852e156ab4ac72822c40 removed the initialisations of the codec->hw_write/read functions for the tlv320aic23. Fix this by adding the initialisations in tlv320aic23_probe.

---

Thanks, will apply soon.

Liam

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk