Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-off-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
/* codec private data */
struct alc5632_priv {
enum snd_soc_control_type control_type;
- void *control_data;
- struct mutex mutex;
u8 id;
unsigned int sysclk;
};
}
i2c_set_clientdata(client, alc5632);
- alc5632->control_data = client;
alc5632->control_type = SND_SOC_I2C;
- mutex_init(&alc5632->mutex);
ret = snd_soc_register_codec(&client->dev,
&soc_codec_device_alc5632, &alc5632_dai, 1);