$(_media_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
@mkdir -p $(dir $@)
@cp -R $(MEDIA_PATH)/* $(_media_intermediates)/
- $(hide) +$(KERNEL_MAKE_CMD) $(PATH_OVERRIDE) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_media_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) EXTRA_CFLAGS="$(MEDIA_CFLAGS)" $(MEDIA_CONFIGS) modules
+ $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(KERNEL_OUT) M=$(abspath $(_media_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) EXTRA_CFLAGS="$(MEDIA_CFLAGS)" $(MEDIA_CONFIGS) modules
modules=$$(find $(_media_intermediates) -type f -name '*.ko'); \
for f in $$modules; do \
$(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $$f; \
#include <linux/dma-direction.h>
#include <linux/amlogic/media/codec_mm/codec_mm.h>
-typedef unsigned long long u64;
-typedef signed long long s64;
-typedef unsigned int u32;
-typedef unsigned short int u16;
-typedef short int s16;
-typedef unsigned char u8;
-
#define CODEC_MODE(a, b, c, d)\
(((u8)(a) << 24) | ((u8)(b) << 16) | ((u8)(c) << 8) | (u8)(d))
return -ENOMEM;
inst->vdec.video_type = VFORMAT_MPEG4;
- inst->vdec.format = VIDEO_DEC_FORMAT_MPEG4_5;
+ inst->vdec.format = (enum vformat_e)VIDEO_DEC_FORMAT_MPEG4_5;
inst->vdec.dev = ctx->dev->vpu_plat_dev;
inst->vdec.filp = ctx->dev->filp;
inst->vdec.config = ctx->config;
#define DOUBLE_WRITE_YSTART_TEMP 0x02000000
#define DOUBLE_WRITE_CSTART_TEMP 0x02900000
-
-
-typedef unsigned int u32;
-typedef unsigned short u16;
-
#define AVS2_DBG_BUFMGR 0x01
#define AVS2_DBG_BUFMGR_MORE 0x02
#define AVS2_DBG_BUFMGR_DETAIL 0x04
hevc->platform_dev = pdev;
if (((get_dbg_flag(hevc) & IGNORE_PARAM_FROM_CONFIG) == 0) &&
- pdata->config && pdata->config_len) {
+ pdata->config_len) {
#ifdef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
/*use ptr config for doubel_write_mode, etc*/
hevc_print(hevc, 0, "pdata->config=%s\n", pdata->config);
//typedef char int8_t;
//#ifndef BUFMGR_FOR_SIM
-typedef unsigned char uint8_t;
+//typedef unsigned char uint8_t;
//#endif
-typedef unsigned int uint32_t;
+//typedef unsigned int uint32_t;
//typedef int int32_t;
//typedef long long int64_t;
} BuffInfo_t;
#endif
-#define va_start(v,l) __builtin_va_start(v,l)
-#define va_end(v) __builtin_va_end(v)
-#define va_arg(v,l) __builtin_va_arg(v,l)
/*
mem.h
*/
#define LOSLESS_COMPRESS_MODE
#endif
-typedef unsigned int u32;
-typedef unsigned short u16;
-
-
static u32 get_picture_qos;
static u32 debug;
#define DOUBLE_WRITE_YSTART_TEMP 0x02000000
#define DOUBLE_WRITE_CSTART_TEMP 0x02900000
-
-
-typedef unsigned int u32;
-typedef unsigned short u16;
-
#define VP9_DEBUG_BUFMGR 0x01
#define VP9_DEBUG_BUFMGR_MORE 0x02
#define VP9_DEBUG_BUFMGR_DETAIL 0x04
if (ret != 0)
return -EINVAL;
- val = val;
+
reset_canuse_buferlevel(val);
return size;
}
return size;
}
- if ((parm[0][0] == 'r')) {
+ if (parm[0][0] == 'r') {
if (n > 2) {
pr_err("read: invalid parameter\n");
kfree(buf_orig);
break;
}
pr_dbg("%s: 0x%x --> 0x%x\n", parm[0], addr, retval);
- } else if ((parm[0][0] == 'w')) {
+ } else if (parm[0][0] == 'w') {
if (n != 3) {
pr_err("write: invalid parameter\n");
kfree(buf_orig);
break;
}*/
pr_dbg("%s: 0x%x <-- 0x%x\n", parm[0], addr, retval);
- } else if ((parm[0][0] == 'f')) {
+ } else if (parm[0][0] == 'f') {
pr_dbg("full test----\r\n");
aml_spi_ca_full_test(ci);
- } else if ((parm[0][0] == 'c')) {
+ } else if (parm[0][0] == 'c') {
pr_dbg("cis test----\r\n");
aml_ci_full_test_by_spi(ci, 0, addr);
- } else if ((parm[0][0] == 'p')) {
+ } else if (parm[0][0] == 'p') {
pr_dbg("cis dvb_ca_en50221_parse_attributes----\r\n");
dvb_ca_en50221_parse_attributes();
}
if (!g_usb)
return 0;
- id = id;
-
cimax_usb_device_open(dev);
cimax_usb_select_interface(dev, 3);
pr_dbg("dev remove\n");
if (!g_usb)
return 0;
- id = id;
pr_dbg("setup poll -> stop\n");
cimax_usb_setup_poll(g_usb, STOP_MODE);
pr_dbg("setup poll end\n");
idx, 0, hdr, 2);
if (connection_id == -1)
connection_id = hdr[0];
- if ((hdr[0] == connection_id)
+ if (hdr[0] == connection_id
#ifndef READ_LPDU_PKT
&& ((hdr[1] & 0x80) == 0)
#endif
dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 0, hdr, 2);
if (connection_id == -1)
connection_id = hdr[0];
- if ((hdr[0] == connection_id)
+ if (hdr[0] == connection_id
#ifndef READ_LPDU_PKT
&& ((hdr[1] & 0x80) == 0)
#endif
for (i = 0; i < dvb->async_fifo_total_count; i++) {
if (!dvb->asyncfifo[i].init)
continue;
- if ((dvb->asyncfifo[i].source == dmx->id)
+ if (dvb->asyncfifo[i].source == dmx->id
/*&& !(dvb->swfilter.user && (i==SF_AFIFO_ID)) */
/*sf mode reserved */
) {
return -ERESTARTSYS; \
count = 0;\
for (fid = 0; fid < dmx->filternum; fid++) {\
- if (!dmx->filter[fid].state != DMX_STATE_FREE)\
+ if (!(dmx->filter[fid].state != DMX_STATE_FREE)) \
count++;\
} \
mutex_unlock(&dmx->mutex);\
count = 0;
for (fid = 0; fid < dmx->filternum; fid++) {
- if (!dmx->filter[fid].state != DMX_STATE_FREE)
+ if (!(dmx->filter[fid].state != DMX_STATE_FREE))
count++;
else {
r = sprintf(buf, "fid:%d, pid:0x%0x, state:%d\n", fid, dmx->filter[fid].feed->pid,
ssize_t r;
r = kstrtoint(buf, 0, &address);
- if ((r == 0))
+ if (r == 0)
return -EINVAL;
#if 0
if (subtitle_data[subtitle_write_pos].subtitle_size > 0) {