summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_intelhdmi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-05 07:58:25 +0100
committerTakashi Iwai <tiwai@suse.de>2008-11-05 07:58:25 +0100
commitbeb0b9cf78b56b0f30f5defe62b7b9712cd02a50 (patch)
tree70f4150fb64a784ae8c8e894879f3fdb7d3b60a9 /sound/pci/hda/patch_intelhdmi.c
parent91504877c50a792412e2043a1c2099f054d7254a (diff)
ALSA: hda - Fix unused function in patch_intelhdmi.c
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>
Diffstat (limited to 'sound/pci/hda/patch_intelhdmi.c')
-rw-r--r--sound/pci/hda/patch_intelhdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c
index 8059102dd86..3beaf9c1090 100644
--- a/sound/pci/hda/patch_intelhdmi.c
+++ b/sound/pci/hda/patch_intelhdmi.c
@@ -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)