Commit Graph

1073733 Commits

Author SHA1 Message Date
Sugar Zhang
cc54f72174 arm64: dts: rockchip: rk3588: Set mclkin freq as 0 Hz default
Use freq 0 Hz to represent the case which not used yet, and,
should assign the match freq as external mclk in if used.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I0a731367a81a740df36af7552c7b6a353f9bd2f0
2023-02-22 14:33:46 +08:00
Sugar Zhang
272ce0169e arm64: dts: rockchip: rk3562: Set mclkin freq as 0 Hz default
Use freq 0 Hz to represent the case which not used yet, and,
should assign the match freq as external mclk in if used.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id8d39117ba477285a562e7fa7bf7b28edd5e9212
2023-02-22 14:33:46 +08:00
Sandy Huang
a4309e65bb drm/rockchip: vop3: add cluster frame reset
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1d7d590ea91c0864cebe11066780789078960120
2023-02-22 11:34:50 +08:00
Joseph Chen
aec5968aad clk: rockchip: rk3528: Allow disable clk_400m_src
There is not any child under clk_400m_src.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I23c96869f69e62ee3ada30d66ffc7b2482bcdd7f
2023-02-22 03:00:57 +00:00
Elaine Zhang
d659377437 clk: rockchip: rk3128: fix up the sdmmc drv and sample set phase failed
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I9e8b25c8f85594ee9c3e7d5d3e2d47ac05fdda94
2023-02-22 11:00:22 +08:00
Sandy Huang
5dabd04f93 drm/rockchip: vop2: adjust writeback commit time
adjust commit time from 1/8 to 7/8 scan timing when enable writeback;

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iea0dd9e29b83399c1a0966e0c3ff68b861acd020
2023-02-22 10:56:26 +08:00
Zefa Chen
0669486cd5 media: rockchip: vicap fixes tasklet error for vb_done
Fixes: 824a24f4 ("media: rockchip: vicap use tasklet to done buf")

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I231edb728285c049e96cfd48b4dfb19b6d31bfe8
2023-02-22 10:18:43 +08:00
Zefa Chen
2b6fcece05 media: rockchip: vicap: rk3562 add csirx data clk
if not control csirx data clk, may cause vicap do cru reset fail

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I38bd186e8add2d3e7df1df527f3d02bf4e7d5d76
2023-02-22 10:18:27 +08:00
Zefa Chen
e42f671447 arm64: dts: rockchip: rk3562: vicap add csirx data clk control
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I15baadf44db6c1325812b925e7ac84c636f6303c
2023-02-22 10:18:27 +08:00
Sugar Zhang
0df0ba8a98 arm64: dts: rockchip: rk3528: Add SAIx_MCLK{OUT,IN} nodes
e.g.

  mclkin_sai0: mclkin-sai0 {
      compatible = "fixed-clock";
      #clock-cells = <0>;
      clock-frequency = <12288000>;
      clock-output-names = "i2s0_mclkin";
  };

  mclkout_sai0: mclkout-sai0@ff340014 {
      compatible = "rockchip,clk-out";
      reg = <0 0xff340014 0 0x4>;
      clocks = <&cru MCLK_SAI_I2S0>;
      #clock-cells = <0>;
      clock-output-names = "mclk_sai0_to_io";
      rockchip,bit-shift = <1>;
      rockchip,bit-set-to-disable;
  };

Note:

clock-output-names of mclkin_sai0 should equal to strings in drivers. such as:

drivers/clk/rockchip/clk-rk3528.c:

PNAME(mclk_sai_i2s0_p)                  = { "mclk_i2s0_2ch_sai_src", "i2s0_mclkin" };
PNAME(mclk_sai_i2s1_p)                  = { "mclk_i2s1_8ch_sai_src", "i2s1_mclkin" };

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id7eef076aaa55d59beadfd340a513152727112f9
2023-02-22 10:18:00 +08:00
Yandong Lin
3fb2e28edd video: rockchip: mpp: change the way to refresh the dma cache
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I0a929cb896069d7bc4a782f19e2fde4de5dc58db
2023-02-22 09:51:41 +08:00
Jon Lin
9cd6a5c06d drivers: rkflash: Support new devices
Change-Id: Ieb7a1217a92d47581faf0ac3dfcd4db78b84f098
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-21 16:40:06 +08:00
Jon Lin
f0dbc8bbb0 drivers: rkflash: Support sfc ver6 and sfc ver8
Change-Id: I21b11e414ab48c7b3ae7dd8e6ab9dc1e8bcadee6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-21 16:39:22 +08:00
Sugar Zhang
5ba3ec652a ASoC: rockchip: mdais: Skip DAIs which have no channel mapping
There is no need to start DAIs which have no channel mapping.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia6be32d474845b9ecb443c38b6801e9836e8a77a
2023-02-21 15:28:32 +08:00
Algea Cao
a93d8eea59 drm: bridge: dw-hdmi: Fix 1080p RGB/YUV444 10BIT display blur
If set default phase to 1, 1080p RGB/YUV444 10BIT display blur
when switch from 4K YUV420 8BIT.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I8ccd1cef40f3e47ce481a176a41c569ab2932b83
2023-02-21 15:27:10 +08:00
Algea Cao
e965510afe drm: bridge: dw-hdmi: clear overflow when switch color format
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I98682e8cc085829fd9fde16d7e14efa08ab8128a
2023-02-21 15:27:10 +08:00
Algea Cao
b74c9ae934 drm: bridge: dw-hdmi: Update hdr panel metadata when can't get edid
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ide73e5f10a591a9f85061461fa34a66bc3ac5d95
2023-02-21 15:27:10 +08:00
Algea Cao
b2e231e53f drm: bridge: dw-hdmi: Send audio uevent when play hdr video
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I349b862d2a918f5938b149b0d52ed9fc840b5a4b
2023-02-21 15:27:10 +08:00
Algea Cao
9828e0f315 drm: bridge: dw-hdmi: Don't go to seamless switching process when hdmi plug in
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ib2884ba796baa051972c032fad3e8117cb6dcc30
2023-02-21 15:27:10 +08:00
Algea Cao
053a921a19 drm: bridge: dw-hdmi: Support BT709 hdr and 8-bit hdr output
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: If9a90c05f98f39aa2481aec9a4b2fa5378313f45
2023-02-21 15:27:10 +08:00
Algea Cao
5d81881b45 drm/rockchip: Support parse edid colorimetry
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I051adb0d5fa5ecfa95cebb13539c440646512a77
2023-02-21 15:27:10 +08:00
Algea Cao
66b04a5c5f drm: bridge: dw-hdmi: Set rk3528 hpd status when resume
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I105e9a8c44dfd4ea78af406c011b3b7eb1c8f742
2023-02-21 15:27:10 +08:00
Jon Lin
a0538ddf89 mtd: spinand: dosilicon: Support new devices
DS35Q12B, DS35M12B

Change-Id: I8e4bf56f1cb1873c9b11858cfb567b276d980e14
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-21 15:08:27 +08:00
Sugar Zhang
c3d3a14f49 arm64: dts: rockchip: rk3588: Use mclkout_i2sx for devices
replace.sh

  #!/bin/sh

  grep -lr "$1" | xargs sed -i "s/$1/$2/g"

e.g.

  ./replace.sh "cru I2S1_8CH_MCLKOUT" "mclkout_i2s1"

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I742c35e23a54facb90cde8f9d0d2b935be69152b
2023-02-21 14:59:32 +08:00
Sugar Zhang
5d2e0b332b arm64: dts: rockchip: rk3588: Add I2Sx_MCLK{OUT,IN} nodes
e.g.

  mclkin_i2s0: mclkin-i2s0 {
      compatible = "fixed-clock";
      #clock-cells = <0>;
      clock-frequency = <12288000>;
      clock-output-names = "i2s0_mclkin";
  };

  mclkout_i2s0: mclkout-i2s0@fd58c318 {
      compatible = "rockchip,clk-out";
      reg = <0 0xfd58c318 0 0x4>;
      clocks = <&cru I2S0_8CH_MCLKOUT>;
      #clock-cells = <0>;
      clock-output-names = "i2s0_mclkout_to_io";
      rockchip,bit-shift = <0>;
      rockchip,bit-set-to-disable;
  };

Note:

clock-output-names of mclkin_i2s0 should equal to strings in drivers. such as:

drivers/clk/rockchip/clk-rk3588.c:

PNAME(clk_i2s0_8ch_tx_p) = { "clk_i2s0_8ch_tx_src", "clk_i2s0_8ch_tx_frac", "i2s0_mclkin", "xin12m" };
PNAME(clk_i2s0_8ch_rx_p) = { "clk_i2s0_8ch_rx_src", "clk_i2s0_8ch_rx_frac", "i2s0_mclkin", "xin12m" };

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iefca0d7f8b90473a1331a15b1b82f389254ca015
2023-02-21 09:50:13 +08:00
Sugar Zhang
645df41e1c arm64: dts: rockchip: rk3562: Use mclk{out,in}_saix for devices
e.g.

1. mclkout_sai0:

  &ext_codec {
      clocks = <&mclkout_sai0>;
      clock-names = "mclk";
      assigned-clocks = <&mclkout_sai0>;
      assigned-clock-rates = <12288000>;
      pinctrl-names = "default";
      pinctrl-0 = <&i2s0m0_mclk>;
  };

  clk_summary on sai0 work:

  cat /sys/kernel/debug/clk/clk_summary | egrep "pll|sai0"

  clk_sai0_src                1        1        0  1188000000          0     0  50000
    clk_sai0_frac             1        1        0    12288000          0     0  50000
      clk_sai0                1        1        0    12288000          0     0  50000
        mclk_sai0             1        1        0    12288000          0     0  50000
          mclk_sai0_out2io    1        1        0    12288000          0     0  50000
            mclk_sai0_to_io   1        1        0    12288000          0     0  50000

2. mclkin_sai0:

  &ext_codec {
      clocks = <&mclkin_sai0>;
      clock-names = "mclk";
      assigned-clocks = <&cru CLK_SAI0>;
      assigned-clock-parents = <&mclkin_sai0>;
      pinctrl-names = "default";
      pinctrl-0 = <&i2s0m0_mclk>;
  };

  clk_summary on sai0 work:

  cat /sys/kernel/debug/clk/clk_summary | egrep "pll|sai0"

  mclk_sai0_from_io          1        1        0    12288000          0     0  50000
    clk_sai0                 1        1        0    12288000          0     0  50000
      mclk_sai0              1        1        0    12288000          0     0  50000
        mclk_sai0_out2io     0        0        0    12288000          0     0  50000
          mclk_sai0_to_io    0        0        0    12288000          0     0  50000

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib8441bfd0dbb69353a6492f2d406b29a26d1dba0
2023-02-21 09:50:13 +08:00
Sugar Zhang
afa07cbc46 arm64: dts: rockchip: rk3562: Add mclk{out,in}_saix device nodes
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iff3f55286d1e209929c9667871c0f06842a4d7d1
2023-02-21 09:50:13 +08:00
Sugar Zhang
b3cfac5e37 clk: rockchip: Add support for clk input / output switch
This patch add support switch for clk-bidirection which located
at GRF, such as SAIx_MCLK_{IN OUT} which share the same pin.
and these config maybe located in many pieces of GRF,
which hard to addressed in one single clk driver. so, we add
this simple helper driver to address this situation.

In order to simplify implement and usage, and also for safety
clk usage (avoid high freq glitch), we set all clk out as disabled
(which means Input default for clk-bidrection) in the pre-stage,
such boot-loader or init by HW default. And then set a safety freq
before enable clk-out, such as "assign-clock-rates" or clk_set_rate
in drivers.

e.g.

1. mclk{out,in}_sai0 define:

  mclkin_sai0: mclkin-sai0 {
      compatible = "fixed-clock";
      #clock-cells = <0>;
      clock-frequency = <12288000>;
      clock-output-names = "mclk_sai0_from_io";
  };

  mclkout_sai0: mclkout-sai0@ff040070 {
      compatible = "rockchip,clk-out";
      reg = <0 0xff040070 0 0x4>;
      clocks = <&cru MCLK_SAI0_OUT2IO>;
      #clock-cells = <0>;
      clock-output-names = "mclk_sai0_to_io";
      rockchip,bit-shift = <4>;
      //example with PD if reg access needed
      power-domains = <&power RK3562_PD_VO>;
  };

Note:

clock-output-names of mclkin_sai0 should equal to strings in drivers. such as:

drivers/clk/rockchip/clk-rk3562.c:
PNAME(clk_sai0_p) = { "clk_sai0_src", "clk_sai0_frac", "xin_osc0_half", "mclk_sai0_from_io" };

2. mclkout_sai0 usage:

  &ext_codec {
      clocks = <&mclkout_sai0>;
      clock-names = "mclk";
      assigned-clocks = <&mclkout_sai0>;
      assigned-clock-rates = <12288000>;
      pinctrl-names = "default";
      pinctrl-0 = <&i2s0m0_mclk>;
  };

  clk_summary on sai0 work:

  cat /sys/kernel/debug/clk/clk_summary | egrep "pll|sai0"

  clk_sai0_src                1        1        0  1188000000          0     0  50000
    clk_sai0_frac             1        1        0    12288000          0     0  50000
      clk_sai0                1        1        0    12288000          0     0  50000
        mclk_sai0             1        1        0    12288000          0     0  50000
          mclk_sai0_out2io    1        1        0    12288000          0     0  50000
            mclk_sai0_to_io   1        1        0    12288000          0     0  50000

  example with PD if reg access needed:

  * PD status when mclk_sai0_to_io on:

  cat /sys/kernel/debug/pm_genpd/pm_genpd_summary

  domain                          status          children
    /device                                                runtime status
  ----------------------------------------------------------------------
  ...

  vo                              on
    /devices/platform/clocks/ff040070.mclkout-sai0         active
  ...

  * PD status when mclk_sai0_to_io off:

  cat /sys/kernel/debug/pm_genpd/pm_genpd_summary

  domain                          status          children
    /device                                                runtime status
  ----------------------------------------------------------------------
  ...

  vo                              off-0
    /devices/platform/clocks/ff040070.mclkout-sai0         suspended
  ...

3. mclkin_sai0 usage:

  please override freq of mclkin as the real external clkin, such as:

  &mclkin_sai0 {
      clock-frequency = <24576000>;
  }

  &ext_codec {
      clocks = <&mclkin_sai0>;
      clock-names = "mclk";
      assigned-clocks = <&cru CLK_SAI0>;
      assigned-clock-parents = <&mclkin_sai0>;
      pinctrl-names = "default";
      pinctrl-0 = <&i2s0m0_mclk>;
  };

  clk_summary on sai0 work:

  cat /sys/kernel/debug/clk/clk_summary | egrep "pll|sai0"

  mclk_sai0_from_io          1        1        0    12288000          0     0  50000
    clk_sai0                 1        1        0    12288000          0     0  50000
      mclk_sai0              1        1        0    12288000          0     0  50000
        mclk_sai0_out2io     0        0        0    12288000          0     0  50000
          mclk_sai0_to_io    0        0        0    12288000          0     0  50000

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibe8286bb98ea1fc3bc6421c30f6e46fc0b1b0d88
2023-02-21 09:50:13 +08:00
Sugar Zhang
35b202eb29 clk: rockchip: rk3562: Fix mclkin_saix clk name
Should be explicit direction for mclkin, such as "mclk_sai0_from_io"
instead of "mclk_sai0_io".

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I6a4a3ecad527c610cc1577faca169588545f0765
2023-02-21 09:50:13 +08:00
Jason Zhu
5394193532 ASoC: rockchip: pdm: fix channel disorder
Fix channel disorder caused by "ASoC: rockchip: pdm: Fix pop noise
in the beginning".

The PDM device need to delete some unused data since the pdm of
various manufacturers can not be stable quickly. This is done by
commit "ASoC: rockchip: pdm: Fix pop noise in the beginning".

But we do not know how many data we delete, this cause channel
disorder. For example, we record two channel 24-bit sound, then
delete some starting data. Because the deleted starting data is
uncertain, the next data may be left or right channel and cause
channel disorder.

Luckily, we can use the PDM_RX_CLR to fix this. Use the PDM_RX_CLR
to clear fifo written data and address, but can not clear the read
data and address. In initial state, the read data and address are
zero.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I248744c7982365adeb23aa516cf5bed346f4beaf
2023-02-20 20:21:51 +08:00
Guochun Huang
7cfd42e08c drm/rockchip: dsi2: fix mode valid func when work in dual channel dsi
Change-Id: Ib26202b9fdd908c9a3dd7d2f50f407a7c8f63c46
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-02-20 15:01:41 +08:00
Wangqiang Guo
0d285d7f91 arm64: dts: rockchip: rk3562-evb: support IR remote ctrl.
Change-Id: Iea742c38e0e4fd62ff8664cc479475f5939f08ef
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-02-20 14:26:02 +08:00
Jon Lin
f67f48f039 phy: rockchip-naneng-combo: Support phy grf reset
1.Assert phy-reset via PIPEPHY GRF instead of asserting via CRU that
would be useless when PD_PHP is off.
2.RK3562 change to use phy grf reset

Change-Id: Id30e8bf28c0bb8d30bab27ad069201978ec74785
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-20 14:21:04 +08:00
XiaoTan Luo
5fb123e773 ARM: dts: rockchip: set 128 mclk-fs for spdiftx
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I9725660493739f080b0c5b3d7714ba9545fb975e
2023-02-20 10:32:44 +08:00
XiaoTan Luo
bc1ebbaed7 arm64: dts: rockchip: set 128 mclk-fs for spdiftx
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I170bb55c9e093693c642a8b750971362c2a7de3f
2023-02-20 10:32:23 +08:00
Steven Liu
9ecef75fd6 arm64: dts: rockchip: rk3562-amp: protect TIMER4 and UART7M1
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I220e00435cbd3a771f4286cb97d8bbfa5427cd7f
2023-02-17 18:47:40 +08:00
Cai YiWei
91ef5c438c media: rockchip: isp: dvfs for multi dev on/off
Change-Id: I5ba04caebbaafd49d86bc615d1d69ea6ab2b9343
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-02-17 18:47:21 +08:00
XiaoDong Huang
ec0076dc3b soc: rockchip: pm-config: support sleep config for mem_lite/mem_ultra
sleep-mode-config-mem-lite = <...> is mode_config for mem_lite.
wakeup-config-mem-lite = <...> is wakeup_config for mem_lite.
sleep-mode-config-mem-ultra = <...> is mode_config for mem_ultra.
wakeup-config-mem-ultra = <...> is wakeup_config for mem_ultra.

Change-Id: If41ef73d8075c9e74b87a0ebf1634622e5625db3
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2023-02-17 18:43:41 +08:00
XiaoDong Huang
2ae2025cb0 soc: rockchip: pm-config: simplify parse_on_off_regulator
Change-Id: I47f92ed326a4c813a6be83a82761b427e2ca4065
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2023-02-17 18:43:41 +08:00
Sandy Huang
0c94163666 drm/rockchip: vop3: rk3528: fix filter mode define error
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0695947cf5389a473f586e100dc1ed30fb806537
2023-02-17 17:06:27 +08:00
Yifeng Zhao
494eee4070 mmc: sdhci-of-dwcmshc: Sync code with kernel 4.19
1. remove execute_tuning api
2. remove RK_RXCLK_NO_INVERTER for RK3528 and RK3562
3. set strbin tap to 3 for RK3528 and RK3562
4. fixed tap value by software
5. Disable output clock while config DLL

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Icad745d09a0fad37ec58d2071ba780b9749d1c16
2023-02-17 14:22:21 +08:00
Jon Lin
0bd9d79eb9 arm64: dts: rockchip: rk3562: Assign spi0 sclk_in to SCLK_IN_PMU1_SPI0
Change-Id: I574752dc3509df2307322b934da6939d590c4fba
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-17 10:21:46 +08:00
Cai YiWei
ebb21b9936 media: rockchip: ispp: fec support in out diff size
Change-Id: I469876b24fb96a856703625a0bec23d2e0dbd3e5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-02-16 18:45:29 +08:00
Zhen Chen
ccf3f0670c MALI: bifrost: from ARM: Remove references to PageMovable()
The original patch is attached in the mail of Zhigang.Yao@arm.com at 2023-02-08 09:00.

Commit message in the original patch:
{
From d1245d8578ba6ae4fb1b0f70417a97ea6afa920d Mon Sep 17 00:00:00 2001
From: Raffaele Aquilone <raffaele.aquilone@arm.com>
Date: Thu, 19 Jan 2023 15:26:12 +0000
Subject: [PATCH] GPUCORE-36657 Remove PageMovable() symbol

The PageMovable() function has been removed from the DDK because
it cannot be used in Android. The movable status of the page has
been duplicated into the status variable of the page metadata,
and it's kept up to date every time the movable property is set or
cleared, except in those cases where it's not necessary to keep
alive the information.

The unit test that attempts to migrate a firmware page has been
removed because now the driver has no way to detect that a page
without metadata is not movable; the driver has to trust that
the system doesn't try to isolate pages which are not movable.
...
}

Its base is not current g15.
I applied it manually on DDK g15.

Change-Id: I7e8a29f3ce79d991bc8b3a746690e9ef279e572a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-02-16 18:19:50 +08:00
Sugar Zhang
454734f2dc ASoC: rockchip: pdm: Explicit info for Multi-DAI
It's helpful for user to observe the DAI path by kmsg.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4e4e0c784a70d19b2b3c05d7fa424022e79a94ba
2023-02-16 14:12:36 +08:00
Sugar Zhang
0648aa45ac ASoC: rockchip: i2s: Explicit info for Multi-DAI
It's helpful for user to observe the DAI path by kmsg.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iebf69a9ecbca5fe6a98ca1512ea549c67f18cdff
2023-02-16 14:12:36 +08:00
Sugar Zhang
9a673d9b48 ASoC: rockchip: i2s-tdm: Explicit info for Multi-DAI
It's helpful for user to observe the DAI path by kmsg.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I60baaf787551362994c2bcb58a1c2d7c21bd23d4
2023-02-16 14:12:36 +08:00
Sugar Zhang
1b6481bb65 ASoC: rockchip: multicodecs: Fix the jack assignment
Set jack for the first successful one to fix the disorder
codec assignment.

And of course, we suggest user to place the one which use
the jack in the first place in Device Tree.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8dc5d95ba73c053a599d95c0448042fd04765c05
2023-02-16 14:12:36 +08:00
Sugar Zhang
b7494b0ea9 ASoc: rockchip: multicodecs: Set sysclk for all sub codecs
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I86c47651bb456a066c80d688afddd078ffe0389e
2023-02-16 14:12:36 +08:00
Sugar Zhang
53c5baa3cd ASoC: rk817: Fix wrong component assignment
Should use dai->component instead of the fixed rtd->codec[0],
because codec may be addressed in multi-codecs situation,
Obviously, it's wrong. the dais' one is always RIGHT.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I97cd09aa0886e2b89f2c2f257defb228168e93b0
2023-02-16 14:12:36 +08:00