mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user