ALSA: fix unused warnings with snd_power_get_state
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Oct 2010 17:24:52 +0000 (13:24 -0400)
committerTakashi Iwai <tiwai@suse.de>
Sun, 17 Oct 2010 08:08:45 +0000 (10:08 +0200)
commit363129ea90e0835b8552b797714cd200f674e287
treef15afbf96b1e84917fce4e426c5d2dd5eb5b2d21
parentfa2eb005ebcbac89745a1f9a9f0c8678ba63f61a
ALSA: fix unused warnings with snd_power_get_state

If we compile the ASoC code with PM disabled, we hit stuff like:
sound/soc/soc-dapm.c: In function 'snd_soc_dapm_suspend_check':
sound/soc/soc-dapm.c:440: warning: unused variable 'codec'

So tweak the stub macro to avoid these issues.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h