[PATCH 2/8] cec-follower: rename freq_idx to service_idx

2019-10-13 Thread Jiunn Chang
analog and digital with digital preceeding analog. Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-follower.h | 2 +- utils/cec-follower/cec-tuner.cpp | 32 +++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/utils/cec-follower/cec-follower.h

[PATCH 7/8] cec-follower: fix tuner step increment/decrement

2019-10-13 Thread Jiunn Chang
IDs and channel data. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-follower.cpp | 2 +- utils/cec-follower/cec-follower.h | 2 +- utils/cec-follower/cec-tuner.cpp| 46 +++-- 3 files changed, 32 insertions(+), 18 deletions

[PATCH 8/8] cec-compliance: add digital tuner control testing

2019-10-13 Thread Jiunn Chang
tuner_ctl_test() will now test both digital and analog services. There are a total of 98 channels, 18 digital and 81 analog with digital proceeding analog. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 50 +-- 1 file changed, 48 insertions(+), 2

[PATCH 6/8] cec-follower: add tuner digital service emulation

2019-10-13 Thread Jiunn Chang
also provide the tuner device status upon request. Opcodes implemented: - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 169 +++ 1 file changed, 169 insertions(+) diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec-tuner.cpp

[PATCH 4/8] cec-follower: create digital ATSC channels

2019-10-13 Thread Jiunn Chang
This table will allow proper testing of digital tuner control features. There are three channels per TSID/program number combination along with channel data for the following digital ATSC broadcast systems: - ATSC-SAT - ATSC-T Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp

[PATCH 5/8] cec-follower: create digital DVB channels

2019-10-13 Thread Jiunn Chang
This table will allow proper testing of digital tuner control features. There are three channels per TSID/ONID/SID combination along with channel data for the following digital DVB broadcast systems: - DVB-S2 - DVB-T Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 41

[PATCH 3/8] cec-follower: create digital ARIB channels

2019-10-13 Thread Jiunn Chang
This table will allow proper testing of digital tuner control features. There are three channels per TSID/ONID/SID combination along with channel data for the following digital ARIB broadcast systems: - ARIB-BS - ARIB-T Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 52

[PATCH 0/8] cec-compliance: add digital tuner support

2019-10-13 Thread Jiunn Chang
have been implemented to cycle through all available channels with digital proceeding analog. Channels will wrap on both ends. Tuner testing will cycle through all channels and check status with tuner select service following after. --- Jiunn Chang (8): cec-follower: fix analog tuner device info

[PATCH 1/8] cec-follower: fix analog tuner device info update

2019-10-13 Thread Jiunn Chang
With the addition of digital tuner control support, analog update needs to set is_analog and tuner_display_info. Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec

[PATCH v6 1/1] Add test for new features in cec-follower

2019-10-03 Thread Jiunn Chang
Analog tuner control test tuner_ctl_test(): - give analog tuner status - select tuner analog service - analog tuner step features Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 75 +++ 1 file changed, 75 insertions(+) diff --git a/utils/cec

[PATCH v6 0/1] cec-compliance: tuner control

2019-10-03 Thread Jiunn Chang
- Remove redundant error checking - Add circular wrap logic to tuner step increment/decrement Jiunn Chang (1): Add test for new features in cec-follower utils/cec-compliance/cec-test.cpp | 75 +++ 1 file changed, 75 insertions(+) -- 2.23.0

[PATCH v5 2/2] Add test for new features in cec-follower

2019-10-02 Thread Jiunn Chang
Analog tuner control test tuner_ctl_test(): - give analog tuner status - select tuner analog service - analog tuner step features Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 74 +++ 1 file changed, 74 insertions(+) diff --git a/utils/cec

[PATCH v5 0/2] cec-compliance: tuner control

2019-10-02 Thread Jiunn Chang
- Refactor tuner tests into a single tuner_ctl_test() Changes made since v1: - Remove redundant error checking - Add circular wrap logic to tuner step increment/decrement Jiunn Chang (2): cec-follower: add tuner step increment/decrement Add test for new features in cec-follower utils/cec

[PATCH v5 1/2] cec-follower: add tuner step increment/decrement

2019-10-02 Thread Jiunn Chang
Tuner step feature will select the next highest or lowest service frequency. There are a total of three possible frequencies given a broadcast type and system for a total of 81 analog channels. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-follower.cpp

[PATCH v4 2/3] cec-follower: add tuner step increment/decrement

2019-09-30 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies given a broadcast type and system for a total of 81 analog channels. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower

[PATCH v4 1/3] cec-follower: fix bugs for tuner emulation

2019-09-30 Thread Jiunn Chang
Fix bugs for tuner emulation: - analog_tuner_init() needs to store ana_freq as multiples of 62.5 kHz - analog_set_tuner_dev_info() needs to check the broadcast type and broadcast system are valid before getting the nearest frequency Signed-off-by: Jiunn Chang --- utils/cec-follower/cec

[PATCH v4 3/3] cec-compliance: add tuner control test

2019-09-30 Thread Jiunn Chang
Add test for new features added to cec-follower. Analog tuner control test tuner_ctl_test(): - give analog tuner status - select tuner analog service - analog tuner step features Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 91 +++ 1 file

[PATCH v4 0/3] cec-compliance: tuner control

2019-09-30 Thread Jiunn Chang
tuner_ctl_test() Changes made since v1: - Remove redundant error checking - Add circular wrap logic to tuner step increment/decrement Jiunn Chang (3): cec-follower: fix bugs for tuner emulation cec-follower: add tuner step increment/decrement cec-compliance: add tuner control test utils

[PATCH v3 3/3] cec-compliance: refactor tuner control tests

2019-09-29 Thread Jiunn Chang
Tests refactored for new features added to cec-collower. Analog tuner control tests combined into tuner_ctl_test(): - give analog tuner status - select tuner analog service - analog tuner step features Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 184

[PATCH v3 1/3] cec-follower: fix bugs for tuner emulation

2019-09-29 Thread Jiunn Chang
Fix some typos for tuner emulation: - analog_tuner_init() store ana_freq in hex - analog_get_nearest_freq() temp variable check Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/cec-follower/cec

[PATCH v3 2/3] cec-follower: add tuner step increment/decrement

2019-09-29 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies given a broadcast type and system for a total of 81 analog channels. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower

[PATCH v3 0/3] cec-compliance: tuner control

2019-09-29 Thread Jiunn Chang
state - Refactor tuner tests into a single tuner_ctl_test() Changes made since v1: - Remove redundant error checking - Add circular wrap logic to tuner step increment/decrement Jiunn Chang (3): cec-follower: fix bugs for tuner emulation cec-follower: add tuner step increment/decrement

[PATCH v2 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies from analog_freqs_khz given a broadcast type and system. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp

[PATCH v2 0/2] cec-compliance: tuner control

2019-09-24 Thread Jiunn Chang
for select analog service and give tuner device status. Changes made since v1: - Remove redundant error checking - Add circular wrap logic to tuner step increment/decrement --- Jiunn Chang (2): cec-follower: add tuner step increment/decrement cec-compliance: add/refactor tuner control

[PATCH v2 2/2] cec-compliance: add/refactor tuner control tests

2019-09-24 Thread Jiunn Chang
Tests added/refactored for new features added to the cec-follower. Analog tuner control tests added/refactored: - give analog tuner status - select tuner analog service - analog tuner step decrement - analog tuner step increment Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec

[PATCH 2/2] cec-compliance: add/refactor tuner control tests

2019-09-24 Thread Jiunn Chang
Tests added/refactored for new features added to the cec-follower. Analog tuner control tests added/refactored: - give analog tuner status - select tuner analog service - analog tuner step decrement - analog tuner step increment Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec

[PATCH 1/2] cec-follower: add tuner step increment/decrement

2019-09-24 Thread Jiunn Chang
Tuner step increment/decrement will select the next highest or next lowest service frequency. There are a total of three possible frequencies from analog_freqs_khz given a broadcast type and system. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp

[PATCH 0/2] cec-compliance: tuner control

2019-09-24 Thread Jiunn Chang
for select analog service and give tuner device status. --- Jiunn Chang (2): cec-follower: add tuner step increment/decrement cec-compliance: add/refactor tuner control tests utils/cec-compliance/cec-test.cpp | 181 +++--- utils/cec-follower/cec-tuner.cpp | 49

[PATCH v8] cec-follower: add tuner analog service emulation

2019-09-24 Thread Jiunn Chang
request. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- Changes made since v7: - Make analog_tuner_init() more robust - Remove redundancy from analog_set_tuner_dev_info() Changes made since v6: - Add more information to commit message Changes made since v5: - Add

[PATCH v7] cec-follower: add tuner analog service emulation

2019-09-20 Thread Jiunn Chang
request. Opcodes implemented: - - Signed-off-by: Jiunn Chang --- Changes made since v6: - Add more information to commit message Changes made since v5: - Add analog_tuner_init() to cec-tuner.cpp - Change state_init() in cec-follower.cpp to use analog_tuner_init() - Rename function

[PATCH v6] cec-follower: add tuner analog service emulation

2019-09-20 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- Changes made since v1: - Fix typos/bugs - Import reply_feature_abort() from cec-processing.cpp - Add functionality to choose nearest frequency Changes made since v2: - Fix typos/bugs

[PATCH v5] cec-follower: add tuner analog service emulation

2019-09-19 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- Changes made since v1: - Fix typos/bugs - Import reply_feature_abort() from cec-processing.cpp - Add functionality to choose nearest frequency Changes made since v2: - Fix typos/bugs

[PATCH v4] cec-follower: create analog channel frequencies

2019-09-19 Thread Jiunn Chang
This frequency table will allow proper testing of tuner control. There are three frequencies per analog broadcast type and broadcast system, so tuner increment and decrement can be tested. Signed-off-by: Jiunn Chang --- Changes made since v1: - Add Wikipedia link for analog channel

[PATCH v2] cec-follower: fix cec-tuner.cpp

2019-09-19 Thread Jiunn Chang
Remove static from reply_feature_abort() in cec-processing.cpp so it can be used in cec-tuner.cpp. This is maintain testing logic for PRESUMED_OK which replies on the feature abort message. Also needed is a boolean for broadcast messages that should not be aborted. Signed-off-by: Jiunn Chang

[PATCH v4] cec-follower: add tuner analog service emulation

2019-09-18 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- Changes made since v1: - Fix typos/bugs - Import reply_feature_abort() from cec-processing.cpp - Add functionality to choose nearest frequency Changes made since v2: - Fix typos/bugs

[PATCH v3] cec-follower: create analog channel frequencies

2019-09-18 Thread Jiunn Chang
This frequency table will allow proper testing of tuner control. There are three frequencies per analog broadcast type and broadcast system, so tuner increment and decrement can be tested. Signed-off-by: Jiunn Chang --- Changes since v1: - Add Wikipedia link for analog channel frequencies

[PATCH] cec-follower: fix cec-tuner.cpp

2019-09-18 Thread Jiunn Chang
Export code from cec-processing.cpp to cec-tuner.cpp so testing logic does not break for PRESUMED_OK which replies on the feature abort message. Also needed it a boolean for broadcast messages that should not be aborted. Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-processing.cpp | 4

[PATCH v3] cec-follower: add tuner analog service emulation

2019-09-18 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- Changes made since v1: - Fix typos/bugs - Import reply_feature_abort() from cec-processing.cpp - Add functionality to choose nearest frequency Changes made since v2: - Fix typos/bugs

[PATCH v3] cec-follower: create cec-tuner.cpp

2019-09-18 Thread Jiunn Chang
Move tuner control, one touch record, and timer programming into cec-tuner.cpp. These features are all tuner related and involve the tuner as a central feature to be able to test. Signed-off-by: Jiunn Chang --- Changes made since v1: - Change cec-tuner.cpp function name to

[PATCH v2] cec-follower: add tuner analog service emulation

2019-09-17 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-follower.h | 1 + utils/cec-follower/cec-tuner.cpp | 89 ++- 2 files changed, 78 insertions(+), 12 deletions(-) diff --git a/utils/cec-follower

[PATCH] cec-follower: add tuner analog service emulation

2019-09-17 Thread Jiunn Chang
Implement the following tuner control features: - - and reply Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 51 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec

[PATCH v2] cec-follower: create analog channel frequencies

2019-09-17 Thread Jiunn Chang
This frequency table will allow proper testing of tuner control. There are three frequencies per analog broadcast type and broadcast system, so tuner increment and decrement can be tested. Signed-off-by: Jiunn Chang --- Changes since v1: - Add Wikipedia link for analog channel frequencies

[PATCH] cec-follower: create analog channel frequencies

2019-09-16 Thread Jiunn Chang
This frequency table will allow proper testing of tuner control. There are three frequencies per analog broadcast type and broadcast system, so tuner increment and decrement can be tested. Signed-off-by: Jiunn Chang --- utils/cec-follower/cec-tuner.cpp | 77 1

[PATCH v2] cec-follower: create cec-tuner.cpp

2019-09-16 Thread Jiunn Chang
Move tuner control, one touch record, and timer programming into cec-tuner.cpp. These features are all tuner related and involve the tuner as a central feature to be able to test. Signed-off-by: Jiunn Chang --- Changes made since v1: - Change cec-tuner.cpp function name to

[PATCH] cec-follower: create cec-tuner.cpp

2019-09-16 Thread Jiunn Chang
-by: Jiunn Chang --- utils/cec-follower/Makefile.am| 2 +- utils/cec-follower/cec-follower.h | 3 + utils/cec-follower/cec-processing.cpp | 109 +--- utils/cec-follower/cec-tuner.cpp | 139 ++ 4 files changed, 148 insertions(+), 105

[PATCH v3] cec-compliance: system audio control

2019-09-11 Thread Jiunn Chang
Add comment block documenting tests not included from section 13.15 of the CEC 1.4b specification. This section outlines the System Audio Control feature. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 38 + 1 file changed, 38 insertions

[PATCH] cec-compliance: system audio control

2019-09-10 Thread Jiunn Chang
Add comment block documenting tests not included from section 13.15 of the HDMI CEC 1.4b specification. This section outlines the System Audio Control feature. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 30 + 1 file changed, 30 insertions

[PATCH v2] cec-compliance: system audio control

2019-09-10 Thread Jiunn Chang
Add comment block documenting tests not included from section 13.15 of the CEC 1.4b specification. This section outlines the System Audio Control feature. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 29 + 1 file changed, 29 insertions

[PATCH] cec-compliance: system audio control

2019-09-09 Thread Jiunn Chang
Add comment block documenting tests not included from section 13.15 of the HDMI CEC 1.4b specification. This section outlines the System Audio Control feature. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 30 + 1 file changed, 30 insertions

[PATCH] cec-compliance: system information give features

2019-09-09 Thread Jiunn Chang
For devices on a HDMI ARC link, sources can only receive ARC and sinks can only transmit ARC. Add two checks: - Playback devices can only receive ARC, i.e. source_has_arc_rx - TVs can only transmit ARC, i.e. sink_has_arc_tx Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 4

[PATCH] cec-compliance: rename has_arc_rx, has_arc_tx

2019-09-09 Thread Jiunn Chang
Renaming has_arc_rx and has_arc_tx to better match the macros defined in cec.h: - CEC_OP_FEAT_DEV_SOURCE_HAS_ARC_RX - CEC_OP_FEAT_DEV_SINK_HAS_ARC_TX For devices on a HDMI ARC link, sources can only support receiver devices and sinks can only support transmitter devices. Signed-off-by: Jiunn

[PATCH] cec-compliance: system information give features

2019-09-06 Thread Jiunn Chang
For devices on a HDMI ARC link, sinks can only support transmitter devices and sources can only support receiver devices. Add two checks: - Playback devices can only have has_arc_rx - TVs can only have has_arc_tx Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test.cpp | 4 1

[PATCH v3] cec-compliance: system audio control tests

2019-09-05 Thread Jiunn Chang
Control Pressed operands. Signed-off-by: Jiunn Chang --- Changes made since v2: - add more details to commit message Notes: A patch series has been submitted by Hans Verkuil to add CEC UI command operands to the cec header in the media tree from which v4l-utils copies it. Once those patches

[PATCH] cec-compliance: audio return channel tests

2019-09-05 Thread Jiunn Chang
1.4 spec going forward when ARC was introduced. Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 24 1 file changed, 24 insertions(+) diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp index 872bb9ad

[PATCH v2] cec-compliance: system audio control tests

2019-09-02 Thread Jiunn Chang
Add user control press operands: - Mute Function - Restore Volume Function Signed-off-by: Jiunn Chang --- Changes made since v2: - change node->state.mute to boolean >8---8< utils/cec-compliance/cec-test-

[PATCH] cec-compliance: system audio control tests

2019-09-02 Thread Jiunn Chang
Add user control press operands: - Mute Function - Restore Volume Function Signed-off-by: Jiunn Chang --- utils/cec-compliance/cec-test-audio.cpp | 32 + utils/cec-follower/cec-processing.cpp | 6 + 2 files changed, 38 insertions(+) diff --git a/utils/cec