Re: [PATCH 122/187] ASoC: twl4030: replace codec to component

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2018-01-12 03:43, Kuninori Morimoto wrote:
> 
> From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> 
> Now we can replace Codec to Component. Let's do it.
> 
> Note:
> 	xxx_codec_xxx()		->	xxx_component_xxx()
> 	.idle_bias_off = 1	->	.idle_bias_on = 0
> 	.ignore_pmdown_time = 0	->	.pmdown_time = 1
> 	-			->	.endianness = 1
> 	-			->	.non_legacy_dai_naming = 1
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
> ---
>  sound/soc/codecs/twl4030.c | 379 ++++++++++++++++++++++-----------------------
>  1 file changed, 185 insertions(+), 194 deletions(-)

...

> -static const struct snd_soc_codec_driver soc_codec_dev_twl4030 = {
> -	.probe = twl4030_soc_probe,
> -	.remove = twl4030_soc_remove,
> -	.set_bias_level = twl4030_set_bias_level,
> -	.idle_bias_off = true,
> -
> -	.component_driver = {
> -		.controls		= twl4030_snd_controls,
> -		.num_controls		= ARRAY_SIZE(twl4030_snd_controls),
> -		.dapm_widgets		= twl4030_dapm_widgets,
> -		.num_dapm_widgets	= ARRAY_SIZE(twl4030_dapm_widgets),
> -		.dapm_routes		= intercon,
> -		.num_dapm_routes	= ARRAY_SIZE(intercon),
> -	},
> +static const struct snd_soc_component_driver soc_component_dev_twl4030 = {
> +	.probe			= twl4030_soc_probe,
> +	.remove			= twl4030_soc_remove,
> +	.set_bias_level		= twl4030_set_bias_level,
> +	.controls		= twl4030_snd_controls,
> +	.num_controls		= ARRAY_SIZE(twl4030_snd_controls),
> +	.dapm_widgets		= twl4030_dapm_widgets,
> +	.num_dapm_widgets	= ARRAY_SIZE(twl4030_dapm_widgets),
> +	.dapm_routes		= intercon,
> +	.num_dapm_routes	= ARRAY_SIZE(intercon),
> +	.pmdown_time		= 1,
> +	.endianness		= 1,
> +	.non_legacy_dai_naming	= 1,

We need the .read and .write back first, as the removal of those broke
twl4030 and twl6040.

- Péter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux