This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cec-follower: fix index handling Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Wed Oct 23 13:07:19 2019 +0200 node->state.service_idx is now set at the end of analog_update_tuner_dev_info(), so use idx for the index calculations. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> utils/cec-follower/cec-tuner.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=1feaeef7061561cbde9693fec3cd4c5e6d01bb6f diff --git a/utils/cec-follower/cec-tuner.cpp b/utils/cec-follower/cec-tuner.cpp index 9dc49224fd28..bf33c440d3f3 100644 --- a/utils/cec-follower/cec-tuner.cpp +++ b/utils/cec-follower/cec-tuner.cpp @@ -447,11 +447,10 @@ static void analog_update_tuner_dev_info(struct node *node, unsigned int idx, info->tuner_display_info = CEC_OP_TUNER_DISPLAY_INFO_ANALOGUE; info->is_analog = true; - info->analog.ana_bcast_type = (node->state.service_idx - TOT_DIGITAL_CHANS) / sys_freqs; + info->analog.ana_bcast_type = (idx - TOT_DIGITAL_CHANS) / sys_freqs; info->analog.bcast_system = - (node->state.service_idx - - (sys_freqs * info->analog.ana_bcast_type + TOT_DIGITAL_CHANS)) / NUM_ANALOG_FREQS; - offset = node->state.service_idx % NUM_ANALOG_FREQS; + (idx - (sys_freqs * info->analog.ana_bcast_type + TOT_DIGITAL_CHANS)) / NUM_ANALOG_FREQS; + offset = idx % NUM_ANALOG_FREQS; freq_khz = analog_freqs_khz[info->analog.ana_bcast_type][info->analog.bcast_system][offset]; info->analog.ana_freq = (freq_khz * 10) / 625; if (node->state.service_idx != idx && node->state.tuner_report_changes) { _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits