#include <linux/hdmi.h>
#include "hdmi.h"
static int nchannels[] = …;
#define MSM_HDMI_SAMPLE_RATE_32KHZ …
#define MSM_HDMI_SAMPLE_RATE_44_1KHZ …
#define MSM_HDMI_SAMPLE_RATE_48KHZ …
#define MSM_HDMI_SAMPLE_RATE_88_2KHZ …
#define MSM_HDMI_SAMPLE_RATE_96KHZ …
#define MSM_HDMI_SAMPLE_RATE_176_4KHZ …
#define MSM_HDMI_SAMPLE_RATE_192KHZ …
#define MSM_HDMI_SAMPLE_RATE_MAX …
struct hdmi_msm_audio_acr { … };
struct hdmi_msm_audio_arcs { … };
#define HDMI_MSM_AUDIO_ARCS(pclk, ...) …
static const struct hdmi_msm_audio_arcs acr_lut[] = …;
static const struct hdmi_msm_audio_arcs *get_arcs(unsigned long int pixclock)
{ … }
int msm_hdmi_audio_update(struct hdmi *hdmi)
{ … }
int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
uint32_t num_of_channels, uint32_t channel_allocation,
uint32_t level_shift, bool down_mix)
{ … }
void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate)
{ … }