On 10/15/2018 05:15 PM, Niklas Söderlund wrote:
> Hi Hans,
>
> Thanks for your patch.
>
> On 2018-10-12 13:30:02 +0200, Hans Verkuil wrote:
>> The CEC IP is very similar between the three HDMI receivers, but
>> not identical. Add support for all three variants.
>>
>> Tested with an adv7604 and an adv7612.
>>
>> Signed-off-by: Hans Verkuil <[email protected]>
>
> This fixes CEC on my Koelsch board using the adv7604.
>
> Reviewed-by: Niklas Söderlund <[email protected]>
>
> Side note do you know of a way to simulate a cycling of the physical HDMI
> cable? My current test-case for CEC is:
>
> v4l2-ctl -d $(grep -l "adv7612" /sys/class/video4linux/*/name | sed
> 's#.*video4linux\(.*\)/name#/dev\1#g') --set-edid=type=hdmi
> cec-ctl -d 0 --playback
> cec-ctl -d 1 --tv
> # Here I need to attach or if it already is connected disconnect and
> # reconnect the HDMI cable
> cec-ctl -d 0 -S
> cec-ctl -d 1 -S
>
> If that step could be done in software I can add this test to my
> automatic test scripts which would be nice.
You can clear the EDID of the receiver: v4l2-ctl --clear-edid
This will invalidate the physical address and pull the HPD low.
Note: you'll need this recent patch: "adv7604: when the EDID is cleared,
unconfigure CEC as well"
Regards,
Hans