ASoC: Fix WM9081 platform data initialisation
Subsystems (3)
PATCH 1/1 ASoC: Fix WM9081 platform data initialisation
It went AWOL in the multi-component conversion.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm9081.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
sound/soc/codecs/wm9081.c +5 -0
@@ -15,6 +15,7 @@#include <linux/moduleparam.h> #include <linux/init.h> #include <linux/delay.h> +#include <linux/device.h> #include <linux/pm.h> #include <linux/i2c.h> #include <linux/platform_device.h>
@@ -1341,6 +1342,10 @@ static __devinit int wm9081_i2c_probe(struct i2c_client *i2c, wm9081->control_type =SND_SOC_I2C ; wm9081->control_data = i2c; +if (dev_get_platdata (&i2c->dev)) +memcpy (&wm9081->retune,dev_get_platdata (&i2c->dev), +sizeof (wm9081->retune)); + ret =snd_soc_register_codec (&i2c->dev, &soc_codec_dev_wm9081, &wm9081_dai,1 );if (ret <0 )
Signature · 1 line
1.7.2.3
Quoted 7 lines · Mark Brown
It went AWOL in the multi-component conversion.
Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/wm9081.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
Acked-by Liam Girdwood <[email protected]>