summaryrefslogtreecommitdiff
authorivan.nie <ivan.nie@amlogic.com>2018-06-28 11:43:26 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-06-29 08:22:49 (GMT)
commitc6c56a2025bfe640fe06683a148f66beaf5a5625 (patch)
tree5f179a2f4af738450204e1e8942e352ade9460e2
parentb362be2249e2877ff44694eaaaafbe4ba8cd36e6 (diff)
downloadcommon-c6c56a2025bfe640fe06683a148f66beaf5a5625.zip
common-c6c56a2025bfe640fe06683a148f66beaf5a5625.tar.gz
common-c6c56a2025bfe640fe06683a148f66beaf5a5625.tar.bz2
cec: modfiy port info define for playback & audiosystem
PD#165588: cec: modfiy port info define for playback & audiosystem Change-Id: If19fbca8f16aee3b61f754019562d728e7bc482e
Diffstat
-rw-r--r--drivers/amlogic/cec/hdmi_ao_cec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/amlogic/cec/hdmi_ao_cec.c b/drivers/amlogic/cec/hdmi_ao_cec.c
index cc2b12b..428e6e1 100644
--- a/drivers/amlogic/cec/hdmi_ao_cec.c
+++ b/drivers/amlogic/cec/hdmi_ao_cec.c
@@ -2129,7 +2129,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;
@@ -2162,7 +2164,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 */