提交 bad268f3 编写于 作者: M Mark Brown

ASoC: cs4271: Convert to table based control init

Signed-off-by: NMark Brown <broonie@linaro.org>
Acked-by: NAlexander Sverdlin <subaparts@yandex.ru>
上级 c095ba72
......@@ -576,8 +576,7 @@ static int cs4271_probe(struct snd_soc_codec *codec)
CS4271_MODE2_MUTECAEQUB,
CS4271_MODE2_MUTECAEQUB);
return snd_soc_add_codec_controls(codec, cs4271_snd_controls,
ARRAY_SIZE(cs4271_snd_controls));
return 0;
}
static int cs4271_remove(struct snd_soc_codec *codec)
......@@ -596,6 +595,9 @@ static struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
.remove = cs4271_remove,
.suspend = cs4271_soc_suspend,
.resume = cs4271_soc_resume,
.controls = cs4271_snd_controls,
.num_controls = ARRAY_SIZE(cs4271_snd_controls),
};
#if defined(CONFIG_SPI_MASTER)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册