Skip to contentSkip to conversation

|PATCH] ASoC: Convert wm8510 to a new-style i2c driver

PATCH Jean Delvare 3 participants 5 messages Sep 1, 2008 – Sep 2, 2008

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

Convert the wm8510 codec driver to the new (standard) device driver binding model.

Cc Geoffrey Wossum <[email protected]>
Cc Mark Brown <[email protected]>

---
Warning: this assumes that the playpaq has its codec chip on I2C bus 0, which may or may not be the case. Someone with this machine please test and report.

 sound/soc/at32/playpaq_wm8510.c |    1 
 sound/soc/codecs/wm8510.c       |  108 +++++++++++++++++++--------------------
 sound/soc/codecs/wm8510.h       |    1 
 3 files changed, 55 insertions(+), 55 deletions(-)
sound/soc/at32/playpaq_wm8510.c +1 -0
@@ -377,6 +377,7 @@ static struct snd_soc_machine snd_soc_ma
 
 
 static struct wm8510_setup_data playpaq_wm8510_setup = {
+	.i2c_bus = 0,
 	.i2c_address = 0x1a,
 };
 
sound/soc/codecs/wm8510.c +53 -55

155 lines not on this page · raw message

sound/soc/codecs/wm8510.h +1 -0
@@ -94,6 +94,7 @@
 #define WM8510_MCLKDIV_12	(7 << 5)
 
 struct wm8510_setup_data {
+	int i2c_bus;
 	unsigned short i2c_address;
 };
 
Signature · 1 line
Jean Delvare
#3 lore raw
In reply to Jean Delvare
Quoted 2 lines · Jean Delvare

Convert the wm8510 codec driver to the new (standard) device driver binding model.

Hrm. This doesn't actually apply for me, even if I apply directly against 2.6.27-rc5 - I get rejects in wm8510.c in the main conversion hunk. Any chance you could regenerated it against Takashi's tree?

Quoted 2 lines
sound/soc/at32/playpaq_wm8510.c +0 -0
#4 lore raw

Hi Mark,

Quoted 7 lines · Mark Brown
Quoted 2 lines · Jean Delvare

Convert the wm8510 codec driver to the new (standard) device driver binding model.

Hrm. This doesn't actually apply for me, even if I apply directly against 2.6.27-rc5 - I get rejects in wm8510.c in the main conversion hunk. Any chance you could regenerated it against Takashi's tree?

Sorry about that, apparently I messed up and corrupted the original source file before generating the patch. I'll start again from the correct file and will post an updated patch. I had a minor update to make anyway so I wanted to resend it.

Signature · 1 line
Jean Delvare