This patch add support for hw_free which is paired to
hw_params.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iaddffe89212bd734dcd3fc8de38c7ff3b2abe652
Should skip the dais which mapped as zero channel.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I875f6dc6795b8cfed5abffcaf849fb52b729d5a3
This patch fix error path handle and also clean the
log message.
Change-Id: Id361bc2b0765371b80937ef1437f649c70e948ed
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The vup_gpio is in output high by default when
system enter suspend, this may cause gpio leakage
current 0.7mA. So we need to set the vup_gpio to
output low when enter pm suspend, and set it to
output high on pm resume.
Note that if the usb gadget needs to support
remote wakeup on suspend, we should add the
property "wakeup-source" in the u2phy0 node
to avoid manage the vup_gpio in suspend and
resume.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Id7cbcc100d4e946d561b85eba1defe51f115745d
Add binding documentation for the power domains
found on Rockchip RK3562 SoCs.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I755b753bb08aab5a9c2b1ee8784f762a8bdf368a
In RK3588 VOP, HDMI1/eDP1 MUX1 module's reset signal should be
released when PD_VOP turn on. If this reset signal is not be
released, the HDMI1 or eDP1 output interface can't work normally.
However, If the deassert signal want to transfer to HDMI1/eDP1
MUX1 and take effect, it need the video port0 dclk's source clk
work a few moment.
In some cases, the video port0 dclk's source clk is disabled(now
only the hdmi0/1 phy pll as the dclk source parent will appear)
after PD_VOP turn on, for example, vidoe port0 dclk source select
hdmi phy pll. To fix this issue, enable video port0 dclk for a
few monent when active a video port which attach to eDP1/HDMI1.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I45d69eb06d8336caf92debb70d17f12b06c1eccf
1. Support ioctl PCIE_EP_DMA_XFER_BLOCK
2. Support dma_debug
Change-Id: I1d3e19bafcc9daf4d36e15cd089b2fd0ef45c3c2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
1.Export DMA transmission interface from dmatest to kernel
2.Export ioctl DMA transmission interface from kernel to userspace
Change-Id: Icd129e23747d5f3ec386c6de9371711a07ee7965
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This patch handle for err path and throw readable log
message for better debug.
Change-Id: I02aaf3fbedb56dfa0ff72966fa7489f28b50e436
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
In order to use dw_pcie_writel_dbi2() and standard macro
to disable unused BARs.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ibe26abfb319f3f75899dd2f8c4f7b0a9a733bfa7
[W=1] sound/soc/rockchip/rockchip_sai.c:883:29:
warning: ‘tsft_enum’ defined but not used [-Wunused-const-variable=]
Change-Id: Ifd7fa236cf8fecc9dd570c9aa5f1a812bc4a64ea
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
When different processes import buffers, the same virtual address may
exist, so current needs to be used for judgment.
Change-Id: If522075de57d4e4fb02dbf5dfcaca4f23fb22de9
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
when dsi controller work in cmd mode, it will tell vop work in
hold mode and must config te signal for vop.
when rk3588 dsi interface connect to rkx111 and work in cmd mode,
rkx111 will not provided a te signal, so it need disable hold
mode and transfer this config to vop.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I2044ee882bee4be896dc65b9fcf6d502d56661df
The serdes version 1 have a bug when enable video suspend function,
which is target to enhance the i2c frequency when transfer video
stream. In order to enhance i2c frequency as far as possible, a
workaround ways is provided to do this thing, which is to reduce
the video packet length. the formula as follow:
length = ((hactive x 24 / 32 / 16) + 15) / 16 * 16
It should be noted that reducing video packet length will consume more
link bandwidth.
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I23b679ec12ff3e2801bfb13cc1836094b6fd4ff9
This patch add support for keeping PDM-CLK always on.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibe5f660b52de6dba493a0046f89e4b2af1b379bb
This patch add support for HPF control that allow user
to change HPF cut off freq or on/off HPF.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I33c4ebe8499eabd0770f5454129391d3aea2e28d
The I2S part of RK817 work as slave mode require BCLK on
first, otherwise, there will make the L/R invert.
On the stage hw_params, the BCLK maybe off. so, let's move
it into mute stage to fix this.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3b9a7030342281a596e16c025f42c49a79c3a5df
Audio Products with AEC require loopback for echo cancellation.
the hardware LP is not always available on some products, maybe
the HW limitation(such as internal acodec) or HW Cost-down.
This patch add support software DLP for such products.
Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ief55346feb52e264fbc22434c6a3c046b455dfe3
Audio Products with AEC require loopback for echo cancellation.
the hardware LP is not always available on some products, maybe
the HW limitation(such as internal acodec) or HW Cost-down.
This patch add support software DLP for such products.
Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iab070c94c33c3fd47646d07ab38cd9c997a302cf
Should compare to mclk_req rate, and also increase delta
from 1 Hz to 5 Hz.
Fixes: bca24656b6 ("ASoC: rockchip: sai: Allow mclk shift around 1 Hz")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7906c21e670c1dd7f105c025e110af61cbd56299
This patch add support DMA-based digital loopback for SAI.
Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2af1b849b65453f015ed5cc943b2f26622a5efa4
This patch add support DMA-based digital loopback for I2S.
Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8a0ea59b216e18ed8c9758f529ef600a333913d7
This patch add support DMA-based digital loopback for
Multi-DAIs.
Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2861632eb28b4c5f596cfa5af855676c6140d1e1
This patch splits driver into core and pcm part to
simplify the DLP development and debugging for varies
cases. such as SINGLE-DAI, MULTI-DAIS.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibbf39b5ae67661a8d9663399d760cbee3220dbc2