Skip to content

Commit

Permalink
ASoC: Fix build error in sound/soc/omap/n810.c
Browse files Browse the repository at this point in the history
Fix below build error which is introduced by
commit 022658 "ASoC: core: Add support for DAI and machine kcontrols".

  CC [M]  sound/soc/omap/n810.o
sound/soc/omap/n810.c: In function 'n810_set_input':
sound/soc/omap/n810.c:194: error: 'codec' undeclared (first use in this function)
sound/soc/omap/n810.c:194: error: (Each undeclared identifier is reported only once
sound/soc/omap/n810.c:194: error: for each function it appears in.)
sound/soc/omap/n810.c:188: warning: unused variable 'card'
make[3]: *** [sound/soc/omap/n810.o] Error 1
make[2]: *** [sound/soc/omap] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Feb 10, 2012
1 parent 1f5ff88 commit 625136e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/omap/n810.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int n810_set_input(struct snd_kcontrol *kcontrol,
return 0;

n810_dmic_func = ucontrol->value.integer.value[0];
n810_ext_control(codec);
n810_ext_control(&card->dapm);

return 1;
}
Expand Down

0 comments on commit 625136e

Please sign in to comment.