ASoC: neo1973_gta02_wm8753: Replace snd_soc_cnew with snd_soc_add_controls.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
committed by
Mark Brown
parent
606689e9f8
commit
69331fbdee
@@ -338,7 +338,7 @@ static const struct snd_kcontrol_new wm8753_neo1973_gta02_controls[] = {
|
|||||||
*/
|
*/
|
||||||
static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
|
static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
|
||||||
{
|
{
|
||||||
int i, err;
|
int err;
|
||||||
|
|
||||||
/* set up NC codec pins */
|
/* set up NC codec pins */
|
||||||
snd_soc_dapm_nc_pin(codec, "OUT3");
|
snd_soc_dapm_nc_pin(codec, "OUT3");
|
||||||
@@ -351,13 +351,11 @@ static int neo1973_gta02_wm8753_init(struct snd_soc_codec *codec)
|
|||||||
ARRAY_SIZE(wm8753_dapm_widgets));
|
ARRAY_SIZE(wm8753_dapm_widgets));
|
||||||
|
|
||||||
/* add neo1973 gta02 specific controls */
|
/* add neo1973 gta02 specific controls */
|
||||||
for (i = 0; i < ARRAY_SIZE(wm8753_neo1973_gta02_controls); i++) {
|
err = snd_soc_add_controls(codec, wm8753_neo1973_gta02_controls,
|
||||||
err = snd_ctl_add(codec->card,
|
ARRAY_SIZE(wm8753_neo1973_gta02_controls));
|
||||||
snd_soc_cnew(&wm8753_neo1973_gta02_controls[i],
|
|
||||||
codec, NULL));
|
if (err < 0)
|
||||||
if (err < 0)
|
return err;
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* set up neo1973 gta02 specific audio path audio_map */
|
/* set up neo1973 gta02 specific audio path audio_map */
|
||||||
snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
|
snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
|
||||||
|
Reference in New Issue
Block a user