cec: modfiy port info define for playback & audiosystem
authorhongmin hua <hongmin.hua@amlogic.com>
Mon, 11 Jun 2018 08:33:17 +0000 (16:33 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 3 Jul 2018 05:59:58 +0000 (22:59 -0700)
PD#165588: cec: modfiy port info define for playback & audiosystem

Change-Id: I2305763107d2b99a767f688238fc51d4084d3b26
Signed-off-by: hongmin hua <hongmin.hua@amlogic.com>
drivers/amlogic/cec/hdmi_ao_cec.c
drivers/amlogic/cec/hdmi_ao_cec.h

index 92d5e10..981bd29 100644 (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 */
index 6ef4507..7d8eae0 100644 (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"