Commit Graph

8 Commits

Author SHA1 Message Date
Konsta
701855aaac cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-03-03 17:19:01 +02:00
Konsta
625166b4d3 cec: remove mock hal 2025-03-03 17:18:52 +02:00
Konsta
bbfd9e6e92 cec: copy hidl hal
* Copy from hardware/interfaces/tv/cec/1.0/default
  at b04e2f3df5ebbbeea46f555d0965357f05aa1457.
2025-03-03 17:18:41 +02:00
Konsta
defbbe6ab4 cec: remove legacy hal
This reverts commit c0a8378d8b and more.
2025-03-03 17:18:34 +02:00
Oleg Lyovin
0bd20356b5 CEC: fix use-after-free in hdmicec_close
Fields of 'ctx' are accessed just after it is freed.

Test: manual
Change-Id: I7c3786db9ae618d84149874c72662e4d105765b4
Signed-off-by: Oleg Lyovin <ovlevin@salutedevices.com>
2024-11-22 13:06:48 +02:00
Oleg Lyovin
f46a3147b5 CEC: do not join NULL thread
'hdmicec_close' may be called after exit_fd initialized,
but before ctx->thread created.

This patch checks it for NULL before join.

Test: manual
Change-Id: I1c57be56f2cd9956044d9a48fea914b1c1fd0132
Signed-off-by: Oleg Lyovin <ovlevin@salutedevices.com>
2024-11-22 13:06:48 +02:00
Konsta
77d8091ba1 cec: don't add port info if physical address is invalid
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/37.
2023-11-26 21:29:46 +02:00
Konsta
c0a8378d8b add hdmi cec hal
* Based on AOSP yukawa HDMI-CEC HAL
  https://android.googlesource.com/device/amlogic/yukawa/+/refs/heads/main/hal/hdmicec/
2023-07-25 15:20:44 +03:00