cec: modfiy port info define for playback & audiosystem

PD#165588: cec: modfiy port info define for playback & audiosystem

Change-Id: I2305763107d2b99a767f688238fc51d4084d3b26
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
This commit is contained in:
hongmin hua
2018-06-11 16:33:17 +08:00
committed by Yixun Lan
parent 45503c456f
commit 4d962126da
2 changed files with 7 additions and 3 deletions

View File

@@ -2140,7 +2140,9 @@ static void init_cec_port_info(struct hdmi_port_info *port,
} else
break;
}
if (cec_dev->dev_type == DEV_TYPE_TUNER)
if ((cec_dev->dev_type == DEV_TYPE_TUNER) ||
(cec_dev->dev_type == DEV_TYPE_PLAYBACK) ||
(cec_dev->dev_type == DEV_TYPE_AUDIO_SYSTEM))
b = cec_dev->port_num - 1;
else
b = cec_dev->port_num;
@@ -2173,7 +2175,9 @@ static void init_cec_port_info(struct hdmi_port_info *port,
break;
}
if (cec_dev->dev_type == DEV_TYPE_TUNER) {
if ((cec_dev->dev_type == DEV_TYPE_TUNER) ||
(cec_dev->dev_type == DEV_TYPE_PLAYBACK) ||
(cec_dev->dev_type == DEV_TYPE_AUDIO_SYSTEM)) {
/* last port is for tx in mixed tx/rx */
port[e].type = HDMI_OUTPUT;
port[e].port_id = 0; /* 0 for tx port id */

View File

@@ -18,7 +18,7 @@
#ifndef __AO_CEC_H__
#define __AO_CEC_H__
#define CEC_DRIVER_VERSION "2018/06/25\n"
#define CEC_DRIVER_VERSION "Ver**2018/07/03**\n"
#define CEC_FRAME_DELAY msecs_to_jiffies(400)
#define CEC_DEV_NAME "cec"