msm_fb: hdmi: Guard HDMI related functions

HDMI dependent functions need to be guarded under HDMI panel
macro to avoid compilation errors for non HDMI builds.

CRs-Fixed: 366864
Change-Id: I02780c167f14e7e44b9f99c121ee2f46a5341051
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
This commit is contained in:
Ajay Singh Parmar 2012-06-12 14:45:03 +05:30 committed by Stephen Boyd
parent 1ff096218e
commit 1f4abb5441

View file

@ -36,7 +36,16 @@ int hdmi_audio_enable(bool on , u32 fifo_water_mark);
int hdmi_audio_packet_enable(bool on); int hdmi_audio_packet_enable(bool on);
void hdmi_msm_audio_sample_rate_reset(int rate); void hdmi_msm_audio_sample_rate_reset(int rate);
int hdmi_msm_audio_get_sample_rate(void); int hdmi_msm_audio_get_sample_rate(void);
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL
int hdmi_msm_audio_info_setup(bool enabled, u32 num_of_channels, int hdmi_msm_audio_info_setup(bool enabled, u32 num_of_channels,
u32 channel_allocation, u32 level_shift, bool down_mix); u32 channel_allocation, u32 level_shift, bool down_mix);
#else
static inline int hdmi_msm_audio_info_setup(bool enabled,
u32 num_of_channels, u32 channel_allocation, u32 level_shift,
bool down_mix)
{
return 0;
}
#endif
#endif /* __MSM_HDMI_AUDIO_H*/ #endif /* __MSM_HDMI_AUDIO_H*/