summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-11-28 11:33:10 +0100
committerJaroslav Kysela <perex@suse.cz>2007-02-09 09:02:11 +0100
commit86d72bdfcd34c9cd8acddf749ff130d5365fe279 (patch)
tree98f7d82b2cec2b8628281bee1a59114f7fc59d8f
parent2e26e483694059d63bda7bb89d5a464c952d1d44 (diff)
downloadlinux-86d72bdfcd34c9cd8acddf749ff130d5365fe279.tar.bz2
[ALSA] hda-codec - Fix compile warnings without CONFIG_SND_DEBUG
Fix compile warnings (unused variables) in patch_conexant.c without CONFIG_SND_DEBUG. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r--sound/pci/hda/patch_conexant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index dec8f9747fc6..73f4668238c6 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -397,6 +397,9 @@ static int conexant_eapd_put(struct snd_kcontrol *kcontrol,
return 1;
}
+/* controls for test mode */
+#ifdef CONFIG_SND_DEBUG
+
static int conexant_ch_mode_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
@@ -545,6 +548,8 @@ static int cxt_spdif_ctrl_put(struct snd_kcontrol *kcontrol,
.put = cxt_spdif_ctrl_put, \
.private_value = nid | (mask<<16) }
+#endif /* CONFIG_SND_DEBUG */
+
/* Conexant 5045 specific */
static hda_nid_t cxt5045_dac_nids[1] = { 0x19 };