Commit Graph

649606 Commits

Author SHA1 Message Date
Lei Yang
c8bf7d80f9 hdmirx: add packet analysis of hdr10plus [1/1]
PD#SWPL-9686

Problem:
hdmirx cannot support HDR10plus

Solution:
add packet analysis of hdr10plus.

Verify:
tm2_ab311.

Change-Id: Ic98c3fa57ce6da3262285febc587fb2cac2be0fa
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-07-19 02:06:05 -07:00
Bencheng Jing
f8dc7d06f7 mcdi: keep g12a/g12b/sm1 reg_mcdi_qmeen same as gxlx2 [1/2]
PD#SWPL-10411

Problem:
reg_mcdi_qmeen is enable by driver

Solution:
disable reg_mcdi_qmeen

Verify:
u212

Change-Id: I02887fab37a0bbeb43bfa83a4a5a2e446bebb9c1
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
2019-07-19 15:59:12 +08:00
Pengcheng Chen
0353f8ec76 vpp: fix afbc scope set when video reverse [1/1]
PD#SWPL-9397

Problem:
afbc scope set error when video reverse and afbc width not aligned

Solution:
fix afbc scope set when video reverse

Verify:
Verify on TL1-x301

Change-Id: I1631c18192f438bfb6e60c3970789a903d0a3d19
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-18 23:05:08 -07:00
Yong Qin
40c051b31d cec: during resume received OTP msg again [1/1]
PD#TV-7837

Problem:
when tv power on by OTP, when during power on, tv received
OTP again, then needn't send power key. and need send a event
to android.

Solution:
when cec driver is power on, needn't send power event to android.

Verify:
tl1

Change-Id: I8807c5cbbcab831577fdc23062a78454c2106167
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-18 22:34:10 -07:00
Dezhi Kong
dfd10b8b25 drm: add sm1 support [1/1]
PD#SWPL-8061

Problem:
SM1 support

Solution:
add sm1 support

Verify:
verify by ac200 with modetest command

Change-Id: Id79f227afa7f7dbcaad09887f8bdbd1f64b93c4a
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-07-18 19:30:51 -07:00
Pengcheng Chen
988d3357cd osd: fixed fb mmap failed on android [3/3]
PD#SWPL-6631

Problem:
dolby vision graphic tests need fb_test

Solution:
Alloc buffer when mmap

Verify:
verified on tm2 t96e2

Change-Id: I12896d7ef9ad4a8122e2784c4692ff2d0bc69d1b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-19 10:09:57 +08:00
Yong Qin
0a5cea9aba vdin: for support dv ll mode [1/1]
PD#SWPL-2894

Problem:
vdin for support DV LL mode

Solution:
1.add dv 1.5 LL mode support
2.fix vdin mem dump method,only dump active zone
3.add support RGB and 12bit for dv LL mode
4.add vsi info param of dv LL mode
5.dolby vision LL 422 12bit mode,RX need to enable tunnel

Verify:
tl1

Change-Id: I4ddad1310bcc6d2f777bf7099ac26fe2db812b22
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-18 18:46:33 -07:00
Yong Qin
b3674a714b cec: none tv chip set arc cause crash [1/1]
PD#OTT-5149

Problem:
ceca isr cost long time, and delayed vdin vs.

Solution:
move function to tasklet

Verify:
test on txlx customer platform.

Change-Id: Iaae5b682f858787b25527518d2f787c3ee73e1be
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-18 02:03:24 -07:00
Sandy Luo
73a0b4ff02 TL1: dts: change dvfs table [1/1]
PD#SWPL-10848

Problem:
ARM vfp d8 error.

Solution:
Add DFVS voltage

Verify:
TL1 X301

Change-Id: I780daaa5326c99c80e246ce1a1797fb5ed13a518
Signed-off-by: Sandy Luo <sandy.luo@amlogic.com>
2019-07-18 01:46:04 -07:00
Hong Guo
c3c6c9b774 supsend: clear wakeup reason after reusme. [1/1]
PD#SWPL-11035

Problem:
clear wakeup reason after reusme.

Solution:
clear wakeup reason after reusme.

Verify:
test pass on t962x2-x301 ,g12b_400

Change-Id: I19360dbf1c7a1cf9460417b00c8af6ebc818beba
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
2019-07-17 23:04:05 -07:00
yao liu
be32d1321f osd: add osd blend bypass function for tm2 [2/3]
PD#SWPL-6631

Problem:
dv certification need osd blend bypass

Solution:
add osd blend bypass function

Verify:
verified on tm2 t96e2

Change-Id: I91ba9c622aacc7bc9ad657105fd5e53a3cee595b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-17 22:26:17 -07:00
yao liu
54a6ce5fa8 dolby: fix tm2 end-to-end test [1/3]
PD#SWPL-6631

Problem:
5213/5214/5217 480p graphic tests fail
due to g_vpotch is too small

Solution:
incread g_vpotch from 0x20 to 0x60 for resolution below 720p

Verify:
verified on tm2 t96e2

Change-Id: Iedeaaf485c9ffea703d344edd7ed4b5187e78f1f
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-17 22:25:25 -07:00
Jihong Sui
9148ddea18 deinterlace: increasing protection for unreg [1/2]
PD#SWPL-10149

Problem:
random crash when stress test

Solution:
1. delete recycle keep buff when bypass;
2. adjusting judgment timing about pre_de_buf_config;

Verify:
TL1

Change-Id: I7b0716ce35234d2342cdc13fcf0d51211f579d13
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-17 20:38:34 -07:00
Jian Hu
e4d93f2ab5 clk: sm1: fix cpu clock hangup [1/1]
PD#SWPL-10033

Problem:
it will hangup when play video

Solution:
using the origin clk-mux ops to register cpu clock

Verify:
test passed on sm1

Change-Id: I1a21eb28d8af3d68a70c89c37fff857fb416c9a8
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2019-07-17 06:20:24 -07:00
sky zhou
67bc8600cb vdin: remove hardcode manual buffer cnt. [1/3]
PD#TV-7344

Problem:
current vdin1 use hardcode buffer cnt 4, it
is not good for user space program.

Solution:
Check passed buffer fd arry, so we can read variable
fd num.

Verify:
verified on macroni

Change-Id: I9bc07e45a3716423dc037a5d966c9b6b5eafcdfe
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2019-07-16 23:43:55 -07:00
sky zhou
e4d73cadd7 osd: osd ext leaked buf when viu2 displaymode is NULL. [1/1]
PD#TV-7713

Problem:
osd buffer leaked dma buffer when switch
display pipe.

Solution:
when viu is NULL, osd need still release correct
display file.

Verify:
verified on macroni

Change-Id: Ib2df6b022b6fd654430eedae08e351ae53701fc1
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2019-07-16 22:03:25 -07:00
Gongwei Chen
fed0e91879 dts: gpio keypad in u202 [1/2]
PD#SWPL-11212

Problem:
The physical keys are not working

Solution:
add gpio keypad in u202

Verify:
Verify by Android P u202

Change-Id: I0c97d2ffd7f8712b4584c81b1b9007f45755ec7c
Signed-off-by: GongWei Chen <gongwei.chen@amlogic.com>
2019-07-16 21:00:37 -07:00
Huan Biao
a48b323ba8 dts: thermal: fix gpu pp get fail issue [1/1]
PD#SWPL-11138

Problem:
gpufreq cooling device init get gpu pp fail

Solution:
get gpu pp from gpu dts

Verify:
verified on s905x p212

Change-Id: I0dfa8f6ff2a767432177301b32acdceb0f5e3462
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-07-16 21:00:17 -07:00
Tao Zeng
12dd9fafd9 kasan: close vmap if enabled kasan [1/1]
PD#SWPL-10141

Problem:
if opened kasan with vmap, there will be some wrong kasan reports

Solution:
close vmap if open kasan

Verify:
p212

Change-Id: I37cdcb26cfb6fe87529db1ece3b7740ac072ba1a
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-07-16 20:07:44 -07:00
Huan Biao
b45e2bc0c1 thermal: add s912 thermal support [1/2]
PD#SWPL-11152

Problem:
s912 thermal init fail

Solution:
fix thermal dts
fix thermal cpuid get issue

Verify:
verified on s912 q201

Change-Id: Id2802621c5c8d711bfcbc5684252ac0dd519900a
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
2019-07-16 19:57:03 -07:00
zhiwei.yuan
40c56343e8 vdin: switch to ATV source,snowflake screen showing pink [1/1]
PD#SWPL-11340

Problem:
matrix setting is wrong

Solution:
for snowflake brightness, only need coef0, disable coef1 & 2

Verify:
verified by t962x2_x301

Change-Id: Id248803541fbb68004ea61bd2aa7dfc57408e787
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-16 19:33:06 -07:00
Qianggui Song
61c29936bb ir: fix allocation of memory without size check issue [1/1]
PD#SWPL-11248

Problem:
When handling the set attribute IOCTL REMOTE_IOC_SET_KEY_NUMBER, the driver
does not limit the size of allocation with kzalloc.

Solution:
Limit the size of alllcation range, if given a value out of range, set
update flag to false and do nothing in kzalloc stage.

Verify:
W400

Change-Id: I6a4150f5615557c372738c918aad86120d149340
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2019-07-16 06:18:18 -07:00
Yue Wang
9ad60eaa9c usb: dma-mapping: prevent writeback deadlock in CMA allocator [1/1]
PD#SWPL-11362

Problem:
A deadlock happens when a task initiates a CMA allocation that triggers
a page migration *AND* the tasks holding the subsequent pages have to
writeback their pages using CMA allocations.

In such a situation, the task that has triggered the page migration
holds a mutex that prevents other tasks from migrating their pages using
that same CMA allocator. This leads to a deadlock.

Solution:
The CMA is incapable of honoring the NOIO flags in some scenario, thus
cannot be used for writeback. The fix allows the code that chooses which
allocator to use in the ARM platform to avoid the CMA case for that
scenario.

The ARM DMA layer checks for allow blocking flag (_GFP_BDEV) to decide
whether to go for CMA or not. That test is not sufficient to cover the
case of writeback (GFP_NOIO).

The fix consists in adding a gfp_allow_writeback helper that tests for
the __GFP_IO flag. Then, the DMA layer uses it to decide not to go for
CMA in case of writeback.

Verify:
TL1

Change-Id: I175eb94de588234d3de2dc7f65dafe980e2636af
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2019-07-16 01:19:27 -07:00
nengwen.chen
b398f1b751 atv_demod: after afc adjusts freq and stable, sync to settings to get freq [1/1]
PD#TV-7462

Problem:
after afc adjusts freq and stable, sync to settings to get freq.

Solution:
1.after afc adjusts freq and stable, sync to settings to get freq.

Verify:
Verified by x301

Change-Id: Id78a7f974345fd428f9bb185c36fcbe7b93f4ac2
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-15 20:05:27 -07:00
yao liu
9bef8811a8 dolby: fix 5008 crc error [1/1]
PD#SWPL-10487

Problem:
1.tb39 new case 5008, dm version is 3,
core3 raw_metadata overflow
2.core3 raw_metadata 207 overwrite core3 clkgate_ctrl
and core3 swap_ctrl0 andsawp_ctrl1 reg.

Solution:
1.Increase raw_metadata size to 512
2.Force dv_mode to DOLBY_VISION_OUTPUT_MODE_IPT, output
ipt444 12bit for 5008.
3.Dont set core3 metadata reg when scramble disabled or
metedata size > 204

Verify:
verified on sm1

Change-Id: I459736eb42eb14fe3fe0dc054eb6693c88967741
Signed-off-by: yao liu <yao.liu@amlogic.com>
2019-07-15 05:07:46 -07:00
zhiwei.yuan
fc865a10c3 vdin: subtitle is disappear after hot_plug signal cable [1/1]
PD#SWPL-11151

Problem:
signal format is null when start dec

Solution:
do not change signal format when signal is unstable

Verify:
verified by t962x2_x301

Change-Id: I14a9247e83c15aecac1939f3270f46642a6d3a22
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-15 03:45:23 -07:00
Xiaoming Sui
5df81882e5 avsync: tsync: fix the avsync issue [1/3]
PD#SWPL-8590

Problem:
inprove avsync accuracy when play

Solution:
1: calc the pts and pcr diff from the stream;
2: do the hold or drop audio data;
3: reclac the timestamp when paly;

Verify:
X301

Change-Id: I176bb2e19c1c538cfb9a8203d1303ee700a4927c
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
2019-07-14 23:13:20 -07:00
Evoke Zhang
07e33ba84b tvafe: fix identify as PAL-DK when the input signal is SCAM DK [1/1]
PD#TV-7779

Problem:
identify as PAL-DK when the input signal is SECAM DK

Solution:
increase atv try_fmt max cnt to recognize SECAM

Verify:
x301

Change-Id: I306f2337b6b2c3d0b4ec2fc85e45f9f5993b754b
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2019-07-14 22:34:19 -07:00
Yong Qin
3776e28ee5 vlock: when quite vlock, restore pre pll value [1/1]
PD#TV-6743

Problem:
exit hdmi source, display many horizontal fine lines.
restore m/f value is wrong.

Solution:
when exit vlock, need restore m/f value from backup.

Verify:
T950X

Change-Id: If0d1b3758a19547675aa4bef920168c20ca83939
Signed-off-by: Yong Qin <yong.qin@amlogic.com>
2019-07-14 22:33:16 -07:00
Tao Zeng
38a37f0acc sched: change sleep api for __migration_entry_wait [1/1]
PD#TV-7519

Problem:
schedule_timeout did not really make task sleep. It will cause
rt thread bug when this thread is waiting for a cma page migrated:
sched: RT throttling activated for rt_rq eaf671b8 (cpu 1)
potential CPU hogs:
        btu message loo (4253)
[<c037d5b8>] task_tick_rt+0x0/0x120
[<c037d914>] pick_next_task_rt+0x1cc/0x1e4
[<c0fa8534>] __schedule+0x598/0x91c
[<c0fa891c>] schedule+0x64/0xc4
[<c0fac134>] schedule_timeout+0x1dc/0x47c
[<c0493ba4>] __migration_entry_wait+0x168/0x194
               ~~~~~blocked here
[<c0493c20>] migration_entry_wait+0x50/0x54
[<c0473008>] do_swap_page+0x404/0x4e8
[<c047357c>] handle_mm_fault+0x1ec/0xa60
[<c031a2f0>] do_page_fault+0x2d4/0x3a8
[<c0301408>] do_PrefetchAbort+0x48/0xb0
[<c030f78c>] ret_from_exception+0x0/0x34

Solution:
using usleep_range instead of schedule_timeout

Verify:
t905x

Change-Id: I908022b747ad921b5863af377291abdf06672f15
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2019-07-14 19:53:55 -07:00
Jihong Sui
63b802f6d1 deinterlace: process prog 420 as 422 [1/1]
PD#SWPL-11051

Problem:
Abnormal display of red subtitles

Solution:
process prog 420 as 422

Verify:
tl1

Change-Id: I46e0af178d6d87fc3a815f70c5a84d0f80772b6c
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
2019-07-13 18:56:49 -07:00
Pengcheng Chen
e6f679d6a5 dv: switch dv core3 after wm, osd_hdr and vd2_hdr [1/1]
PD#SWPL-11113

Problem:
need verify dv core3 can set after wm, osd_hdr and vd2_hdr

Solution:
switch dv core3 after wm, osd_hdr and vd2_hdr

Verify:
verified on T962e2_ab311

Change-Id: Iac5d6d113c9dc5d76dff3ef5911263a1c9dca159
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-13 18:56:03 -07:00
zhiwei.yuan
1a556a27d1 vdin: tm2,the picture is greenish when do hdmi cts [1/1]
PD#SWPL-9762

Problem:
HDR2 matrix setting is incorrect

Solution:
disable hdr2 matrix when no need do conversion

Verify:
verified by t962x3_ab301

Change-Id: I2ca1fbd2ccea5fa76e7109ecdca4141dccffebc2
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-13 18:15:13 -07:00
Nan Li
3791025d14 sdio: optimize sdio clk cfg [2/2]
PD#SWPL-9640

Problem:
sdio auto_clk close fail.

Solution:
optimize sdio auto_clk cfg,
add sdio_clk_always_on(int on).

Verify:
G12A_u211

Change-Id: Id760b41a948c6b7e15f675376084b0cdd4edc151
Signed-off-by: Nan Li <nan.li@amlogic.com>
2019-07-12 04:22:35 -07:00
Hang Cheng
d8fc3cc827 hdmirx: add version parse of current edid [1/1]
PD#SWPL-10930

Problem:
1.hdmirx driver does't know currently used edid version
2.SCDC only used for HDMI2.0 mode

Solution:
1.add version parse of current edid
2.Disable SCDC for HDMI1.4 mode

Verify:
TL1-x301

Change-Id: I00f05fee1d1d61847983ee390556644b03b456a3
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2019-07-11 05:52:32 -07:00
Zongdong Jiao
6e30b211aa hdmitx: remove unnecessary rxsense check [1/1]
PD#IPTV-3767

Problem:
When plugin, this check may block EDID reading

Solution:
Remove unnecessary rxsense check

Verify:
G12/P261

Change-Id: Ida42bc6b9b17e6e9d0d177e48ce3cf33949fdf5d
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2019-07-11 04:35:44 -07:00
Dezhi Kong
1f1efcfdd8 drm: add multi-layer support [1/1]
PD#SWPL-9646

Problem:
unsupport multi-layer

Solution:
add multi-layer support

Verify:
verify by w400 with modetest command

Change-Id: I5cd50761d2ab9cfff0f80d38e20455044c7a33fd
Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
2019-07-11 10:10:57 +08:00
Cheng Wang
069f36f897 amvecm: new feature, add HDR10+ to sdr function [1/1]
PD#SWPL-788

Problem:
new feature, add hdr10+ to sdr function

Solution:
new feature, add hdr10+ to sdr function

Verify:
on x301

Change-Id: Id2bc14db0be8915ba98588c7e1a7b940421e6aa2
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2019-07-10 18:34:54 -07:00
Pengcheng Chen
702cf2a667 vpp: update vpp out size when vinfo changed [1/1]
PD#TV-7616

Problem:
vpp out size not updated when vinfo changed

Solution:
update vpp out size when vinfo changed

Verify:
verified on T962x2

Change-Id: I48e39f8cf855ed31add0b9ea93a96fa63325899a
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-10 02:13:03 -07:00
Pengcheng Chen
11450b1a3e viu2: set viu2 matrix for vinfo viu_format [1/1]
PD#SWPL-8255

Problem:
viu2 display color abnormal

Solution:
set viu2 matrix for vinfo viu_format

Verify:
w400

Change-Id: Ifbe5b85416fe31b60b1bde7cad80a4bcfd036721
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-10 15:42:56 +08:00
Pengcheng Chen
a5efca3c57 osd: add viu2 support for sm1 and tm2 [1/1]
PD#SWPL-10934

Problem:
viu2 not support for sm1

Solution:
add viu2 support for sm1 and tm2

Verify:
verified on sm1

Change-Id: I3988a84b64b952a76b1b262227e11682f28c7cdd
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-10 00:28:37 -07:00
Pengcheng Chen
3ef4b01c1b dv: switch vd1/vd2 before dolby core1/2 and after dolbycore1/2 [1/1]
PD#SWPL-6627

Problem:
verify vd1/vd2 can switch before dolby core1/2 and after dolbycore1/2

Solution:
add core1_switch to switch vd1/vd2 before dolby core1/2 and after
dolbycore1/2

Verify:
verified on t962e2 AB311

Change-Id: I3348b906357c93d0c7a40066880bc2f029badb77
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-10 00:05:28 -07:00
Pengcheng Chen
b6b7e0511c dv: add copy dv core1a to dv core1b func [1/1]
PD#SWPL-6630

Problem:
need verify dv core1b(vd2) connect with dolby core3

Solution:
1. use videopip_loop
2. copy dv core1a to dv core1b

Verify:
verified on t962e2 AB311

Change-Id: Ib137c6b420fa71aa0756bf9558fdbe66ef0c6e94
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2019-07-09 22:31:38 -07:00
zhiwei.yuan
c64ebd3261 tvafe: T962E2 Low probability of crashing at startup [1/1]
PD#SWPL-9276

Problem:
mem allocate fail sometimes by using dma_alloc_coherent

Solution:
use kzalloc instead

Verify:
verified by t962x3_ab301

Change-Id: Iec58746b7e269d307f88037216b7a778d18774ec
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
2019-07-09 22:30:14 -07:00
Ville Syrjälä
c7245fe462 drm/atomic: Make private objs proper objects
Make the atomic private object stuff less special by introducing proper
base classes for the object and its state. Drivers can embed these in
their own appropriate objects, after which these things will work
exactly like the plane/crtc/connector states during atomic operations.

v2: Reorder to not depend on drm_dynarray (Daniel)

Change-Id: I475f3c46440934b8d6f461935b6413624b7d34c7
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
Signed-off-by: Ville Syrj?l? <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712155102.26276-3-ville.syrjala@linux.intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-07-09 19:27:50 +08:00
Pandiyan, Dhinakaran
90f028c3da drm: Add driver-private objects to atomic state
It is necessary to track states for objects other than connector, crtc
and plane for atomic modesets. But adding objects like DP MST link
bandwidth to drm_atomic_state would mean that a non-core object will be
modified by the core helper functions for swapping and clearing
it's state. So, lets add void * objects and helper functions that operate
on void * types to keep these objects and states private to the core.
Drivers can then implement specific functions to swap and clear states.
The other advantage having just void * for these objects in
drm_atomic_state is that objects of different types can be managed in the
same state array.

v7: Use __for_each_private_obj to define for_each_private_obj (Maarten)
v6: More kernel-doc to keep 0-day happy
v5: Remove more NULL checks (Maarten)
v4: Avoid redundant NULL checks when private_objs array is empty (Maarten)
v3: Macro alignment (Chris)
v2: Added docs and new iterator to filter private objects (Daniel)

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Harry Wentland <Harry.wentland@amd.com>

Change-Id: I1d906ca120167b8b25a5e959b332c5bea55a97b7
Acked-by: Harry Wentland <harry.wentland@amd.com>
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1492753893-3748-2-git-send-email-dhinakaran.pandiyan@intel.com
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2019-07-09 19:27:36 +08:00
Cheng Tong
35d05d4d14 dts: T312 add config for dtv tuner si2169 [1/2]
PD#SWPL-10672

Problem:
Add config for dtv tuner si2169

Solution:
Add dtv tuner si2169 as default
and add tuner i2c config

Verify:
Verified by T312

Change-Id: Ib64871f37e03f84beb8d8174e9e5b5ec0f722115
Signed-off-by: Cheng Tong <cheng.tong@amlogic.com>
2019-07-09 04:12:47 -07:00
nengwen.chen
d94280e10c atv_demod: add nicam detection when current signal fm-mono change to nicam [1/1]
PD#TV-7335

Problem:
add nicam detection when current signal fm-mono change to nicam.

Solution:
1.add nicam detection when current signal fm-mono change to nicam.

Verify:
Verified by x301

Change-Id: If2e35d018d2df803c5458cc93974352b06e90a11
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2019-07-09 04:08:02 -07:00
Zhuo Wang
1602000efd ethernet: enhance window function [1/1]
PD#SWPL-10876

Problem:
add del 2ns function

Solution:
add del 2ns function

Verify:
verify on u200 board

Change-Id: I949a1d85e41d0b0e03708243f9559f8de63b0e54
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2019-07-09 04:07:33 -07:00
Zhe Wang
7e884b65a3 audio: add clip thd control interface [1/3]
PD#SWPL-10716

Problem:
when audio signal change from -30dB to 0dB, audio suddenly output power
is higher than 150% instantaneous maximum power

Solution:
add clip thd control interface

Verify:
verified on TL1-X301

Change-Id: Id16ba3c220a22b473eaa1e3ff87bf5dde2a83227
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
2019-07-09 03:00:46 -07:00