diff options
author | Ujwal Patel <ujwalp@codeaurora.org> | 2012-11-15 12:46:10 -0800 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:13:42 -0700 |
commit | de43093857bf12efb1d5a3201ca1b61a52dda128 (patch) | |
tree | 1243b4d79039739e95b19640db64d7cded0eea72 /arch | |
parent | 4c7024924416014e216bb4425a463a45d7b1d4a4 (diff) |
msm: mdss: hdmi: Add support for new HDMI-Audio interface
Using this new interface, HDMI-Audio codec driver can retrieve
sink's audio capabilities. Based on this supported capabilities
and current playback clip, it will pass appropriate audio setup
information to HDMI driver for configuration.
Change-Id: Ia52f72d955778859c381a5e6c94aba57e40d13b2
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-msm/include/mach/msm_hdmi_audio_codec.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/include/mach/msm_hdmi_audio_codec.h b/arch/arm/mach-msm/include/mach/msm_hdmi_audio_codec.h new file mode 100644 index 000000000000..95f33d5ea90c --- /dev/null +++ b/arch/arm/mach-msm/include/mach/msm_hdmi_audio_codec.h @@ -0,0 +1,37 @@ +/* Copyright (c) 2012, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __MSM_HDMI_AUDIO_CODEC_H__ +#define __MSM_HDMI_AUDIO_CODEC_H__ + +#include <linux/device.h> +#include <linux/platform_device.h> + +struct msm_hdmi_audio_edid_blk { + u8 *audio_data_blk; + unsigned int audio_data_blk_size; /* in bytes */ + u8 *spk_alloc_data_blk; + unsigned int spk_alloc_data_blk_size; /* in bytes */ +}; + +struct msm_hdmi_audio_codec_ops { + int (*audio_info_setup)(struct platform_device *pdev, + u32 num_of_channels, u32 channel_allocation, u32 level_shift, + bool down_mix); + int (*get_audio_edid_blk) (struct platform_device *pdev, + struct msm_hdmi_audio_edid_blk *blk); +}; + +int msm_hdmi_register_audio_codec(struct platform_device *pdev, + struct msm_hdmi_audio_codec_ops *ops); + +#endif /* __MSM_HDMI_AUDIO_CODEC_H__ */ |