adec: audio codec for GXLX (S905C) bring up [1/1]
authorRui Wang <rui.wang@amlogic.com>
Sat, 16 May 2020 07:50:02 +0000 (15:50 +0800)
committerJian Xu <jian.xu@amlogic.com>
Mon, 18 May 2020 11:29:48 +0000 (04:29 -0700)
PD#SWPL-26186

Problem:
audio codec for GXLX (S905C) bring up

Solution:
audio codec for GXLX (S905C) bring up

Verify:
p270

Change-Id: Ibda057213b93e7bb5326d63f227f74dcd48034ef
Signed-off-by: Rui Wang <rui.wang@amlogic.com>
drivers/stream_input/amports/adec.c

index 08283882a03c1fc9b19b18248f64cb7791aebb81..b6da9eae1d915bf55403af6b35db1933fcb9e02e 100644 (file)
@@ -341,7 +341,8 @@ s32 astream_dev_register(void)
                goto err_2;
        }
 
-       if (AM_MESON_CPU_MAJOR_ID_TXL < get_cpu_major_id()) {
+       if (AM_MESON_CPU_MAJOR_ID_TXL < get_cpu_major_id()
+               && MESON_CPU_MAJOR_ID_GXLX != get_cpu_type()) {
                node = of_find_node_by_path("/codec_io/io_cbus_base");
                if (!node) {
                        pr_info("No io_cbus_base node found.");