Commit Graph

654195 Commits

Author SHA1 Message Date
Mauro (mdrjr) Ribeiro
c3bd4017ab HID: apply patchs to support extra game pads
Ref: https://forum.odroid.com/viewtopic.php?f=177&t=34769#p263859
2019-08-05 12:45:49 +09:00
Joy Cho
4d3848c6af media: osd: Adjust osd scaler and vout serve to fit in KODI
Change-Id: Iab2b015061ba29fd407282be21509d01165b3d50
2019-08-05 12:45:39 +09:00
Dongjin Kim
63268f641a ODROID-N2: drm: bump kernel config (v4.9.185)
Change-Id: Ifa5d8997cbc5e56467beefdb7669e45e41699159
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-24 12:33:01 +09:00
Dongjin Kim
4024565903 ODROID-N2: config: add to enable VP9 media module
Change-Id: I53be464dc22f471d56a25ca25e41211d8c7b8ff0
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-23 17:56:44 +09:00
Dongjin Kim
da7c228b4d Revert "amlogic/vvp9: fix amlogic multi dec"
This reverts commit 2f12708b53a8b685a4ce281b5852f623fde74fa2.

Change-Id: I7749c37937c39ef2486a077e8f78217993a3d574
2019-07-23 17:56:44 +09:00
Dongjin Kim
b997e585bd ODROID-C3/N2: arch/arm64: fix suspend/resume failure
This patch is to fix the suspend/resume failure even after reverting
the commit below:
    [235aeafb93] arm64: Save and restore OSDLR_EL1 across suspend/resume

This change is discovered in the merging commit 'v4.9.174' and 'v4.9.180'.

Change-Id: Iec21cd95661582117974e76fa5117b5f686cd2e2
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-23 17:56:44 +09:00
Dongjin Kim
082fa6da26 ODROID-C3/N2: Revert "arm64: Save and restore OSDLR_EL1 across suspend/resume"
This reverts commit 235aeafb93.

Change-Id: Ib75ff0aec5bf326c3a14a6f120f71bddf049389c
2019-07-23 17:56:44 +09:00
Dongjin Kim
898891ad6f ODROID-N2: amlogic/media: fix compile error when AMLOGIC_LCD_TABLET is off
Change-Id: I71a509cdef29065955c9792781409c910d9104ec
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-23 17:56:44 +09:00
Dongjin Kim
5acaf4d455 ODROID-N2: config: update kernel config on 4.9.182
Change-Id: If111e911d4ad0a4fef894b6ec9dbc2ace13183db
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-23 17:56:44 +09:00
Dongjin Kim
554f030351 ODROID-C3/N2: remove Android device trees
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2019-07-23 17:56:44 +09:00
Dmitry_L
fff39c3b57 HDMI: Amlogic typo fix for CTS value according to HDMI specification 2019-07-23 17:52:49 +09:00
afl1
a0455f4223 media_modules:vc1/vp9: provide aspect_ratio information by AMSTREAM_IOC_VDECSTAT
add ration_control information in vdec_status function for
	vc1/vp9, and normalized it for
	aspect_ratio in AMSTREAM_IOC_VDECSTAT message.
2019-07-23 17:52:49 +09:00
Ray
d2cf4290e8 amlogic/deinterlace: Don't bypass if the stream is mixed Interlaced and
Progressive

It fixes slowdowns on I/P switching.
Some UK streams switch between I and P (mostly) in commercials. 98% of
the stream is still interlaced so it is safe to DI the whole stream.
2019-07-23 17:52:49 +09:00
Ray
376f0c0936 amlogic/deinterlace: Fix di vmap fail
Assign correct memory to mcinfo_vaddr
2019-07-23 17:52:49 +09:00
Joy Cho
14a5bf4602 ODROID-N2: clk: Update pll table to support 1.992GHz
Change-Id: Idb3565bb3e9f17950b9320c50fb5faf6564d1ef9
2019-07-23 17:52:49 +09:00
Portisch
987b4949fd ODROID-COMMON: add missing 'clocks' & 'clock-names' to node efuse 2019-07-23 17:52:49 +09:00
Portisch
cc9eee882e Revert "ODROID-COMMON: net/ethernet: MAC address from eFuse memory"
This reverts commit a79ad488a8.
2019-07-23 17:52:49 +09:00
Ray
334d542542 vh265: less kernel log spam 2019-07-23 17:52:49 +09:00
Ray
dd6cfe8904 vvc1: less pr_info spam 2019-07-23 17:52:49 +09:00
afl1
87bb377b1a h265: increase margin for dynamic buffers
Increasing margin from 7 to 8 fixes playback issue for some non-standard hevc streams.
2019-07-23 17:52:49 +09:00
afl1
1a28202b24 clean up compiler warnings 2019-07-23 17:52:49 +09:00
Ray
671f04279b amlogic/cpufreq: Register transition notifier only when dsu_clk and dsu_pre_parent are defined in device tree.
Fixes crash on suspend/resume
2019-07-23 17:52:49 +09:00
Ray
475c4a0446 amlogic/decoder/vh264: Define ENABLE_SEI_ITU_T35
This fixes fatal errors in the decoder when qos data is empty
2019-07-23 17:52:49 +09:00
Ray
4b2e4a2554 amlogic/decoder/vh264: use stretchblt_noalpha_noblk to not block ge2d 2019-07-23 17:52:49 +09:00
Ray
f326075229 amlogic/cec: reintroduce CEC changes for libcec 2019-07-23 17:52:49 +09:00
Ray
b56d62b1d2 amlogic/decoder/vh265: Add if/else check that was removed with bsp merge 2019-07-23 17:52:49 +09:00
Ray
3bcd0a9f79 amlogic/video: Add back VIDEO_NOTIFY_TRICK_WAIT 2019-07-23 17:52:49 +09:00
Ray
feb8346ab8 dts/amlogic: Add ppmgr for meson64_odroidn2 2019-07-23 17:52:49 +09:00
Portisch
53fc7a5a5b video_sink: add amvideocap module This will add the amvideocap module to kernel 4.9 If the frame rate is higher than 30 fps each second frame get captured. stretchblt: fix missing block assignment in _stretchblt_noalpha 2019-07-23 17:52:49 +09:00
Portisch
b2f2126dcb rc: implement ir-irmp-decoder 2019-07-23 17:52:49 +09:00
Portisch
55f8a7543f rc: irmp: enable common used ir protocols 2019-07-23 17:52:49 +09:00
Portisch
b9e90987a8 rc: port irmp to be able to use measured pulses Use U_BOOT_COMPATIBLE flag for raw IR bit data Tweak RC6 tolerances 2019-07-23 17:52:49 +09:00
Portisch
94ec01db12 rc: add original irmp 3.1.2 Source: https://github.com/svn2github/irmp 2019-07-23 17:52:49 +09:00
afl1
d29302a188 EXPORT_SYMBOL(videosync_pcrscr_update) 2019-07-23 17:52:49 +09:00
afl1
2211c47f93 type override 2019-07-23 17:52:49 +09:00
cdu13a
814e42f009 media/rc: meson-ir fixes from 3.14
Use meson-ir fixes from 3.14 temporarily until I get a chance to finish IR RC backport from mainline.
2019-07-23 17:52:49 +09:00
Alex Deryskyba
5ddb7c1a8c rc: meson-ir: switch config to NEC decoding on shutdown
On the Amlogic SoCs, the bootloader firmware can handle the IR hardware
in order to Wake up or Power back the system when in suspend on
shutdown mode.

This patch switches the hardware configuration in a state usable by the
firmware to permit powering the system back.

Some vendor bootloader firmware were modified to switch to this
configuration but it may not be the case for all available products.

This patch was originally posted at [1].

[1] https://github.com/LibreELEC/linux-amlogic/pull/27

Signed-off-by: Alex Deryskyba <alex@codesnake.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2019-07-23 17:52:49 +09:00
Javier Martinez Canillas
4932b33f6b rc: meson-ir: Fix module autoload
If the driver is built as a module, autoload won't work because the module
alias information is not filled. So user-space can't match the registered
device with the corresponding module.

Export the module alias information using the MODULE_DEVICE_TABLE() macro.

Before this patch:

$ modinfo drivers/media/rc/meson-ir.ko | grep alias
$

After this patch:

$ modinfo drivers/media/rc/meson-ir.ko | grep alias
alias:          of:N*T*Camlogic,meson-gxbb-irC*
alias:          of:N*T*Camlogic,meson-gxbb-ir
alias:          of:N*T*Camlogic,meson8b-irC*
alias:          of:N*T*Camlogic,meson8b-ir
alias:          of:N*T*Camlogic,meson6-irC*
alias:          of:N*T*Camlogic,meson6-ir

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2019-07-23 17:52:49 +09:00
cdu13a
73ce6190f0 use GPIOA_13(pin 7 on 40pin connector) for Spdifout by default 2019-07-23 17:52:49 +09:00
Ray
eb732e5137 amstream.c: Tweak video buffers 2019-07-23 17:52:49 +09:00
afl1
501ba82e9a enable build amlvideodri.ko 2019-07-23 17:52:49 +09:00
afl1
44da2c4a27 amlogic/vvp9: fix amlogic multi dec 2019-07-23 17:52:49 +09:00
Ray
4556bca7ba amlogic/vh264: Set enable_switch_fense to 0 2019-07-23 17:52:49 +09:00
afl1
1d6f5d8d7c amlogic/vh264: non-idr or non-I frame will set pts_valid 2019-07-23 17:52:49 +09:00
afl1
0cc5280261 amlogic/vh264: use error_recovery_mode = 1 for H264 2019-07-23 17:52:49 +09:00
Ray
c0792126ba amlogic/vmpeg4: calculate PTS from DTS for PTS_ON_KEYFRAME 2019-07-23 17:52:49 +09:00
Ray
3dfe633fbb amlogic/vvc1: calculate PTS from DTS for PTS_ON_KEYFRAME 2019-07-23 17:52:49 +09:00
Ray
b22960d9f5 AML: v4l2_qbuf 2019-07-23 17:52:49 +09:00
Ray
64c70a5b1a deinterlace.c: bypass on progressive 2019-07-23 17:52:49 +09:00
afl1
b357a898bd TSin: fix FEC_INPUT_CONTROL 2019-07-23 17:52:49 +09:00