Commit Graph

1073852 Commits

Author SHA1 Message Date
Herman Chen
df2697c026 video: rockchip: mpp: fix slice mode iommu issue
When encoder slice mode is enabled the slice irq will deactivate iommu
device and get stuck. So only the last slice irq with IRQ_WAKE_THREAD
return can deactivate iommu device.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I9edb8616be56fbc3eace0528407e90f01cd33a5d
2023-03-09 15:16:01 +08:00
Elon Zhang
87a6c1de72 crypto: rockchip: add async_req NULL check in done task
If done task receive NULL async_req, return directly.

Change-Id: I4a260399daf44328da2893d0c3308f99b95919ea
Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
2023-03-08 17:44:44 +08:00
Jianqun Xu
71d818ec98 FROMLIST: dma-buf: rk_system_heap: avoid reclaim for order 4
Using order 4 pages would be helpful for IOMMUs mapping, but trying to
get order 4 pages could spend quite much time in the page allocation.
From the perspective of responsiveness, the deterministic memory
allocation speed, I think, is quite important.

The order 4 allocation with __GFP_RECLAIM may spend much time in
reclaim and compation logic. __GFP_NORETRY also may affect. These cause
unpredictable delay.

To get reasonable allocation speed from dma-buf system heap, use
HIGH_ORDER_GFP for order 4 to avoid reclaim. And let me remove
meaningless __GFP_COMP for order 0.

According to my tests, order 4 with MID_ORDER_GFP could get more number
of order 4 pages but the elapsed times could be very slow.

         time	order 8	order 4	order 0
     584 usec	0	160	0
  28,428 usec	0	160	0
 100,701 usec	0	160	0
  76,645 usec	0	160	0
  25,522 usec	0	160	0
  38,798 usec	0	160	0
  89,012 usec	0	160	0
  23,015 usec	0	160	0
  73,360 usec	0	160	0
  76,953 usec	0	160	0
  31,492 usec	0	160	0
  75,889 usec	0	160	0
  84,551 usec	0	160	0
  84,352 usec	0	160	0
  57,103 usec	0	160	0
  93,452 usec	0	160	0

If HIGH_ORDER_GFP is used for order 4, the number of order 4 could be
decreased but the elapsed time results were quite stable and fast
enough.

         time	order 8	order 4	order 0
   1,356 usec	0	155	80
   1,901 usec	0	11	2384
   1,912 usec	0	0	2560
   1,911 usec	0	0	2560
   1,884 usec	0	0	2560
   1,577 usec	0	0	2560
   1,366 usec	0	0	2560
   1,711 usec	0	0	2560
   1,635 usec	0	28	2112
     544 usec	10	0	0
     633 usec	2	128	0
     848 usec	0	160	0
     729 usec	0	160	0
   1,000 usec	0	160	0
   1,358 usec	0	160	0
   2,638 usec	0	31	2064

Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com>
Reviewed-by: John Stultz <jstultz@google.com>

Link: https://patchwork.kernel.org/project/linux-mm/patch/20230303050332.10138-1-jaewon31.kim@samsung.com/

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I352021b68684ea33e4538a8beda9399fed1d1d79
2023-03-08 17:44:05 +08:00
Jaewon Kim
fd087b355c FROMLIST: dma-buf: system_heap: avoid reclaim for order 4
Using order 4 pages would be helpful for IOMMUs mapping, but trying to
get order 4 pages could spend quite much time in the page allocation.
From the perspective of responsiveness, the deterministic memory
allocation speed, I think, is quite important.

The order 4 allocation with __GFP_RECLAIM may spend much time in
reclaim and compation logic. __GFP_NORETRY also may affect. These cause
unpredictable delay.

To get reasonable allocation speed from dma-buf system heap, use
HIGH_ORDER_GFP for order 4 to avoid reclaim. And let me remove
meaningless __GFP_COMP for order 0.

According to my tests, order 4 with MID_ORDER_GFP could get more number
of order 4 pages but the elapsed times could be very slow.

         time	order 8	order 4	order 0
     584 usec	0	160	0
  28,428 usec	0	160	0
 100,701 usec	0	160	0
  76,645 usec	0	160	0
  25,522 usec	0	160	0
  38,798 usec	0	160	0
  89,012 usec	0	160	0
  23,015 usec	0	160	0
  73,360 usec	0	160	0
  76,953 usec	0	160	0
  31,492 usec	0	160	0
  75,889 usec	0	160	0
  84,551 usec	0	160	0
  84,352 usec	0	160	0
  57,103 usec	0	160	0
  93,452 usec	0	160	0

If HIGH_ORDER_GFP is used for order 4, the number of order 4 could be
decreased but the elapsed time results were quite stable and fast
enough.

         time	order 8	order 4	order 0
   1,356 usec	0	155	80
   1,901 usec	0	11	2384
   1,912 usec	0	0	2560
   1,911 usec	0	0	2560
   1,884 usec	0	0	2560
   1,577 usec	0	0	2560
   1,366 usec	0	0	2560
   1,711 usec	0	0	2560
   1,635 usec	0	28	2112
     544 usec	10	0	0
     633 usec	2	128	0
     848 usec	0	160	0
     729 usec	0	160	0
   1,000 usec	0	160	0
   1,358 usec	0	160	0
   2,638 usec	0	31	2064

Signed-off-by: Jaewon Kim <jaewon31.kim@samsung.com>
Reviewed-by: John Stultz <jstultz@google.com>

Link: https://patchwork.kernel.org/project/linux-mm/patch/20230303050332.10138-1-jaewon31.kim@samsung.com/

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ib9386a5450b57d711d100c36c75d38a033f7bcc3
2023-03-08 17:44:05 +08:00
Binyuan Lan
58c759f7b7 arm64: dts: rockchip: rk3562-rk817: optimize the recording noise
Change-Id: I18e40adfed7ef7adb9ef440d9793dd282c930c36
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-03-08 17:41:25 +08:00
Wyon Bi
49bfddeec8 drm/bridge/synopsys: dw-hdmi-qp: Add support for drm_panel usage
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Id83f74260fe1d91eb891d3a1b86beab0634910d2
2023-03-08 17:41:03 +08:00
Damon Ding
b8de93f157 drm/rockchip: rgb: fix functions of sending mcu cmds to support VOP3
1. modify the process of sending mcu cmds, not to find
crtc for each cmd repeatedly.
2. find crtc by crtc port node instead of crtc node,
in order to adapt multiple VPs like VOP2/VOP3.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I2b994d17b3da6ece32616d15e0a54050e3af62be
2023-03-08 17:05:45 +08:00
Finley Xiao
a6e1e5a832 PM / devfreq: rockchip_bus: add support for rk3562
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3250131f321ea9d8a6c798de457ae65d6e93a7ed
2023-03-08 11:32:12 +08:00
Finley Xiao
4af501ee62 arm64: dts: rockchip: rk3562: Add opp-info for cpu/gpu/npu/dmc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia97de806f2de725df60b20f100fd3b078b48c5fa
2023-03-08 11:32:12 +08:00
Finley Xiao
07d149488e soc: rockchip: opp_select: Relax superfluous check when add pvtpll length
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ifb4989404ec80827b68006c799fed6ba853424bc
2023-03-08 11:32:12 +08:00
Damon Ding
14608198ad arm64: dts: rockchip: rk3562-evb: disable gamc0/vcc_mipicsi0 in mcu display borad
The pins of gmac0/vcc_mipicsi0 and rgb are multiplexed.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Idc602639641eac0b419065f2ae862ddbe1491e95
2023-03-08 11:30:05 +08:00
Yiqing Zeng
8334ade617 media: i2c: sc3336 reset/pwd gpio should set low output by default for normal case
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I026cc9b6026d3641df861d60111d08369097fd59
2023-03-07 20:05:02 +08:00
Algea Cao
279b6f645c drm/bridge: synopsys: dw-hdmi-qp: Filter resolution that frequency less than 25 Mhz
RK3588 don't support pixel repetition function,
so resolution that frequency less than 25 Mhz
is unsupported.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I6c3f3af73738e5c96ef359abebbaf4884261c81e
2023-03-07 18:49:58 +08:00
Chandler Chen
868cbbf3b0 video: rockchip: mpp: rkvdec2: fix reset issue for link mode
for vdpu382 rkvdec, use soft reset first

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I99f369609f882eae9924f6ac59d3d6e5522004ad
2023-03-07 18:48:47 +08:00
Yandong Lin
9e961c37ec video: rockchip: mpp: add soft reset
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I769aa8cc187ac87dcb2068d56c8b0798b0f6adc3
2023-03-07 18:48:47 +08:00
Jianwei Fan
9ddeea6daf arm64: dts: rockchip: rk3562-evb2: add dual camera configuration
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I99f5d30a3424fe9cf3395e5e5f12fa6d8f34910d
2023-03-07 18:38:11 +08:00
Chandler Chen
2224a7421a video: rockchip: mpp: add iommu flush tlb before jpegdec run
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I3a17b812f12b3833d62b4ba82d77ef5b7da11144
2023-03-07 15:22:58 +08:00
Shawn Lin
15d9d94d2e PCI: rockchip: Fix compile error without CONFIG_PCIEASPM
drivers/pci/controller/dwc/pcie-dw-rockchip.c: In function 'rk_pcie_downstream_dev_to_d0':
drivers/pci/controller/dwc/pcie-dw-rockchip.c:2207:38: error: 'struct pci_dev' has no member naned 'l1ss'

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I67c0ed74183bc5bf7cb8975b8bcbcc4bebaa5ad5
2023-03-07 15:15:59 +08:00
Tony Xie
d58452d02a arm64: dts: rockchip: rk3562: add cpuidle node
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I14886e67165d87e0871b243aa53aba52b4ce1c48
2023-03-07 14:20:22 +08:00
Finley Xiao
3f303ef773 arm64: dts: rockchip: rk3562: add rktimer node
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iebe1916d6971983c567c8e7248d12b465284475c
2023-03-07 14:19:47 +08:00
Wyon Bi
a5be0ba345 drm/bridge: maxim-max96745: Make lock GPIO optional
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I45f6469f98ab7cbbab3fb5d04aa6a9be03324422
2023-03-07 14:14:25 +08:00
Zefa Chen
964565ca62 media: i2c: ar0230 add delay up to 20ms after software reset
otherwise may write register fail

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: If9079e4840b1df81533db4f3d2d0d5a2806b6c0e
2023-03-07 09:13:15 +08:00
Tao Huang
3e16f28d5e ANDROID: clk: Enable writable debugfs files only if CONFIG_ANDROID_BINDER_IPC=y
Restore CLOCK_ALLOW_WRITE_DEBUGFS define when system is Linux
without Android runtime.

Fixes: 861a024589 ("ANDROID: clk: Enable writable debugfs files")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7e5e8bade70191ceeca819dbbb45d84c687925c7
2023-03-06 14:22:16 +08:00
Binyuan Lan
4089e3ba56 arm64: dts: rockchip: rk3562-iotest: enable dsi and sdhci
Change-Id: I7414dd411307dbbcbd58fee57dfc6a57016a2c3e
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-03-06 14:20:23 +08:00
Wangqiang Guo
0036e5e728 arm64: dts: rockchip: rk3562-tablet: config DCDC_REG4 on in suspend.
Fixed Sleep Wake touch invalid.

Change-Id: Ia5b3935cf7c54685578f3913e3ac7a8e1ae7b7ab
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-03-06 14:20:01 +08:00
Caesar Wang
632220ff9d arm64: dts: rockchip: rk3562-evb1-lp4x-v10: update vcc_sd regulator
Fixes the SD cards bootup and upgrade issues.

Change-Id: I5fef57e4966abbe6ebf582b9aab124290015dae1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2023-03-06 14:18:07 +08:00
Chandler Chen
5afe9dd58f video: rockchip: mpp: disable irq during timeout reset
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: Idb91a22e55f3eaedfebf23fd7780ed4014e0da98
2023-03-06 14:16:08 +08:00
Zhang Yubing
feaa0f093e drm/rockchip: dw-dp: fix alignment fault when memory copy
the dst is device memory, when accessing dst, it need alignment, use
memcpy_toio instead of memcpy.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ie761ac1660ef841b44bc835671b7f9bd6a0f66e4
2023-03-06 09:52:34 +08:00
Binyuan Lan
c4aebfded9 arm64: dts: rockchip: rk3562-test2: enable dsi
Change-Id: I810615f5c278096f3d5aff05a923e62e4b80c884
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-03-06 09:44:38 +08:00
Finley Xiao
8881354a16 arm64: dts: rockchip: rk3562: Add cooling devices
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I33d312dff628b78f3fee446b2f039ed869b77b1b
2023-03-04 18:59:23 +08:00
Finley Xiao
c800548c78 soc: rockchip: rockchip_system_monitor: Fix panic when devfreq is NULL
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I00c5fb9d4d68c2643b382ae40603f3bb25d9e0f5
2023-03-04 14:57:33 +08:00
Cai YiWei
e175652953 media: rockchip: isp1: pm_runtime_put change to sync
Change-Id: If6ff03a7aced3c2795b150b5b807e31f521031c1
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-03 18:37:55 +08:00
Chandler Chen
fe52018169 arm64: dts: rockchip: rk3562: add shootdown-entire for vcodec mmu
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I5631a0d7376bfaca08ec99e40affced7e2cc2574
2023-03-03 11:48:47 +08:00
Jianwei Zheng
994f4d2c33 ARM: dts: rockchip: add usb2phy node for rk3036
This patch add usb2phy node for rk3036.

Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Icf21cb73d125876b507b18e768f9ff652c1a720e
2023-03-03 11:44:54 +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
Cai YiWei
3a15fce889 phy: rockchip: fix build warning
Change-Id: Ibc3998b3b624e51463dd5e0746839bbd31cb0158
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-03 10:55:56 +08:00
Cai YiWei
37c278bce0 media: rockchip: fix isp and cif build warning
Change-Id: I6924f6a833679c945fe0469efa07b66b28440edc
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-03 10:04:12 +08:00
Jianqun Xu
9b6c6fdc27 rknpu: make rknpu_mem_sync_ioctl to use dma apis
Before this patch, the rknpu mem uses the partial sync ops from dmabuf,
which is not upstream patch. this patch makes the sync ioctl to use dma
apis directly.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id648f567af86a36459d10e96db2aec2cd4177fce
2023-03-02 18:12:40 +08:00
Wyon Bi
aabe565c15 drm/rockchip: vop2: Fix dual channel setup
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ica99e16464d414535d151b80cbc1fc5cba0c2a1a
2023-03-02 18:11:04 +08:00
Su Yuefu
8d67eb0d2e ARM: configs: rv1106-cvr: add A/D Converter compilation to use AHD sensor
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I3ac3dfc10513772e89fd5047f134eb97471cf146
2023-03-02 18:10:48 +08:00
Su Yuefu
322ab30e47 ARM: dts: rockchip: support tp2855 and sc530ai for rv1106-evb-cvr-dual-cam.dtsi
based on rv1106g-evb1-v11-cvr.dts

Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I5e65e1ff7bc63838fa59cecd0f3c60634fbe8ac3
2023-03-02 16:55:27 +08:00
Jianqun Xu
3c65f6f3c3 video: rockchip: mpp: fix dma buf sync start dma address
Locate the start dma address with the dma address from the first sg and
the offset, since the sg_dma_address for the other sg will return a
invalid mapping address (-1).

Unable to handle kernel paging request at virtual address ffffff8000000000
Mem abort info:
  ESR = 0x96000146
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
Data abort info:
  ISV = 0, ISS = 0x00000146
  CM = 1, WnR = 1
swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000001caa000
[ffffff8000000000] pgd=000000007fffb003, p4d=000000007fffb003, pud=000000007fffb003, pmd=0000000000000000
Internal error: Oops: 96000146 [#1] PREEMPT SMP
Modules linked in: rk_vcodec [last unloaded: rk_vcodec]
CPU: 0 PID: 2173 Comm: mpp_mjpege_217 Not tainted 5.10.110 #389
Hardware name: Rockchip PX30 mini evb ddr3 board (DT)
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO BTYPE=--)
pc : __clean_dcache_area_poc+0x20/0x38
lr : arch_sync_dma_for_device+0x20/0x2c
sp : ffffffc0136fbb90
x29: ffffffc0136fbb90 x28: 000000000000026f
x27: 0000000000000000 x26: ffffff805fa22c00
x25: 0000000000000000 x24: ffffff8045543800
x23: 0000000000100000 x22: 0000000000000000
x21: 0000000041100000 x20: 000000000000026f
x19: 0000000000000001 x18: ffffffc012139060
x17: 0000000000000000 x16: 00000000000000c0
x15: 0000000000000004 x14: 0000000000003fff
x13: ffffffc011c8c7f0 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000001
x9 : 0000000100000000 x8 : 0000000000000000
x7 : 7320302074657366 x6 : ffffffc011e764a0
x5 : ffffffffffffffff x4 : 0000000000000000
x3 : 000000000000003f x2 : 0000000000000040
x1 : ffffff800000026f x0 : ffffff8000000000
Call trace:
 __clean_dcache_area_poc+0x20/0x38
 iommu_dma_sync_single_for_device+0x40/0x54
 dma_sync_single_for_device+0x2c/0xe8
 mpp_dma_buf_sync+0x138/0x184 [rk_vcodec]
 vepu_alloc_task+0x2a0/0x390 [rk_vcodec]
 mpp_process_task_default+0x5c/0x218 [rk_vcodec]
 mpp_dev_ioctl+0x39c/0x5e0 [rk_vcodec]
 __arm64_compat_sys_ioctl+0x104/0x158
 el0_svc_common+0xac/0x1ac
 do_el0_svc_compat+0x1c/0x28
 el0_svc_compat+0x10/0x1c
 el0_sync_compat_handler+0x60/0x8c
 el0_sync_compat+0x164/0x180

Fixes: 3fb2e28edd ("video: rockchip: mpp: change the way to refresh the dma cache")
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I7d9fc844df602e38ee8fa0e303a0e251a58b072a
2023-03-02 16:52:06 +08:00
Tao Huang
b3cfdcd677 Revert "ARM64: defconfig: add the basic config for 3399 ChromeOS"
This reverts commit 5ce147aff1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4c868a4bc277d1d4f93556061bb707fd0a0027b6
2023-03-02 15:49:46 +08:00
Su Yuefu
5ac9e8096d media: i2c: support techpoint driver
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Ia579416e730ae7da65d614d35997683a3caf1bd7
2023-03-02 15:35:57 +08:00
Simon Xue
fa6dbf5e59 iommu/rockchip: Backport from UPSTREAM linux-5.15
Change-Id: I110dbe10b49d6e61a7e48a0f85864389641526de
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2023-03-02 15:15:01 +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
Yiqing Zeng
2566a239df ARM: dts: rockchip: add rv1106g-evb1-v11-dual-cam dts
based on rv1106g-evb1-v10-dual-cam.dts

Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Ib4cced42d19af4af43c13ba95386910a57f24304
2023-03-02 14:46:11 +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