Skip to contentSkip to conversation

ASoC: jz4740: Convert qi_lb60 to use snd_soc_register_card()

PATCH Superseded Axel Lin 1 participant 1 message Dec 24, 2011

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: jz4740: Convert qi_lb60 to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

---
 arch/mips/jz4740/board-qi_lb60.c |    6 ++++
 sound/soc/jz4740/qi_lb60.c       |   57 ++++++++++++++++++--------------------
 2 files changed, 33 insertions(+), 30 deletions(-)
arch/mips/jz4740/board-qi_lb60.c +6 -0
index 639e3ce..9a91fe9 100644
@@ -418,6 +418,11 @@ static struct platform_device qi_lb60_charger_device = {
 	},
 };
 
+/* audio */
+static struct platform_device qi_lb60_audio_device = {
+	.name = "qi-lb60-audio",
+	.id = -1,
+};
 
 static struct platform_device *jz_platform_devices[] __initdata = {
 	&jz4740_udc_device,
@@ -434,6 +439,7 @@ static struct platform_device *jz_platform_devices[] __initdata = {
 	&qi_lb60_gpio_keys,
 	&qi_lb60_pwm_beeper,
 	&qi_lb60_charger_device,
+	&qi_lb60_audio_device,
 };
 
 static void __init board_gpio_setup(void)
sound/soc/jz4740/qi_lb60.c +27 -30

83 lines not on this page · raw message

Signature · 1 line
1.7.5.4