Commit Graph

41517 Commits

Author SHA1 Message Date
leeboby 84cd3bced9 sound: codecs: aw87xxx: Update to v2.14.0 2024-07-23 17:03:14 +08:00
baiywt 338a0b10ac ASoC: rockchip: rk817-codec: Fix capture noise issue 2024-04-26 10:34:37 +08:00
orangepi-xunlong be9aafe056 Support Orange Pi CM5 2024-04-10 09:27:51 +08:00
baiywt 38b0a66a10 Merge linux-5.10-gen-rkr6 2024-01-19 18:35:00 +08:00
orangepi-xunlong fba77f9a27 Support Orange Pi 5 Plus 2023-07-07 15:03:01 +08:00
Xing Zheng 4700405386 ASoC: rockchip: rk817-codec: remove some useless SOC_ENUM_SINGLE_DECLs
Change-Id: Ibc351c03518152ac463f54aa1fa8640083352aa8
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-16 09:51:41 +08:00
Xing Zheng ed36cde37c ASoC: rockchip: rk817-codec: Fix a large number of mclk counts being enabled
If it is not controlled, when the path is configured after
resume, the clock will be continuously turn on to increase
the clock count.

Therefore, we can count and control the switch of clock
separately according to the current status of playback and
capture, so as to avoid that mclk is accidentally turned off
when playback and capture exist at the same time, causing
the other stream to fail to work.

For example:
- before:
  mclk_sai0          2        2        0    11289600          0     0  50000
     mclk_sai0_out2io       1        1        0    11289600          0     0  50000
        mclk_sai0_to_io      16       16        0    11289600          0     0  50000

- after:
  mclk_sai0          2        2        0    11289600          0     0  50000
     mclk_sai0_out2io       1        1        0    11289600          0     0  50000
        mclk_sai0_to_io       2        2        0    11289600          0     0  50000

Change-Id: I78ec18c7ffc42f548e82357bcf20701aa057f15d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-16 09:39:22 +08:00
Xing Zheng b2f8e21628 ASoC: rockchip: rk817-codec: re-support recover playback/capture path after resume
We can configure automatically playback/capture path via
the controlling of 'Resume Path'.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie00e7a673bff068aa922e322d833106f4cbacfde
2023-06-16 09:39:22 +08:00
Xing Zheng 0c8ca14156 ASoC: rockchip: sai: keeping naming style of 'rockchip_' prefix for sai_suspend/resume
Change-Id: I33a4d88acf8f12ea0f1440cf8ce4bd2a57ea466e
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-14 21:15:48 +08:00
Xing Zheng f002e5acff ASoC: rockchip: sai: Add support system PM suspend/resume
Change-Id: Iafce14494982a3827f0a43409cfffe53307b7193
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-14 21:15:48 +08:00
Xing Zheng 760cdbbc19 ASoC: es8323: fix 32kHz coeff configurations
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I2f74a42dd133c40e90b29b872f41d1d501913d8e
2023-06-02 10:33:46 +08:00
Jianqun Xu 7aaa4bb7a2 ASoC: rockchip: i2s-tdm: try normal clear before switch master mode
As mind by sugar, sometimes the master device will exit unexpectly, stop
the sclk before the slave device to do stop trigger, for example the bt
module, which not act as a codec driver, is replaced by a dummy codec.

This patch adds a normal clear for i2s tdm before force switch to
master.

Fixes: c003b7fd8a ("ASoC: rockchip: i2s-tdm: Fix FIFO Clear failed on SLAVE mode sometimes")

Change-Id: Ia3ae2d9b008b07addcfcec38d4e970c376dae1e7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-06-01 18:31:53 +08:00
Xing Zheng 5110d5de6d ASoC: rockchip: rk817-codec: Be stable PLL status during switch sample rate and mclk
Change-Id: I5f01035efb68fac9800fb62388221210bdb12d93
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-05-25 15:07:08 +08:00
Sugar Zhang 823316b64b ASoC: rockchip: i2s-tdm: Optimize TRCM on slave mode
TRCM require TX/RX enabled at the same time, or need the one
which provide clk enabled at first for master mode.

It is quite a different for slave mode which does not have
these restrictions, because the BCLK / LRCK are provided by
external master devices.

So, we just set the right clk path value on TRCM register on
stage probe and then drop the trcm value to make TX / RX work
independently.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I104f168d75787d79625ca7765a1bda1e77cdde12
2023-05-23 17:02:13 +08:00
Sugar Zhang e32b8efaef ASoC: rockchip: sai: Add support for PCM R/W Wait Time
ALSA core blocks userspace for 10 seconds for PCM R/W default.

Consider the situation BT-slave which acts as SLAVE mode, when
BT-master offline sometime, the CLK lost, user have to wait the
core timeout(10s), it's quite bad experience.

This patch allows userspace to override the WAIT_TIME to recover
more quickly from terminal audio stream. especially for stream
which have no mechanism to detect the LINK offline.

Usage:

/# amixer -c 0 contents | grep Wait
numid=43,iface=PCM,name='PCM Read Wait Time MS'
numid=44,iface=PCM,name='PCM Write Wait Time MS'

/# amixer -c 0 cset numid=43 500
numid=43,iface=PCM,name='PCM Read Wait Time MS'
  ; type=INTEGER,access=rw------,values=1,min=0,max=10000,step=1
  : values=500

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I73e98d54388a50672c5ed710db448cd13c0e1098
2023-05-04 17:59:26 +08:00
Sugar Zhang 3300cecb86 ASoC: rockchip: sai: Fix BCLK glitch
After FS idle, should wait at least 2 BCLK cycle to make sure
the CLK gate operation done, and then disable mclk.

Otherwise, the BCLK is still ungated. once the mclk is enabled,
there maybe a risk that a few BCLK cycle leak. especially for
low speed situation, such as 8k samplerate.

The best way is to use delay per samplerate, but, the max time
is quite a tiny value, so, let's make it simple to use the max
time. the max BCLK cycle time is: 31us @ 8K-8Bit (64K BCLK)

  udelay(40);

Should wait for one BCLK ready after DIV and then ungate clk to
achieve the clean clk. the max BCLK cycle time is:
15.6us @ 8K-8Bit (64K BCLK)

  udelay(20);

Increase the max timeout to 1ms to fix FS idle failed. because
it's not enough for 8k samplerate.

  rockchip-sai ff810000.sai: Failed to idle FS

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia9da291dd8586236bb32cc0376a6de389f2f0a40
2023-05-04 17:59:25 +08:00
Sugar Zhang 2d2b53637e ASoC: rockchip: sai: Add support for Multi-DAIs
This patch add property 'rockchip,no-dmaengine' to
support register DAI without PCM, and it's usually
used for Multi-DAIs which combine DAIs into a union one.

Change-Id: I4e0da8fae2c692601e05118442218de0f7b4efee
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2023-05-04 17:58:15 +08:00
Sugar Zhang 54b0bc7bac ASoC: rockchip: sai: Add support for CLK-ALWAYS-ON quirks
This patch add support for keeping BCLK / FSYNC always on.
it's required by some devices, such as HDMI, PA, etc.

For example: on HDMI situation

There are some TVs require maintaining N/CTS packets or AUDS
packets to keep audio logic active, otherwise, the first tone
may be lost.

In order to optimize the user experience, we need to ensure
continuous transmission of N/CTS and AUDS packets from the
HDMI-TX, so that the SINK TV devices can maintain audio logic
activation, promptly process audio data, and achieve the
completeness of the first tone.

We init a 48k I2S-STANDARD clock timing as default.

Change-Id: I298b0ad2d53bdc41927f567c2af481f2a0bd5422
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2023-05-04 17:45:02 +08:00
Sugar Zhang c6977c7aac ASoC: rockchip: sai: Remove the space prefix for SBW
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I78ca99a10c2461f80e0c2ad7062bbfc0de3b6590
2023-05-04 16:18:29 +08:00
Sugar Zhang c961c5bb56 ASoC: rockchip: sai: Add support for Clk-Auto Switch
This patch add support for Clk-Auto Switch.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2d3b10fcf4cc55ba005d1c9da1049190882f7494
2023-05-04 16:17:55 +08:00
Sugar Zhang 0ee19616d5 ASoC: rockchip: sai: Fix Master / Slave Mode Switch
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia9dcf0c52de6a4d4487bdc02601ad9b546e8e435
2023-05-04 16:17:39 +08:00
Sugar Zhang c23e3b088d ASoC: dummy_codec: Add support for more capabilities
* Support 8-bits width
* Support Mono channel
* Support up to 384k samplerate

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9f1c10bad2bfb9a3beee1dd91508158e79da2492
2023-05-04 16:16:50 +08:00
Sugar Zhang eff4833be1 ASoC: hdmi-codec: Fix "ELD Bypass Switch"
CA info should be ignored in the ELD Bypass Situation.

Fixes: c6c61f8679 ("ASoC: hdmi-codec: Add option for ELD bypass")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I02265570ebcf4d17558b604644dcf5e9425f06cb
2023-04-07 19:44:08 +08:00
Sugar Zhang c6c61f8679 ASoC: hdmi-codec: Add option for ELD bypass
This patch allow users to enable "ELD Bypass" who don't
care anything from EDID Link Data.

Currently, this driver gets ELD(from EDID) to constraint
channels and rates.

Unfortunately, EDID is not always valid, maybe caused by
the fragile HDMI port or cable, in this situation, the max
features are limited to 48kHz stereo.

So, add this option to allow user to select the manual way
to output audio as expected. such as multi-channels LPCM(7.1),
or HBR bitstream for these sink devices.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5ad66002d6f97b4585aaeb01620a53e08b7ed84
2023-03-31 15:49:36 +08:00
Xing Zheng 775633a1ed ASoC: inno_rk3036: fixes and clean up some handles
We haven't used the rk3036 codec driver on upstream for
a long time, it seems like it needs some changes to work
well with our EVB.

- Clean up the process of DAC working/closing
- Since there is no mixer on the path, remove the mixer
  widgets to make simple the driver path
- Only keep one control node "Headphone Switch" to simplify
  user operation
- Add the control gpio of power amplifier

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ia4b41b0148fe9680f58abe4113d1276f260ef1b5
2023-03-16 14:58:31 +08:00
Sugar Zhang b87d415824 ASoC: rockchip: i2s-tdm: Simplify clk reparent on TRCM mode
This patch do reparent CLK_TX/RX to the same parent on TRCM mode
in driver instead of assign parent from DT.

Now, the assigned-parent from DT can be removed.

  -assigned-clocks = <&cru SCLK_I2S0_8CH_RX>;
  -assigned-clock-parents = <&cru SCLK_I2S0_8CH_TX_MUX>;

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I0abda09a1348d05306e4026f61f7daa2850ae323
2023-03-16 14:40:10 +08:00
Sugar Zhang 53222b0849 ASoC: hdmi-codec: Stop stream when plug state changed
Workaround for HDMIIN and HDMIOUT plug-{in,out} when streaming.

Actually, we should do stop stream both for HDMI_{OUT,IN} on
plug-{out,in} event. but for better experience and depop stream,
we optimize as follows:

a) Do stop stream for HDMIIN on plug-out when streaming.
because HDMIIN work as SLAVE mode, CLK lost after HDMI cable
plugged out which will make stream stuck until ALSA timeout(10s).
so, for better experience, we should stop stream at the moment.

b) Do stop stream for HDMIOUT on plug-in when streaming.
because HDMIOUT work as MASTER mode, there is no clk-issue like
HDMIIN, but, on HDR situation, HDMI will be reconfigured which
make HDMI audio configure lost, especially for NLPCM/HBR bitstream
which require IEC937 packet alignment, so, for this situation,
we stop stream to notify user to re-open and configure sound card
and then go on streaming.

Userspace should notice Error-Code(such as -EBADFD) from snd_pcm_write
to do reopen.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I85455e56f843afcdc9a5f1d5c9e85733b6732cdf
2023-03-16 14:37:26 +08:00
Tao Huang cc17504307 Merge tag 'android12-5.10-2023-02_r1' of https://android.googlesource.com/kernel/common
android12-5.10 February 2023 release 1

Artifacts:
  https://ci.android.com/builds/submitted/9611440/kernel_aarch64/latest

* tag 'android12-5.10-2023-02_r1': (5560 commits)
  ANDROID: GKI: Enable ARM64_ERRATUM_2454944
  ANDROID: dma-ops: Add restricted vendor hook
  ANDROID: arm64: Work around Cortex-A510 erratum 2454944
  ANDROID: mm/vmalloc: Add override for lazy vunmap
  ANDROID: cpuidle-psci: Fix suspicious RCU usage
  ANDROID: ABI: update allowed list for galaxy
  FROMGIT: f2fs: add sysfs nodes to set last_age_weight
  FROMGIT: f2fs: fix wrong calculation of block age
  ANDROID: struct io_uring ABI preservation hack for 5.10.162 changes
  ANDROID: fix up struct task_struct ABI change in 5.10.162
  ANDROID: add flags variable back to struct proto_ops
  UPSTREAM: io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
  UPSTREAM: eventfd: provide a eventfd_signal_mask() helper
  UPSTREAM: eventpoll: add EPOLL_URING_WAKE poll wakeup flag
  UPSTREAM: Revert "proc: don't allow async path resolution of /proc/self components"
  UPSTREAM: Revert "proc: don't allow async path resolution of /proc/thread-self components"
  UPSTREAM: net: remove cmsg restriction from io_uring based send/recvmsg calls
  UPSTREAM: task_work: unconditionally run task_work from get_signal()
  UPSTREAM: signal: kill JOBCTL_TASK_WORK
  UPSTREAM: io_uring: import 5.15-stable io_uring
  ...

Change-Id: I2b16474d6e3a91f1d702486ec6d1565a7bc310e3

Conflicts:
	Documentation/ABI/testing/configfs-usb-gadget-uac2
	Documentation/usb/gadget-testing.rst
	Makefile
	arch/arm/boot/dts/rk3288-evb-act8846.dts
	arch/arm64/mm/Makefile
	drivers/dma-buf/dma-buf.c
	drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
	drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
	drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
	drivers/gpu/drm/rockchip/rockchip_drm_vop.c
	drivers/mmc/core/mmc.c
	drivers/pci/controller/dwc/pcie-designware-host.c
	drivers/pinctrl/pinctrl-rockchip.c
	drivers/regulator/core.c
	drivers/usb/dwc3/ep0.c
	drivers/usb/dwc3/gadget.c
	drivers/usb/gadget/function/f_hid.c
	drivers/usb/gadget/function/f_uac1.c
	drivers/usb/gadget/function/f_uac2.c
	drivers/usb/gadget/function/u_audio.c
	drivers/usb/gadget/function/u_audio.h
	drivers/usb/gadget/function/u_uac2.h
	drivers/usb/host/xhci.h
	drivers/usb/storage/unusual_uas.h
	drivers/usb/typec/altmodes/displayport.c
	include/linux/page_ext.h
	mm/cma.c
	mm/page_ext.c
	sound/core/pcm_dmaengine.c
	sound/soc/codecs/hdmi-codec.c
	include/linux/stmmac.h
	sound/drivers/aloop.c
	drivers/pci/controller/dwc/pcie-designware.h
2023-03-14 09:44:51 +08:00
Sugar Zhang 5c3a32865c ASoC: rockchip: sai: Add support for IEC958 fmt
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ieb0bdbe2631efa7a440dc2ed835f0fd952263f85
2023-03-10 17:21:26 +08:00
Sugar Zhang 6026cf7136 ASoC: rockchip: multicodecs: Fix potential NULL point reference
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I43399292c8f242e98139cb8e285f5bc732889894
2023-03-03 11:30:20 +08:00
Sugar Zhang b4652bb42b ASoC: rockchip: hdmi: Fix potential NULL point reference
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9d0c2adbdffc268d88bac31c1db31507fd82661d
2023-03-03 11:30:20 +08:00
Jason Zhu 205c5a8113 ASoC: codecs: rk_dsm: clean up code
Delete unused definition and modify the error register definition.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I255c17049bc28faf108dbca8ec0337d3ccb11555
2023-03-02 14:51:21 +08:00
Jason Zhu df50198904 ASoC: codecs: rk_dsm: fix channel disorder
The dsm sound may be channel disorder when play sometimes,
we can reset the rk_dsm to reconfigure the IP and make it
work well.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Iece70267c478c0ec60f685ab85e39ff365b16f4c
2023-03-02 14:51:21 +08:00
Sugar Zhang 24fd898a83 ASoC: rockchip: i2s: Add support for clk compensation
This patch introduces a method to handle clk drift and compensation.

e.g:

/# amixer contents
numid=1,iface=PCM,name='PCM Clk Compensation In PPM'
; type=INTEGER,access=rw------,values=1,min=-1000,max=1000,step=1
: values=0

/# arecord -D hw:0,0 --period-size=1024 --buffer-size=4096 -r
16000 -c 2 -f s16_le /dev/zero &

/# amixer -- cset numid=1 -10
numid=1,iface=PCM,name='PCM Clk Compensation In PPM'
; type=INTEGER,access=rw------,values=1,min=-1000,max=1000,step=1
: values=-10

/# amixer -- cset numid=1 10
numid=1,iface=PCM,name='PCM Clk Compensation In PPM'
; type=INTEGER,access=rw------,values=1,min=-1000,max=1000,step=1
: values=10

Change-Id: I6be8d7275ccf985f43ebc2980ce284c83504ddbc
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2023-03-02 10:04:58 +08:00
Jason Zhu 9ec9e12850 ASoC: rk_codec_digital: fix register definition error
Fixes: 5d33c809c3 ("ASoC: codecs: Add support for rockchip codec digital interface")
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I867538d4aef82120b9cefa2cf833ccfe43f11596
2023-03-01 16:24:15 +08:00
Sugar Zhang 309faf4a9c ASoC: rockchip: i2s: Fix FIFO clear error on SLAVE mode
Workaround for FIFO clear on SLAVE mode:

A Suggest to do reset hclk domain and then do mclk
  domain, especially for SLAVE mode without CLK in.
  at last, recovery regmap config.

B Suggest to switch to MASTER, and then do FIFO clr,
  at last, bring back to SLAVE.

Now we choose plan B here.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1884659df7fa9052477652b7b0315da21e3165c2
2023-03-01 16:01:29 +08:00
Sugar Zhang 3d084c2144 ASoC: rockchip: i2s: Simplify FIFO clear routine
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4ecfe4978d7646a99b205772515ae1c4f2d4607f
2023-03-01 16:01:29 +08:00
Sugar Zhang c003b7fd8a ASoC: rockchip: i2s-tdm: Fix FIFO Clear failed on SLAVE mode sometimes
The previous idea about FIFO clear on SLAVE mode is:

1, Switch to MASTER mode
2, Do FIFO clear
3, Switch to SLAVE mode

But, there is a risk that drivers don't set mclk on SLAVE mode,
the mclk from PLL maybe a very high freq (higher than controllers'
signoff freq) that make controller work unexpected.

This patch allow set mclk freq for MASTER / SLAVE mode to fix it.
and, of course, there is no side effect.

This patch also simplify the clear routine by merging clear step 1/2
into a single one.

Fixes: 0a0a0b7606 ("ASoC: rockchip: i2s-tdm: Fix FIFO clear error on SLAVE mode")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8488b039e1e21a632bfd2a1c48c86b343fded17a
2023-03-01 16:01:29 +08:00
Binyuan Lan a919c35a83 ASoC: rockchip: rk817-codec: don't change APLL_CFG3/DDAC_SR_LMT0 when capture with pdm
Change-Id: I1e1b429e64ac6e3fbd5924a6bab4fcfed4a0ae11
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-02-25 12:21:41 +00:00
Tao Huang 6269d536a3 Revert "ALSA: usb-audio: add USB ID for nanoc audio codec"
This reverts commit 45c518d6ca.

Remove unused RKVR driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1220abd811b4ec8c416758ca3ae00b438ff215c0
2023-02-24 16:57:52 +08:00
Tao Huang ef69122250 Revert "ALSA: usb-audio: fix disvr usb Audio bug"
This reverts commit 7aac3b4eef.

Remove unused RKVR driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6f4531ba4b13d876feebf5ac1fd12e254099a6d1
2023-02-24 16:57:46 +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
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
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
Sugar Zhang 150af0ebb0 ASoC: rk312x: 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: I4d95b82e36a929e46f4992cbb198b6a060c5c939
2023-02-16 14:12:36 +08:00