[alsa-devel] [PATCH 4/4] ASoC: codecs: adau1701: add support for pin muxing

Lars-Peter Clausen lars at metafoo.de
Sun Jun 9 19:43:51 CEST 2013


> @@ -653,6 +676,13 @@ static int adau1701_i2c_probe(struct i2c_client *client,
>  
>  		of_property_read_u32(dev->of_node, "adi,pll-clkdiv",
>  				     &adau1701->pll_clkdiv);
> +		pin_config32 = of_get_property(dev->of_node,
> +					       "adi,pin-config", &size);
> +		size /= sizeof(u32);
> +		size = min(ARRAY_SIZE(adau1701->pin_config), size);
> +
> +		for (i = 0; i < size; i++)
> +			adau1701->pin_config[i] = be32_to_cpup(pin_config32 + i);
>  	}

of_property_read_u32_array

>  
>  	if (gpio_is_valid(gpio_nreset)) {



More information about the Alsa-devel mailing list