Commit Graph

36 Commits

Author SHA1 Message Date
Thilo Graf
0306131e6b libstb-hal: hdmi_cec: ensure time compatibility for rc_sync with _TIME_BITS=64
This commit replaces commit:

 libstb-hal: Fix compatibility issues with struct input_event time assignment

These issues arose because of updates in OE/Yocto versions (e.g. >= Honister),
which introduced changes requiring these adjustments.

- Added conditional compilation to check for input_event_sec.
- Updated hdmi_cec::rc_sync method to use appropriate time fields for 64-bit suseconds.
- Maintained backward compatibility for older systems with 32-bit suseconds.
- Leveraged macros defined in input.h for clarity and maintainability.

This should ensure proper handling of suseconds and maintain backward
compatibility with older systems.
This implementation uses input_event_sec and input_event_usec macros for clarity and maintainability.
This changes shuold resolve build issues encountered due to compatibility
problems with newer versions of libraries.

It is quite certain that similar adjustments will need to be made in
other files. However, since I have only worked on this platform so far,
only this part of the code was noticeable at first. It should be noted
that this problem likely does not "yet" affect older build systems,
but it will become necessary at some point.
This also applies to Neutrino (adjustments will follow).


Origin commit data
------------------
Branch: master
Commit: 7d247534d0
Author: Thilo Graf <dbt@novatux.de>
Date: 2024-09-02 (Mon, 02 Sep 2024)

Origin message was:
------------------
libstb-hal: hdmi_cec: ensure time compatibility for rc_sync with _TIME_BITS=64

This commit replaces commit:

   libstb-hal: Fix compatibility issues with struct input_event time assignment

These issues arose because of updates in OE/Yocto versions (e.g. >= Honister),
which introduced changes requiring these adjustments.

- Added conditional compilation to check for input_event_sec.
- Updated hdmi_cec::rc_sync method to use appropriate time fields for 64-bit suseconds.
- Maintained backward compatibility for older systems with 32-bit suseconds.
- Leveraged macros defined in input.h for clarity and maintainability.

This should ensure proper handling of suseconds and maintain backward
compatibility with older systems.
This implementation uses input_event_sec and input_event_usec macros for clarity and maintainability.
This changes shuold resolve build issues encountered due to compatibility
problems with newer versions of libraries.

It is quite certain that similar adjustments will need to be made in
other files. However, since I have only worked on this platform so far,
only this part of the code was noticeable at first. It should be noted
that this problem likely does not "yet" affect older build systems,
but it will become necessary at some point.
This also applies to Neutrino (adjustments will follow).


------------------
This commit was generated by Migit
2024-09-02 20:48:03 +02:00
max_10
4a1cff32f8 hdmi_cec.cpp: fix caps shadowed declaration
Origin commit data
------------------
Branch: master
Commit: 7ea49af077
Author: max_10 <max_10@gmx.de>
Date: 2023-01-25 (Wed, 25 Jan 2023)

Origin message was:
------------------
- hdmi_cec.cpp: fix caps shadowed declaration

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-03-09 20:15:17 +01:00
BPanther
85d1f1edf4 boxname for cec
Origin commit data
------------------
Branch: master
Commit: 7e8afedc40
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-01-24 20:57:12 +01:00
vanhofen
6b8b86e750 Revert "remove hdmi_cec"
This reverts commit 756a409f2f.


Origin commit data
------------------
Branch: master
Commit: 93bb54b48d
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-12-25 (Sun, 25 Dec 2022)



------------------
This commit was generated by Migit
2022-12-25 20:54:29 +01:00
TangoCash
756a409f2f remove hdmi_cec
Origin commit data
------------------
Branch: master
Commit: fe8a073584
Author: TangoCash <eric@loxat.de>
Date: 2022-11-19 (Sat, 19 Nov 2022)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2022-11-19 13:25:57 +01:00
TangoCash
fc6d9fe0e7 change cec delay
Origin commit data
------------------
Branch: master
Commit: 758a412197
Author: TangoCash <eric@loxat.de>
Date: 2021-12-02 (Thu, 02 Dec 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-12-02 22:55:50 +01:00
vanhofen
502d002c21 libarmbox/libmipsbox: some manual code nicenings
Origin commit data
------------------
Branch: master
Commit: 6591fe32fc
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)

Origin message was:
------------------
- libarmbox/libmipsbox: some manual code nicenings

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-11-07 00:57:01 +01:00
BPanther
fadbf018a5 fix compiler warning
Origin commit data
------------------
Branch: master
Commit: e5800a9b21
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-10-02 (Sat, 02 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-10-02 22:27:44 +02:00
vanhofen
f54b0e7bec formatting code using astyle
Origin commit data
------------------
Branch: master
Commit: bc17c13de4
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-17 (Mon, 17 May 2021)

Origin message was:
------------------
- formatting code using astyle

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-05-17 23:47:39 +02:00
TangoCash
3865a004f8 cec volume switch audiosystem/tv
Origin commit data
------------------
Branch: master
Commit: 2f3bba3864
Author: TangoCash <eric@loxat.de>
Date: 2021-01-31 (Sun, 31 Jan 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-01-31 18:16:08 +01:00
TangoCash
2e1296ddb9 small fix for CEC
Origin commit data
------------------
Branch: master
Commit: 0510438374
Author: TangoCash <eric@loxat.de>
Date: 2021-01-20 (Wed, 20 Jan 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2021-01-24 00:23:34 +01:00
TangoCash
a121cd60a6 enable CEC for HD60/61
Origin commit data
------------------
Branch: master
Commit: d684296e45
Author: TangoCash <eric@loxat.de>
Date: 2020-10-04 (Sun, 04 Oct 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-10-04 21:20:49 +02:00
TangoCash
acb0abb95a fix last commit
Origin commit data
------------------
Branch: master
Commit: 294e64c9a8
Author: TangoCash <eric@loxat.de>
Date: 2020-06-20 (Sat, 20 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-20 11:48:22 +02:00
TangoCash
2e5f1c5ca5 hdmi cec reduce cpu load
Origin commit data
------------------
Branch: master
Commit: 91641b364f
Author: TangoCash <eric@loxat.de>
Date: 2020-06-20 (Sat, 20 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-20 11:48:16 +02:00
max_10
28b5a58b9c hdmi_cec: fix warning: invalid suffix on literal; C++11 requires a space between literal and string macro
Origin commit data
------------------
Branch: master
Commit: 360a9a58db
Author: max_10 <max_10@gmx.de>
Date: 2020-06-19 (Fri, 19 Jun 2020)

Origin message was:
------------------
- hdmi_cec: fix warning: invalid suffix on literal; C++11 requires a space between literal and string macro

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-19 23:51:54 +02:00
TangoCash
d47a9b20b6 hdmi cec optimize timings
Origin commit data
------------------
Branch: master
Commit: bf970ab3a7
Author: TangoCash <eric@loxat.de>
Date: 2020-06-13 (Sat, 13 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-13 13:53:48 +02:00
TangoCash
6a772df307 use hdmi_cec device only for VU
Origin commit data
------------------
Branch: master
Commit: 6f85e1aab2
Author: TangoCash <eric@loxat.de>
Date: 2020-06-10 (Wed, 10 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-11 12:26:58 +02:00
TangoCash
8b937da111 fix CEC for all arm boxes #2
Origin commit data
------------------
Branch: master
Commit: 943188d9fb
Author: TangoCash <eric@loxat.de>
Date: 2020-06-07 (Sun, 07 Jun 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-06-07 22:35:56 +02:00
TangoCash
bbbc5294e9 fix CEC for all arm boxes
Origin commit data
------------------
Branch: master
Commit: 768297039d
Author: TangoCash <eric@loxat.de>
Date: 2020-05-29 (Fri, 29 May 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-05-29 16:20:16 +02:00
vanhofen
d8aa4545ed Revert "- libarmbox: try to fix cec"
This reverts commit bff0e71e31.


Origin commit data
------------------
Branch: master
Commit: 9408178607
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-05-29 (Fri, 29 May 2020)



------------------
This commit was generated by Migit
2020-05-29 16:20:16 +02:00
TangoCash
bff0e71e31 libarmbox: try to fix cec
Origin commit data
------------------
Branch: master
Commit: bede15daa6
Author: TangoCash <eric@loxat.de>
Date: 2020-01-17 (Fri, 17 Jan 2020)

Origin message was:
------------------
- libarmbox: try to fix cec

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-01-17 22:52:55 +01:00
vanhofen
b7c820bee0 Revert first try to fix hdmi-cec
Origin commit data
------------------
Branch: master
Commit: 9dd27eda0e
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-01-05 (Sun, 05 Jan 2020)

Origin message was:
------------------
- Revert first try to fix hdmi-cec

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2020-01-05 21:16:05 +01:00
vanhofen
265a203f2a vuplus: fix volume 0
Origin commit data
------------------
Branch: master
Commit: 51b7100513
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-12-13 (Fri, 13 Dec 2019)

Origin message was:
------------------
- vuplus: fix volume 0

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-12-13 22:14:55 +01:00
GetAway
b8555bd6e4 libstb_hal: Suppress implicit-fallthrough warnings from GCC 7
Origin commit data
------------------
Branch: master
Commit: 66f36919a2
Author: GetAway <get-away@t-online.de>
Date: 2019-06-14 (Fri, 14 Jun 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2019-06-14 22:14:36 +02:00
vanhofen
81c977318b rename lt_debug => hal_debug; it's not only libtriple debugging
Origin commit data
------------------
Branch: master
Commit: ef4ad293cc
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-26 (Wed, 26 Dec 2018)

Origin message was:
------------------
- rename lt_debug => hal_debug; it's not only libtriple debugging

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-12-26 00:34:00 +01:00
TangoCash
a327cbe517 liabarmbox: hdmi_cec return volume in percent, correct msg length
Origin commit data
------------------
Branch: master
Commit: dd77bfac67
Author: TangoCash <eric@loxat.de>
Date: 2018-10-19 (Fri, 19 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-19 18:47:40 +02:00
TangoCash
922072dc6c libarmbox: hdmi_cec add option to regulate audio systems volume via CEC, better log readability
Origin commit data
------------------
Branch: master
Commit: c717ff1df9
Author: TangoCash <eric@loxat.de>
Date: 2018-10-14 (Sun, 14 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-14 19:13:48 +02:00
TangoCash
afff0fadf4 libarmbox: hdmi_cec switch debug log to INIT (not used by armbox elsewhere), to debug hdmi_cec separatly from video
Origin commit data
------------------
Branch: master
Commit: 14c8559d66
Author: TangoCash <eric@loxat.de>
Date: 2018-10-10 (Wed, 10 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-10 23:54:47 +02:00
TangoCash
514d31cbd3 libarmbox: hdmi_cec fix device
Origin commit data
------------------
Branch: master
Commit: 851163927e
Author: TangoCash <eric@loxat.de>
Date: 2018-10-09 (Tue, 09 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-09 23:14:08 +02:00
TangoCash
54cde341e6 libarmbox: hmdi_cec emit received keys, report power status
Origin commit data
------------------
Branch: master
Commit: 4bf182cb85
Author: TangoCash <eric@loxat.de>
Date: 2018-10-09 (Tue, 09 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-09 23:13:47 +02:00
TangoCash
1e4089ddfe libarmbox: hdmi_cec typo
Origin commit data
------------------
Branch: master
Commit: 22aeddf864
Author: TangoCash <eric@loxat.de>
Date: 2018-10-08 (Mon, 08 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-08 16:33:23 +02:00
TangoCash
afc5a046c3 libarmbox: hdmi_cec fixx segfault on DDT, align log
Origin commit data
------------------
Branch: master
Commit: cfcc23955d
Author: TangoCash <eric@loxat.de>
Date: 2018-10-08 (Mon, 08 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-08 16:33:10 +02:00
TangoCash
e1496d6890 libarmbox: hdmi_cec better readability
Origin commit data
------------------
Branch: master
Commit: 8657b2d04c
Author: TangoCash <eric@loxat.de>
Date: 2018-10-07 (Sun, 07 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-08 16:32:57 +02:00
TangoCash
c2e32b9fd3 libarmbox: hdmi_cec add some more output
Origin commit data
------------------
Branch: master
Commit: 6dff0a19c9
Author: TangoCash <eric@loxat.de>
Date: 2018-10-07 (Sun, 07 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-07 22:51:50 +02:00
TangoCash
3ce9018d4a libarmbox: fix hdmi_cec handling
Origin commit data
------------------
Branch: master
Commit: be90147047
Author: TangoCash <eric@loxat.de>
Date: 2018-10-07 (Sun, 07 Oct 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-10-07 19:23:01 +02:00
TangoCash
85de1049ca libarmbox: move hdmi_cec to own class, add basic cec-remote support
cec-remote will print received commands in log for now


Origin commit data
------------------
Branch: master
Commit: b244b6a6a4
Author: TangoCash <eric@loxat.de>
Date: 2018-10-07 (Sun, 07 Oct 2018)



------------------
This commit was generated by Migit
2018-10-07 12:38:47 +02:00