summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUdaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>2017-01-17 10:20:00 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-14 16:44:11 -0800
commit79db7c3476e4aa446c1a5c4d84eb275546d7ae91 (patch)
tree6ecc9a2c59dd1834a0a0faaf96d700b0e5042393 /include
parent3a7e752617514960c5cecdf84e12b13dc63c04c7 (diff)
media: platform: msm: Add demux support for mediabox
Add audio stream buffer interface to write the Audio demux data to audio decoder buffers. Add support in TSIF driver to append LPASS subsystem time stamps to Transport Stream packets in TSIF HW. This is required for AV sync & clock recovery handling for mediabox project based on LE platform. CR's-Fixed: 2005724 Change-Id: I39d2544e958c31ff1abdd2ad77412a87bc2a189b Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org> Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/qcom_tspp.h11
-rw-r--r--include/uapi/linux/dvb/dmx.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/qcom_tspp.h b/include/linux/qcom_tspp.h
index 28e6695fb057..1b34c389d7f0 100644
--- a/include/linux/qcom_tspp.h
+++ b/include/linux/qcom_tspp.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2017, 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
@@ -70,6 +70,11 @@ struct tspp_select_source {
int enable_inverse;
};
+enum tsif_tts_source {
+ TSIF_TTS_TCR = 0, /* Time stamps from TCR counter */
+ TSIF_TTS_LPASS_TIMER /* Time stamps from AV/Qtimer Timer */
+};
+
typedef void (tspp_notifier)(int channel_id, void *user);
typedef void* (tspp_allocator)(int channel_id, u32 size,
phys_addr_t *phys_base, void *user);
@@ -96,4 +101,8 @@ int tspp_allocate_buffers(u32 dev, u32 channel_id, u32 count,
u32 size, u32 int_freq, tspp_allocator *alloc,
tspp_memfree *memfree, void *user);
+int tspp_get_tts_source(u32 dev, int *tts_source);
+int tspp_get_lpass_time_counter(u32 dev, enum tspp_source source,
+ u64 *lpass_time_counter);
+
#endif /* _MSM_TSPP_H_ */
diff --git a/include/uapi/linux/dvb/dmx.h b/include/uapi/linux/dvb/dmx.h
index a768696c90f8..175534a26792 100644
--- a/include/uapi/linux/dvb/dmx.h
+++ b/include/uapi/linux/dvb/dmx.h
@@ -148,6 +148,9 @@ enum dmx_video_codec {
#define DMX_IDX_VC1_FRAME_END 0x02000000
#define DMX_IDX_H264_ACCESS_UNIT_DEL 0x04000000
#define DMX_IDX_H264_SEI 0x08000000
+#define DMX_IDX_H264_IDR_ISLICE_START 0x10000000
+#define DMX_IDX_H264_NON_IDR_PSLICE_START 0x20000000
+#define DMX_IDX_H264_NON_IDR_BSLICE_START 0x40000000
struct dmx_pes_filter_params
{