ASoC: Convert pxa machine drivers to use use snd_soc_register_card()
Subsystems (5)
cover ASoC: Convert pxa machine drivers to use use snd_soc_register_card()
This serial converts some pxa machine drivers to use use snd_soc_register_card().
Note: I don't have these hardware, so I appreciate if someone can test these patches.
Axel Lin (5):
ASoC: pxa: Convert e740_wm9705 to use snd_soc_register_card()
ASoC: pxa: Convert e750_wm9705 to use snd_soc_register_card()
ASoC: pxa: Convert e800_wm9712 to use snd_soc_register_card()
ASoC: pxa: Convert imote2 to use snd_soc_register_card()
ASoC: pxa: Convert tosa to use snd_soc_register_card()
arch/arm/mach-pxa/eseries.c | 18 +++++++++ arch/arm/mach-pxa/stargate2.c | 6 +++ arch/arm/mach-pxa/tosa.c | 6 +++ sound/soc/pxa/e740_wm9705.c | 75 +++++++++++++++++----------------------- sound/soc/pxa/e750_wm9705.c | 66 ++++++++++++++++------------------ sound/soc/pxa/e800_wm9712.c | 66 ++++++++++++++++------------------ sound/soc/pxa/imote2.c | 41 +++++++++++++--------- sound/soc/pxa/tosa.c | 77 ++++++++++++++++------------------------- 8 files changed, 178 insertions(+), 177 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/5 ASoC: pxa: Convert e740_wm9705 to use snd_soc_register_card()
Use snd_soc_register_card() instead of creating a "soc-audio" platform device.
--- arch/arm/mach-pxa/eseries.c | 6 +++ sound/soc/pxa/e740_wm9705.c | 75 ++++++++++++++++++------------------------ 2 files changed, 38 insertions(+), 43 deletions(-)
arch/arm/mach-pxa/eseries.c +6 -0
@@ -528,12 +528,18 @@ static struct platform_device e740_t7l66xb_device = { .resource = eseries_tmio_resources, }; +static struct platform_device e740_audio_device = { + .name ="e740-audio" , + .id =-1 , +}; +/* ----------------------------------------------------------------------- */ static struct platform_device *e740_devices[]__initdata = { &e740_fb_device, &e740_t7l66xb_device, &e7xx_gpio_vbus, + &e740_audio_device, };static void __init e740_init (void )
sound/soc/pxa/e740_wm9705.c +32 -43
98 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH 2/5 ASoC: pxa: Convert e750_wm9705 to use snd_soc_register_card()
In reply to Axel LinUse snd_soc_register_card() instead of creating a "soc-audio" platform device.
--- arch/arm/mach-pxa/eseries.c | 6 ++++ sound/soc/pxa/e750_wm9705.c | 66 ++++++++++++++++++++---------------------- 2 files changed, 37 insertions(+), 35 deletions(-)
arch/arm/mach-pxa/eseries.c +6 -0
@@ -728,12 +728,18 @@ static struct platform_device e750_tc6393xb_device = { .resource = eseries_tmio_resources, }; +static struct platform_device e750_audio_device = { + .name ="e750-audio" , + .id =-1 , +}; +/* ------------------------------------------------------------- */ static struct platform_device *e750_devices[]__initdata = { &e750_fb_device, &e750_tc6393xb_device, &e7xx_gpio_vbus, + &e750_audio_device, };static void __init e750_init (void )
sound/soc/pxa/e750_wm9705.c +31 -35
89 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH 3/5 ASoC: pxa: Convert e800_wm9712 to use snd_soc_register_card()
In reply to Axel LinUse snd_soc_register_card() instead of creating a "soc-audio" platform device.
--- arch/arm/mach-pxa/eseries.c | 6 ++++ sound/soc/pxa/e800_wm9712.c | 66 ++++++++++++++++++++---------------------- 2 files changed, 37 insertions(+), 35 deletions(-)
arch/arm/mach-pxa/eseries.c +6 -0
@@ -941,12 +941,18 @@ static struct platform_device e800_tc6393xb_device = { .resource = eseries_tmio_resources, }; +static struct platform_device e800_audio_device = { + .name ="e800-audio" , + .id =-1 , +}; +/* ----------------------------------------------------------------------- */ static struct platform_device *e800_devices[]__initdata = { &e800_fb_device, &e800_tc6393xb_device, &e800_gpio_vbus, + &e800_audio_device, };static void __init e800_init (void )
sound/soc/pxa/e800_wm9712.c +31 -35
89 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH 4/5 ASoC: pxa: Convert imote2 to use snd_soc_register_card()
In reply to Axel LinUse snd_soc_register_card() instead of creating a "soc-audio" platform device.
--- arch/arm/mach-pxa/stargate2.c | 6 ++++++ sound/soc/pxa/imote2.c | 41 ++++++++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 17 deletions(-)
arch/arm/mach-pxa/stargate2.c +6 -0
@@ -593,10 +593,16 @@ static struct pxa2xx_udc_mach_info imote2_udc_info __initdata = { .udc_command = sg2_udc_command, }; +static struct platform_device imote2_audio_device = { + .name ="imote2-audio" , + .id =-1 , +}; +static struct platform_device *imote2_devices[] = { &stargate2_flash_device, &imote2_leds, &sht15, + &imote2_audio_device, };static void __init imote2_init (void )
sound/soc/pxa/imote2.c +24 -17
63 lines not on this page · raw message
Signature · 1 line
1.7.5.4
PATCH 5/5 ASoC: pxa: Convert tosa to use snd_soc_register_card()
In reply to Axel LinUse snd_soc_register_card() instead of creating a "soc-audio" platform device.
--- arch/arm/mach-pxa/tosa.c | 6 +++ sound/soc/pxa/tosa.c | 77 ++++++++++++++++++---------------------------- 2 files changed, 36 insertions(+), 47 deletions(-)
arch/arm/mach-pxa/tosa.c +6 -0
@@ -889,6 +889,11 @@ static struct platform_device wm9712_device = { .id = -1, }; +static struct platform_device tosa_audio_device = { + .name ="tosa-audio" , + .id =-1 , +}; +static struct platform_device *devices[]__initdata = { &tosascoop_device, &tosascoop_jc_device,
@@ -901,6 +906,7 @@ static struct platform_device *devices[] __initdata = { &sharpsl_rom_device, &wm9712_device, &tosa_gpio_vbus, + &tosa_audio_device, };static void tosa_poweroff (void )
sound/soc/pxa/tosa.c +30 -47
108 lines not on this page · raw message
Signature · 1 line
1.7.5.4
Mark Brown
AppliedQuoted 1 line · Axel Lin
This serial converts some pxa machine drivers to use use
snd_soc_register_card().
Applied all, thanks.