linux/drivers/gpu/drm/msm/hdmi/hdmi_audio.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <[email protected]>
 */

#include <linux/hdmi.h>
#include "hdmi.h"

/* maps MSM_HDMI_AUDIO_CHANNEL_n consts used by audio driver to # of channels: */
static int nchannels[] =;

/* Supported HDMI Audio sample rates */
#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, ...)

/* Audio constants lookup table for hdmi_msm_audio_acr_setup */
/* Valid Pixel-Clock rates: 25.2MHz, 27MHz, 27.03MHz, 74.25MHz, 148.5MHz */
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)
{}