[alsa-devel] [PATCH] ASoC: Convert wm8731 to a new-style i2c driver (testers wanted)

Sedji Gaouaou sedji.gaouaou at atmel.com
Mon Sep 1 15:54:53 CEST 2008


Hi Manuel,
>  
> diff --git a/sound/soc/pxa/corgi.c b/sound/soc/pxa/corgi.c
> index 72b7a51..4837bdb 100644
> --- a/sound/soc/pxa/corgi.c
> +++ b/sound/soc/pxa/corgi.c
> @@ -328,18 +328,11 @@ static struct snd_soc_machine snd_soc_machine_corgi = {
>  	.num_links = 1,
>  };
>  
> -/* corgi audio private data */
> -static struct wm8731_setup_data corgi_wm8731_setup = {
> -	.i2c_bus = 0,
> -	.i2c_address = 0x1b,
> -};
> -
>  /* corgi audio subsystem */
>  static struct snd_soc_device corgi_snd_devdata = {
>  	.machine = &snd_soc_machine_corgi,
>  	.platform = &pxa2xx_soc_platform,
>  	.codec_dev = &soc_codec_dev_wm8731,
> -	.codec_data = &corgi_wm8731_setup,
>  };
>  
>  static struct platform_device *corgi_snd_device;
> diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c
> index f84f7d8..a6adb46 100644
> --- a/sound/soc/pxa/poodle.c
> +++ b/sound/soc/pxa/poodle.c
> @@ -282,18 +282,11 @@ static struct snd_soc_machine snd_soc_machine_poodle = {
>  	.num_links = 1,
>  };
>  
> -/* poodle audio private data */
> -static struct wm8731_setup_data poodle_wm8731_setup = {
> -	.i2c_bus = 0,
> -	.i2c_address = 0x1b,
> -};
> -
>  /* poodle audio subsystem */
>  static struct snd_soc_device poodle_snd_devdata = {
>  	.machine = &snd_soc_machine_poodle,
>  	.platform = &pxa2xx_soc_platform,
>  	.codec_dev = &soc_codec_dev_wm8731,
> -	.codec_data = &poodle_wm8731_setup,
>  };
>  
>  static struct platform_device *poodle_snd_device;

Shouldn't it be the same for the file sound/soc/at91/eti_b1_wm8731.c ??

Regards,
Sedji



More information about the Alsa-devel mailing list