]> Git Repo - linux.git/commitdiff
ALSA: hda - Add a proper ifdef to a debug code
authorTakashi Iwai <[email protected]>
Fri, 30 Oct 2009 11:31:39 +0000 (12:31 +0100)
committerTakashi Iwai <[email protected]>
Fri, 30 Oct 2009 11:31:39 +0000 (12:31 +0100)
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 <[email protected]>
sound/pci/hda/patch_intelhdmi.c

index 650de1b4ea8dcff235d29b3e33d3475021531eb3..4f25f08d332bc1a1e581c3dc4d578559f7e5d8ef 100644 (file)
@@ -403,11 +403,13 @@ static void hdmi_stop_infoframe_trans(struct hda_codec *codec,
                                                AC_DIPXMIT_DISABLE);
 }
 
+#ifdef CONFIG_SND_DEBUG_VERBOSE
 static int hdmi_get_channel_count(struct hda_codec *codec, hda_nid_t nid)
 {
        return 1 + snd_hda_codec_read(codec, nid, 0,
                                        AC_VERB_GET_CVT_CHAN_COUNT, 0);
 }
+#endif
 
 static void hdmi_set_channel_count(struct hda_codec *codec,
                                   hda_nid_t nid, int chs)
This page took 0.059818 seconds and 4 git commands to generate.