summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--[-rwxr-xr-x]Media.mk1
-rw-r--r--drivers/amvdec_ports/Makefile1
-rw-r--r--drivers/amvdec_ports/aml_vcodec_adapt.c112
-rw-r--r--drivers/amvdec_ports/aml_vcodec_adapt.h5
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec.c992
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec.h2
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec_drv.c122
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec_pm.c206
-rw-r--r--drivers/amvdec_ports/aml_vcodec_dec_pm.h34
-rw-r--r--drivers/amvdec_ports/aml_vcodec_drv.h188
-rw-r--r--drivers/amvdec_ports/aml_vcodec_util.c34
-rw-r--r--drivers/amvdec_ports/aml_vcodec_util.h90
-rw-r--r--drivers/amvdec_ports/aml_vcodec_vfm.c28
-rw-r--r--drivers/amvdec_ports/decoder/aml_h264_parser.c81
-rw-r--r--drivers/amvdec_ports/decoder/aml_h264_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/aml_hevc_parser.c133
-rw-r--r--drivers/amvdec_ports/decoder/aml_hevc_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/aml_mjpeg_parser.c34
-rw-r--r--drivers/amvdec_ports/decoder/aml_mjpeg_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/aml_mpeg12_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/aml_mpeg4_parser.c178
-rw-r--r--drivers/amvdec_ports/decoder/aml_mpeg4_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/aml_vp9_parser.c26
-rw-r--r--drivers/amvdec_ports/decoder/aml_vp9_parser.h1
-rw-r--r--drivers/amvdec_ports/decoder/vdec_h264_if.c223
-rw-r--r--drivers/amvdec_ports/decoder/vdec_hevc_if.c194
-rw-r--r--drivers/amvdec_ports/decoder/vdec_mjpeg_if.c210
-rw-r--r--drivers/amvdec_ports/decoder/vdec_mpeg12_if.c304
-rw-r--r--drivers/amvdec_ports/decoder/vdec_mpeg4_if.c209
-rw-r--r--drivers/amvdec_ports/decoder/vdec_vp9_if.c195
-rw-r--r--drivers/amvdec_ports/vdec_drv_if.c6
-rw-r--r--drivers/amvdec_ports/vdec_drv_if.h21
-rw-r--r--drivers/common/chips/chips.c1
-rw-r--r--drivers/common/chips/decoder_cpu_ver_info.c8
-rw-r--r--drivers/common/chips/decoder_cpu_ver_info.h1
-rw-r--r--drivers/common/firmware/firmware_drv.c9
-rw-r--r--drivers/common/firmware/firmware_type.c1
-rw-r--r--drivers/common/firmware/firmware_type.h1
-rw-r--r--drivers/common/media_clock/clk/clk.c3
-rw-r--r--drivers/common/media_clock/clk/clkg12.c5
-rw-r--r--drivers/frame_provider/decoder/Makefile1
-rw-r--r--drivers/frame_provider/decoder/avs/avs.c60
-rw-r--r--drivers/frame_provider/decoder/avs2/avs2_bufmgr.c12
-rw-r--r--drivers/frame_provider/decoder/avs2/avs2_global.h3
-rw-r--r--drivers/frame_provider/decoder/avs2/vavs2.c115
-rw-r--r--drivers/frame_provider/decoder/avs_multi/Makefile2
-rw-r--r--drivers/frame_provider/decoder/avs_multi/avs_multi.c1633
-rw-r--r--drivers/frame_provider/decoder/avs_multi/avsp_trans_multi.c5065
-rw-r--r--drivers/frame_provider/decoder/h264/vh264.c58
-rw-r--r--drivers/frame_provider/decoder/h264_multi/h264_dpb.c50
-rw-r--r--drivers/frame_provider/decoder/h264_multi/h264_dpb.h34
-rw-r--r--drivers/frame_provider/decoder/h264_multi/vmh264.c1043
-rw-r--r--drivers/frame_provider/decoder/h265/vh265.c707
-rw-r--r--drivers/frame_provider/decoder/mjpeg/vmjpeg_multi.c60
-rw-r--r--drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c595
-rw-r--r--drivers/frame_provider/decoder/mpeg4/vmpeg4.c5
-rw-r--r--drivers/frame_provider/decoder/mpeg4/vmpeg4_multi.c80
-rw-r--r--drivers/frame_provider/decoder/utils/amvdec.c5
-rw-r--r--drivers/frame_provider/decoder/utils/frame_check.c178
-rw-r--r--drivers/frame_provider/decoder/utils/frame_check.h4
-rw-r--r--drivers/frame_provider/decoder/utils/vdec.c530
-rw-r--r--drivers/frame_provider/decoder/utils/vdec.h18
-rw-r--r--drivers/frame_provider/decoder/utils/vdec_input.c12
-rw-r--r--drivers/frame_provider/decoder/utils/vdec_input.h3
-rw-r--r--drivers/frame_provider/decoder/utils/vdec_v4l2_buffer_ops.c92
-rw-r--r--drivers/frame_provider/decoder/utils/vdec_v4l2_buffer_ops.h7
-rw-r--r--drivers/frame_provider/decoder/vav1/Makefile2
-rw-r--r--drivers/frame_provider/decoder/vav1/aom_av1_define.h171
-rw-r--r--drivers/frame_provider/decoder/vav1/av1_bufmgr.c3392
-rw-r--r--drivers/frame_provider/decoder/vav1/av1_global.h2310
-rw-r--r--drivers/frame_provider/decoder/vav1/vav1.c9946
-rw-r--r--drivers/frame_provider/decoder/vav1/vav1.h22
-rw-r--r--drivers/frame_provider/decoder/vc1/vvc1.c46
-rw-r--r--drivers/frame_provider/decoder/vp9/vvp9.c449
-rw-r--r--drivers/frame_sink/encoder/h264/encoder.c2
-rw-r--r--drivers/stream_input/Makefile5
-rw-r--r--drivers/stream_input/amports/amstream.c263
-rw-r--r--drivers/stream_input/parser/demux/aml_dvb.h5
-rw-r--r--drivers/stream_input/parser/demux/hw_demux/demod_gt.h62
-rw-r--r--drivers/stream_input/parser/demux/hw_demux/frontend.c293
-rw-r--r--drivers/stream_input/parser/dvb_common.c17
-rw-r--r--drivers/stream_input/parser/dvb_common.h26
-rw-r--r--drivers/stream_input/parser/esparser.c15
-rw-r--r--drivers/stream_input/parser/hw_demux/aml_demod_gt.h87
-rw-r--r--drivers/stream_input/parser/hw_demux/aml_dmx.c270
-rw-r--r--drivers/stream_input/parser/hw_demux/aml_dvb.c445
-rw-r--r--drivers/stream_input/parser/hw_demux/aml_dvb.h32
-rw-r--r--drivers/stream_input/parser/streambuf.c9
-rw-r--r--drivers/stream_input/parser/tsdemux.c14
-rw-r--r--drivers/stream_input/parser/tsdemux.h1
-rw-r--r--drivers/stream_input/tv_frontend/Makefile16
-rw-r--r--drivers/stream_input/tv_frontend/aml_fe.c1372
-rw-r--r--drivers/stream_input/tv_frontend/aml_fe.h213
-rw-r--r--drivers/stream_input/tv_frontend/atv_demod/atvdemod_frontend.c791
-rw-r--r--drivers/stream_input/tv_frontend/atv_demod/atvdemod_func.c2163
-rw-r--r--drivers/stream_input/tv_frontend/atv_demod/atvdemod_func.h323
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/aml_demod.c725
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/amlfrontend.c1402
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/demod_func.c2996
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/dvbc_func.c1331
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/dvbt_func.c2188
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/i2c_func.c42
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/acf_filter_coefficient.h414
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_che.h77
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_che_bit.h266
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_front.h70
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_front_bit.h331
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_sync.h53
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_sync_bit.h110
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_top.h90
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_top_bit.h178
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/aml_dtv_demod_reg.h28
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/amlfrontend.h86
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/include/demod_func.h626
-rw-r--r--drivers/stream_input/tv_frontend/dtv_demod/tuner_func.c189
-rw-r--r--firmware/video_ucode.bin14148
116 files changed, 25845 insertions, 36303 deletions
diff --git a/drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_top_bit.h b/drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_top_bit.h
deleted file mode 100644
index 63233c4..0000000
--- a/drivers/stream_input/tv_frontend/dtv_demod/include/addr_dtmb_top_bit.h
+++ b/dev/null
@@ -1,178 +0,0 @@
-/*
-* Copyright (C) 2017 Amlogic, Inc. 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 as published by
-* the Free Software Foundation; either version 2 of the License, or
-* (at your option) any later version.
-*
-* 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.
-*
-* You should have received a copy of the GNU General Public License along
-* with this program; if not, write to the Free Software Foundation, Inc.,
-* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*
-* Description:
-*/
-#ifndef __ADDR_DTMB_TOP_BIT_H__
-#define __ADDR_DTMB_TOP_BIT_H__
-
-union DTMB_TOP_CTRL_SW_RST_BITS {
- unsigned int d32;
- struct {
- unsigned int ctrl_sw_rst:1, ctrl_sw_rst_noreg:1, reserved0:30;
- } b;
-};
-struct DTMB_TOP_TESTBUS_BITS {
- unsigned int testbus_addr:16, testbus_en:1, reserved1:15;
-};
-struct DTMB_TOP_TB_BITS {
- unsigned int tb_act_width:5,
- reserved2:3,
- tb_dc_mk:3,
- reserved3:1, tb_capture_stop:1, tb_self_test:1, reserved4:18;
-};
-struct DTMB_TOP_CTRL_ENABLE_BITS {
- unsigned int ctrl_enable:24, reserved5:8;
-};
-struct DTMB_TOP_CTRL_LOOP_BITS {
- unsigned int ctrl_src_pnphase_loop:1,
- ctrl_src_sfo_loop:1,
- ctrl_ddc_fcfo_loop:1, ctrl_ddc_icfo_loop:1, reserved6:28;
-};
-struct DTMB_TOP_CTRL_FSM_BITS {
- unsigned int ctrl_fsm_state:5,
- reserved7:3,
- ctrl_fsm_v:1, reserved8:3, ctrl_reset_state:4, reserved9:16;
-};
-struct DTMB_TOP_CTRL_AGC_BITS {
- unsigned int ctrl_fast_agc:1,
- ctrl_agc_bypass:1,
- ts_cfo_bypass:1, sfo_strong0_bypass:1, reserved10:28;
-};
-struct DTMB_TOP_CTRL_TS_SFO_CFO_BITS {
- unsigned int ctrl_ts_q:10,
- reserved11:2,
- ctrl_pnphase_q:7, reserved12:1, ctrl_sfo_q:4, ctrl_cfo_q:8;
-};
-struct DTMB_TOP_CTRL_FEC_BITS {
- unsigned int reserved13:8,
- ctrl_ts_to_th:4,
- ctrl_pnphase_to_th:4,
- ctrl_sfo_to_th:4,
- ctrl_fe_to_th:4, ctrl_che_to_th:4, ctrl_fec_to_th:4;
-};
-struct DTMB_TOP_CTRL_INTLV_TIME_BITS {
- unsigned int ctrl_intlv720_time:12, ctrl_intlv240_time:12, reserved14:8;
-};
-struct DTMB_TOP_CTRL_DAGC_CCI_BITS {
- unsigned int dagc_mode:2,
- cci_dagc_mode:2,
- cci_bypass:1,
- fe_bypass:1,
- reserved15:1,
- new_sync1:1, new_sync2:1, fec_inzero_check:1, reserved16:22;
-};
-struct DTMB_TOP_CTRL_TPS_BITS {
- unsigned int sfo_gain:2,
- freq_reverse:1,
- qam4_nr:1,
- intlv_mode:1,
- code_rate:2,
- constell:2,
- tps_carrier_mode:1,
- freq_reverse_known:1, tps_known:1, ctrl_tps_to_th:4, reserved17:16;
-};
-struct DTMB_TOP_CCI_FLG_BITS {
- unsigned int cci_flg_cnt:8, m_cci_ready:1, reserved18:23;
-};
-struct DTMB_TOP_FRONT_IQIB_CHECK_BITS {
- unsigned int front_iqib_check_b:12,
- front_iqib_check_a:10, reserved19:10;
-};
-struct DTMB_TOP_SYNC_TS_BITS {
- unsigned int sync_ts_idx:2, sync_ts_pos:13, sync_ts_q:10, reserved20:7;
-};
-struct DTMB_TOP_SYNC_PNPHASE_BITS {
- unsigned int sync_pnphase_max_q_idx:2,
- sync_pnphase:8, sync_pnphase_max_q:7, reserved21:15;
-};
-struct DTMB_TOP_CTRL_DDC_ICFO_BITS {
- unsigned int ctrl_ddc_icfo:20, reserved22:12;
-};
-struct DTMB_TOP_CTRL_DDC_FCFO_BITS {
- unsigned int ctrl_src_sfo:17, ctrl_ddc_fcfo:14, reserved23:1;
-};
-struct DTMB_TOP_CTRL_TS2_BITS {
- unsigned int ctrl_ts2_workcnt:8,
- ctrl_pnphase_workcnt:8, ctrl_sfo_workcnt:8, sync_fe_workcnt:8;
-};
-struct DTMB_TOP_FRONT_AGC_BITS {
- unsigned int front_agc_if_gain:11,
- front_agc_rf_gain:11, front_agc_power:10;
-};
-struct DTMB_TOP_FRONT_DAGC_BITS {
- unsigned int front_dagc_power:8, front_dagc_gain:12, reserved24:12;
-};
-struct DTMB_TOP_FEC_LDPC_IT_AVG_BITS {
- unsigned int fec_ldpc_it_avg:16, fec_ldpc_per_rpt:13, reserved25:3;
-};
-struct DTMB_TOP_CTRL_ICFO_ALL_BITS {
- unsigned int ctrl_icfo_all:20, reserved26:12;
-};
-struct DTMB_TOP_CTRL_FCFO_ALL_BITS {
- unsigned int ctrl_fcfo_all:20, reserved27:12;
-};
-struct DTMB_TOP_CTRL_SFO_ALL_BITS {
- unsigned int ctrl_sfo_all:25, reserved28:7;
-};
-struct DTMB_TOP_FEC_LOCK_SNR_BITS {
- unsigned int che_snr:14,
- fec_lock:1, reserved29:1, che_snr_average:14, reserved30:2;
-};
-struct DTMB_TOP_CHE_SEG_FACTOR_BITS {
- unsigned int che_seg_factor:14, reserved31:18;
-};
-struct DTMB_TOP_CTRL_CHE_WORKCNT_BITS {
- unsigned int ctrl_che_workcnt:8,
- ctrl_fec_workcnt:8,
- ctrl_constell:2,
- ctrl_code_rate:2,
- ctrl_intlv_mode:1,
- ctrl_qam4_nr:1, ctrl_freq_reverse:1, reserved32:9;
-};
-struct DTMB_TOP_SYNC_CCI_NF1_BITS {
- unsigned int sync_cci_nf1_b1:10,
- sync_cci_nf1_a2:10, sync_cci_nf1_a1:10, reserved33:2;
-};
-struct DTMB_TOP_SYNC_CCI_NF2_BITS {
- unsigned int sync_cci_nf2_b1:10,
- sync_cci_nf2_a2:10, sync_cci_nf2_a1:10, reserved34:2;
-};
-struct DTMB_TOP_SYNC_CCI_NF2_POSITION_BITS {
- unsigned int sync_cci_nf2_position:11,
- sync_cci_nf1_position:11,
- sync_cci_nf2_det:1, sync_cci_nf1_det:1, reserved35:8;
-};
-struct DTMB_TOP_CTRL_SYS_OFDM_CNT_BITS {
- unsigned int ctrl_sys_ofdm_cnt:8,
- mobi_det_power_var:19,
- reserved36:1, ctrl_che_working_state:2, reserved37:2;
-};
-struct DTMB_TOP_CTRL_TPS_Q_FINAL_BITS {
- unsigned int ctrl_tps_q_final:7, ctrl_tps_suc_cnt:7, reserved38:18;
-};
-struct DTMB_TOP_FRONT_DC_BITS {
- unsigned int front_dc_q:10, front_dc_i:10, reserved39:12;
-};
-struct DTMB_TOP_CTRL_TOTPS_READY_CNT_BITS {
- unsigned int ctrl_dead_lock_det:1,
- ctrl_dead_lock:1,
- reserved40:2,
- ctrl_dead_cnt:4, reserved41:8, ctrl_totps_ready_cnt:16;
-};
-
-#endif