diff options
| author | Tatenda Chipeperekwa <tatendac@codeaurora.org> | 2015-10-14 16:28:04 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:47:42 -0700 |
| commit | e3330fb73673e62aaaa22db189a57f7eb3e09a45 (patch) | |
| tree | d33d0a5da7b3c1158f12e7ac673cc2f5d5ddcbdb /include/linux | |
| parent | 49607a33a91369137813c352d95f1502cea8838a (diff) | |
msm: mdss: hdmi: add support to program sample present value
The HDMI transmitter core can be used to program the sample
present value of the audio sample packet. The sample present
value is determined in the audio driver and sent as part of
the parameters to the audio setup interface.
Change-Id: I8d580f95467343328ec0d24efc48dabf8a41ad49
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
[cip@codeaurora.org: Removed sound/soc/codecs/msm_hdmi_codec_rx.c changes]
Signed-off-by: Clarence Ip <cip@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/msm_hdmi.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/msm_hdmi.h b/include/linux/msm_hdmi.h index 369d07e7b133..45b206b86765 100644 --- a/include/linux/msm_hdmi.h +++ b/include/linux/msm_hdmi.h @@ -1,6 +1,6 @@ /* include/linux/msm_hdmi.h * - * Copyright (c) 2014 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2015 The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -36,11 +36,18 @@ struct msm_hdmi_audio_edid_blk { unsigned int spk_alloc_data_blk_size; /* in bytes */ }; +struct msm_hdmi_audio_setup_params { + u32 sample_rate_hz; + u32 num_of_channels; + u32 channel_allocation; + u32 level_shift; + bool down_mix; + u32 sample_present; +}; + struct msm_hdmi_audio_codec_ops { int (*audio_info_setup)(struct platform_device *pdev, - u32 sample_rate, u32 num_of_channels, - u32 channel_allocation, u32 level_shift, - bool down_mix); + struct msm_hdmi_audio_setup_params *params); int (*get_audio_edid_blk) (struct platform_device *pdev, struct msm_hdmi_audio_edid_blk *blk); int (*hdmi_cable_status) (struct platform_device *pdev, u32 vote); |
