diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-10-30 07:31:39 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-10-30 07:31:39 -0400 |
commit | 6a5f96ce72b9e1a4bf06422df53fa819947d2293 (patch) | |
tree | db00db98d889c31faaefd409868bdd0a251cd6d6 | |
parent | 36dd5c4afff825fca1b6ccde678f51d6933a6850 (diff) |
ALSA: hda - Add a proper ifdef to a debug code
Added a proper ifdef CONFIG_SND_DEBUG_VERBOSE to avoid a compile warning:
sound/pci/hda/patch_intelhdmi.c:406: warning: ‘hdmi_get_channel_count’ defined but not used
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_intelhdmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c index 650de1b4ea8d..4f25f08d332b 100644 --- a/sound/pci/hda/patch_intelhdmi.c +++ b/sound/pci/hda/patch_intelhdmi.c | |||
@@ -403,11 +403,13 @@ static void hdmi_stop_infoframe_trans(struct hda_codec *codec, | |||
403 | AC_DIPXMIT_DISABLE); | 403 | AC_DIPXMIT_DISABLE); |
404 | } | 404 | } |
405 | 405 | ||
406 | #ifdef CONFIG_SND_DEBUG_VERBOSE | ||
406 | static int hdmi_get_channel_count(struct hda_codec *codec, hda_nid_t nid) | 407 | static int hdmi_get_channel_count(struct hda_codec *codec, hda_nid_t nid) |
407 | { | 408 | { |
408 | return 1 + snd_hda_codec_read(codec, nid, 0, | 409 | return 1 + snd_hda_codec_read(codec, nid, 0, |
409 | AC_VERB_GET_CVT_CHAN_COUNT, 0); | 410 | AC_VERB_GET_CVT_CHAN_COUNT, 0); |
410 | } | 411 | } |
412 | #endif | ||
411 | 413 | ||
412 | static void hdmi_set_channel_count(struct hda_codec *codec, | 414 | static void hdmi_set_channel_count(struct hda_codec *codec, |
413 | hda_nid_t nid, int chs) | 415 | hda_nid_t nid, int chs) |