media: cec: Set kernel not do retransmit

HDMI protocol does not allow retransmit more than
five times when send cec message failed. In android
system, we do retransmit in framework only.

Change-Id: I7bd1a4aa48874be11e4948d60e0c36077268c1c9
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao 2018-01-16 10:35:09 +08:00
parent 438372dd2a
commit 64b91f4baf

View File

@ -511,8 +511,11 @@ int cec_thread_func(void *_adap)
if (data->msg.len == 1 && adap->is_configured)
attempts = 2;
else
#ifdef CONFIG_ANDROID
attempts = 1;
#else
attempts = 4;
#endif
/* Set the suggested signal free time */
if (data->attempts) {
/* should be >= 3 data bit periods for a retry */