]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: hda - Fix unused function in patch_intelhdmi.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 5 Nov 2008 06:58:25 +0000 (07:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 5 Nov 2008 06:58:25 +0000 (07:58 +0100)
Add a proper ifdef to shut out a compile warning:
   CC [M]  sound/pci/hda/patch_intelhdmi.o
sound/pci/hda/patch_intelhdmi.c:286: warning: ‘hdmi_get_dip_index’ defined but \
not used

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_intelhdmi.c

index 8059102dd86279730d5f92852fc95031dc259ba5..3beaf9c1090c61aa9eb58c3bc901a5894e97ec66 100644 (file)
@@ -281,6 +281,7 @@ static int hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid)
                                                 AC_DIPSIZE_ELD_BUF);
 }
 
+#ifdef BE_PARANOID
 static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t nid,
                                int *packet_index, int *byte_index)
 {
@@ -291,6 +292,7 @@ static void hdmi_get_dip_index(struct hda_codec *codec, hda_nid_t nid,
        *packet_index = val >> 5;
        *byte_index = val & 0x1f;
 }
+#endif
 
 static void hdmi_set_dip_index(struct hda_codec *codec, hda_nid_t nid,
                                int packet_index, int byte_index)