Commit Graph

1065406 Commits

Author SHA1 Message Date
Mauro Carvalho Chehab
83bc257d94 UPSTREAM: ABI: configfs-usb-gadget-uac1: fix a broken table
Changeset 0356e6283c ("usb: gadget: f_uac1: add volume and mute support")
added some new elements to the table but didn't care enough to actually
adjust the columns, causing the output to be broken as warned by
Sphinx when producing the documentation.

Readjust it for it to be a valid ReST table.

Change-Id: I2c8a1dff01779e7ee5418b66aa52ddc70029fd8d
Fixes: 0356e6283c ("usb: gadget: f_uac1: add volume and mute support")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/044b0c14c35922bdcca50551fe2aa870baae9b06.1632740376.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 1b8af67cae)
2022-03-18 14:48:07 +08:00
Mauro Carvalho Chehab
21f8a7fb61 UPSTREAM: ABI: configfs-usb-gadget-uac2: fix a broken table
Changeset af6cbe09920 ("usb: gadget: f_uac2: add volume and mute support")
added some new elements to the table but didn't care enough to actually
adjust the columns, causing the output to be broken as warned by
Sphinx when producing the documentation.

Readjust it for it to be a valid ReST table.

Change-Id: I8a0ae4fbc93b0587a8b4d3459ef90829778d7da0
Fixes: eaf6cbe099 ("usb: gadget: f_uac2: add volume and mute support")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/d253819a4c201b942d754682bb91dd278300fb79.1632740376.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 5ef803538b)
2022-03-18 14:48:07 +08:00
Hu Haowen
0fb672fa56 UPSTREAM: docs: usb: fix malformed table
The tables are separated with tabs and spaces mixed together, leading
to malformation. Changed the characters all into spaces to solve this
issue.

Change-Id: I9004ca26e2ea0fbe397a1cb3e21bae639c240751
Signed-off-by: Hu Haowen <src.res@email.cn>
Link: https://lore.kernel.org/r/20210805040146.121526-1-src.res@email.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9c0edd5649)
2022-03-18 14:48:07 +08:00
Pavel Hofman
194ea1f571 FROMGIT: usb: gadget: u_audio: Add capture/playback srate getter
UAC1/UAC2 functions will need to query u_audio about the currently set
srate. Add the getter functions.

Change-Id: I5d7e38d52eb073cdd1ab1692994cf7cd2f9e7757
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20220121155308.48794-5-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit eb3a1ce6f5
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
2022-03-18 14:48:07 +08:00
Pavel Hofman
f948999ac8 FROMGIT: usb: gadget: u_audio: Move dynamic srate from params to rtd
Parameters uac_params.p_srate/c_srate are dynamic now and are not part
of parametric configuration anymore. Move them to the
runtime struct uac_rtd_params for each stream.

Change-Id: I4ce2dcf8b342d86f5b82167194a438af267837bc
Suggested-by: John Keeping <john@metanate.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20220121155308.48794-4-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8722a949e6
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
2022-03-18 14:48:07 +08:00
Julian Scheel
7ab40ff566 FROMGIT: usb: gadget: u_audio: Support multiple sampling rates
Implement support for multiple sampling rates in u_audio part of the
audio gadget. The currently configured rates are exposed through
read-only amixer controls 'Capture Rate' and 'Playback Rate'.

Change-Id: Idcdcddf34a165553753b2a9af17a688b0e8ab4f0
Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20220121155308.48794-3-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit c565ad07ef
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
2022-03-18 14:48:07 +08:00
Pavel Hofman
1fc9aac7c0 UPSTREAM: usb: gadget: u_audio: Subdevice 0 for capture ctls
Both capture and playback alsa devices use subdevice 0. Yet capture-side
ctls are defined for subdevice 1. The patch sets subdevice 0 for them.

Change-Id: I18ebe7c5f59c108fb48b205af4a3f84839b5f71d
Fixes: 02de698ca8 ("usb: gadget: u_audio: add bi-directional volume and mute support")
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20220105104643.90125-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 601a5bc1ae)
2022-03-18 14:48:07 +08:00
John Keeping
3e3779b910 UPSTREAM: usb: gadget: u_audio: fix calculations for small bInterval
If bInterval is 1, then p_interval is 8000 and p_interval_mil is 8E9,
which is too big for a 32-bit value.  While the storage is indeed
64-bit, this value is used as the divisor in do_div() which will
truncate it into a uint32_t leading to incorrect calculated values.

Switch back to keeping the base value in struct snd_uac_chip which fits
easily into an int, meaning that the division can be done in two steps
with the divisor fitting safely into a uint32_t on both steps.

Change-Id: I602559a8977803545ef2b83021cc9cbac2db24b5
Fixes: 6fec018a7e ("usb: gadget: u_audio.c: Adding Playback Pitch ctl for sync playback")
Tested-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: John Keeping <john@metanate.com>
Link: https://lore.kernel.org/r/20220104183243.718258-1-john@metanate.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit f2f69bf65d)
2022-03-18 14:48:07 +08:00
Pavel Hofman
7c0605bc8d UPSTREAM: usb:gadget: f_uac1: fixed sync playback
The u_audio param fb_max was not set to its default value in f_uac1.c.
As a result the maximum value of Playback Pitch ctl was kept at 1000000,
not allowing to set faster playback pitch for UAC1.

The setting required moving the default constant UAC2_DEF_FB_MAX from
u_uac2.h to FBACK_FAST_MAX in u_audio.h as that header is common for
f_uac1.c and f_uac2.c.

Change-Id: Ie85199656e096dc931dffa465e706a8526b5856d
Fixes: 6fec018a7e ("usb: gadget: u_audio.c: Adding Playback Pitch ctl for sync playback")
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20211022140339.248669-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d9f2734843)
2022-03-18 14:48:07 +08:00
Pavel Hofman
46889912f2 UPSTREAM: usb: gadget: u_audio.c: Adding Playback Pitch ctl for sync playback
EP IN is hard-coded as ASYNC both in f_uac1 and f_uac2 but u_audio sends
steady number of audio frames in each USB packet, without any control.

This patch adds 'Playback Pitch 1000000' ctl analogous to the existing
'Capture Pitch 1000000' ctl. The calculation of playback req->length in
u_audio_iso_complete respects the Playback Pitch ctl value to 1ppm now.

Max. value for Playback Pitch is configured by the existing parameter
uac2_opts->fb_max, used also for the Capture Pitch.

Since the EP IN packet size can be increased by uac2_opts->fb_max now,
maxPacketSize for the playback direction is calculated by the same
algorithm as for the async capture direction in
f_uac2.c:set_ep_max_packet_size.

Change-Id: Id19a55560a23497c75fc62debcb7dd6de98a53fe
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20211013073934.36476-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 6fec018a7e)
2022-03-18 14:48:07 +08:00
Colin Ian King
f1cef857d5 UPSTREAM: usb: gadget: f_uac2: clean up some inconsistent indenting
There are bunch of statements where the indentation is not correct,
clean these up.

Change-Id: I6540cf83e40dd7f825b315f035273e37f4ea7287
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210902224758.57600-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 18d6b39ee8)
2022-03-18 14:48:07 +08:00
Pavel Hofman
4d7a4c3d18 UPSTREAM: usb: gadget: f_uac1: fixing inconsistent indenting
Fixing inconsistent indenting identified by kernel test
robot.

Change-Id: If5831eafe2909a5a0d4955ecbddc3b176415e1a0
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Acked-By: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20210817100555.4437-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 1bc2208355)
2022-03-18 14:48:07 +08:00
Colin Ian King
6c4eefb07f UPSTREAM: usb: gadget: f_uac2: remove redundant assignments to pointer i_feature
Pointer i_feature is being initialized with a value and then immediately
re-assigned a new value in the next statement. Fix this by replacing the
the redundant initialization with the following assigned value.

Change-Id: I1cf2dd348b049a0dcb902ea674386daec68ee07e
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210804125907.111654-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 59e477af7b)
2022-03-18 14:48:07 +08:00
Ruslan Bilovol
7cff8ea0d7 UPSTREAM: usb: gadget: f_uac1: add volume and mute support
This adds bi-directional (host->device, device->host)
volume/mute support to the f_uac1 driver by adding
Feature Units and interrupt endpoint.

Currently only master channel is supported.

Volume and mute are configurable through configfs,
by default volume has -100..0 dB range with 1 dB step.

Similar to existing flexible endpoints configuration,
Feature Unit won't be added to the topology if both
mute and volume are not enabled, also interrupt endpoint
isn't added to the device if no feature unit is present

Change-Id: I9454a92291d5055286db4ef73a0038e30420fd24
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20210712125529.76070-5-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 0356e6283c)
2022-03-18 14:48:07 +08:00
Ruslan Bilovol
fe9da54e56 UPSTREAM: usb: gadget: f_uac2: add volume and mute support
This adds bi-directional (host->device, device->host)
volume/mute support to the f_uac2 driver by adding
Feature Units and interrupt endpoint.

Currently only master channel is supported.

Volume and mute are configurable through configfs,
by default volume has -100..0 dB range with 1 dB step.

Similar to existing flexible endpoints configuration,
Feature Unit won't be added to the topology if both
mute and volume are not enabled, also interrupt endpoint
isn't added to the device if no feature unit is present

Change-Id: I6666075ac963745c450fb5eeb81ff058572fad66
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20210712125529.76070-4-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit eaf6cbe099)
2022-03-18 14:48:07 +08:00
Ruslan Bilovol
a5ae50658a UPSTREAM: usb: gadget: u_audio: add bi-directional volume and mute support
USB Audio Class 1/2 have ability to change device's
volume and mute by USB Host through class-specific control
requests. Device also can notify Host about volume/mute
change on its side through optional interrupt endpoint.

This patch adds Volume and Mute ALSA controls which can be
used by user to send and receive notifications to/from
the USB Host about Volume and Mute change.

These params come from f_uac* so volume and mute controls
will be created only if the function support and enable
each explicitly

Change-Id: I5ac616d8b37b31a6be7c3114e407c17cd4b87369
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20210712125529.76070-3-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 02de698ca8)
2022-03-18 14:48:07 +08:00
Ruslan Bilovol
1fad4be082 UPSTREAM: usb: audio-v2: add ability to define feature unit descriptor
Similar to UAC1 spec, UAC2 feature unit descriptor
has variable size.

Current audio-v2 feature unit descriptor structure
is used for parsing descriptors, but can't be used
to define your own descriptor.

Add a new macro similar to what audio v1 already has.

Change-Id: I253f2a6eefe74055132920e0e56ac908500147ae
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20210712125529.76070-2-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit b48f8939b9)
2022-03-18 14:48:07 +08:00
Ruslan Bilovol
ec18ff031f UPSTREAM: usb: gadget: f_uac1: disable IN/OUT ep if unused
User can configure f_uac1 function via p_chmask/c_chmask
whether uac1 shall support playback and/or capture,
but it has only effect on the created ALSA device,
but not on the USB descriptor.

This patch adds playback/capture descriptors
dependent on that parameter. It is similar to
the same conversion done earlier for f_uac2

Change-Id: Ie25ef738a2dbc4a781a874bd7f1f015afda33b1b
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Link: https://lore.kernel.org/r/1614599375-8803-6-git-send-email-ruslan.bilovol@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 254cb1e0d7)
2022-03-18 14:48:07 +08:00
Yiqing Zeng
75a2a7aa38 media: i2c: add sc530ai sensor driver
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Icc4feae09b7497777e2f1bc586bd220caeac92a5
2022-03-18 14:31:07 +08:00
Sugar Zhang
6745dcaff6 ARM: dts: rv1106-evb: Fix root partition
Because partition 'envparam' has been removed, so, fix it.
OTOH, uboot will also override this if 'sys_bootargs' specified
in env partition.

e.g. env_emmc

blkdevparts=mmcblk0:32K(env),512K@32K(idblock),4M(uboot),32M(boot),2G(rootfs),1G(oem),2G(userdata),-(media)
sys_bootargs=root=/dev/mmcblk0p5 rootfstype=ext4

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7917dee2e642cc18c926e99eae623083453c4693
2022-03-18 14:29:43 +08:00
Chen Shunqing
8dca81808b media: rockchip: hdmirx: fix power on abnormal
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Ic02eff1f8dd1cae6ef1c1de87fc4e6839dfdceb0
2022-03-18 14:23:59 +08:00
Lin Jianhua
c1e51c428e arm64: dts: rockchip: rk3588s-evb2-lp5: fixup iomux of dp0
from dp1m2_pins to dp0m2_pins.

Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Id6c2aef3307bcc5670497cf32355bb78c7cc1f7c
2022-03-18 14:14:39 +08:00
Weng Tao
e0f5e518d4 clk: rockchip: rk3588: Add pll rate table for 955Mhz and 785Mhz
Signed-off-by: Weng Tao <tao.weng@rock-chips.com>
Change-Id: I669f79667fce318cc0ae919a52babd3cdbb52610
2022-03-18 14:12:53 +08:00
Addy Ke
84c39b1c84 arm64: dts: rockchip: toybrick change sound card-name to rockchip-es8388
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: I15a0292c80946efc54f7c83d461f3d20e71f7f64
2022-03-18 14:12:03 +08:00
Addy Ke
ce00575632 arm64: dts: rockchip: add and enable dp sound cards for rk3588 toybrick
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: I9d4db8be3594415f8c7e1e0ab3530f030c1aeca5
2022-03-18 11:36:27 +08:00
Addy Ke
5521c6447b arm64: dts: rockchip: rk3588-toybrick: enable suspend
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: I8febc05e4ba112178eb28adfba1a5b5442b12fdd
2022-03-18 11:34:33 +08:00
Addy Ke
8f08a64ede arm64: dts: rockchip: rk3588-toybrick-x0: enable hdmirx_ctrler
Enable hdmirx_ctrler and reserve cma memory for hdmi-in application

Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: Ie3f3deeeb24f549c82649029ed683a2aa6956068
2022-03-18 11:32:25 +08:00
Addy Ke
3250048625 arm64: dts: rockchip: enable av1d iommu for rk3588 toybrick
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Change-Id: Ia95ff7d2b9245a72cff8abdd3c08b57ddaecd0d6
2022-03-18 11:24:43 +08:00
Jianqun Xu
e7514f3b3c media: platform: rockchip: hdmirx select VIDEOBUF2_DMA_CONTIG
The hdmirx allocates memory through videobuf2 and call the
vb2_dma_contig_ops, but the hdmirx not select the VIDEOBUF2_DMA_CONTIG
itself, but the ISP will select it instead.

When a patch for ISP may not select VIDEOBUF2_DMA_CONTIG, the hdmirx
will fail to compile since not defined videobuf2_dma_contig_ops.

So select VIDEOBUF2_DMA_CONTIG by hdmirx indeed.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ibcf45da96053cb280e208b160ba24b2c1614a7b6
2022-03-18 08:24:38 +08:00
Jianqun Xu
2cc285e065 media: platform: rockchip: source rockchip dir to subdir
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Iffe0151bda9f05dba871907f93c0e9aef0f40ae8
2022-03-17 20:45:30 +08:00
Jianqun Xu
ef34c63346 media: videobuf2: add vb2_cma_sg_memops
Currently videobuf2 supports videobuf2-dma-sg, videobuf2-dma-contig and
videobuf2-vmalloc.

- vb2_dma_sg_memops
  created by videobuf2-dma-sg driver,
  allocates memory through 'alloc_pages' and manager them with scatter
  gather list (sgt).

- vb2_dma_contig_memops
  created by videobuf2-dma-contig driver,
  allocates memory through dma_alloc_attrs, may result in many kinds of
  memory, including 'cma_alloc'.

- vb2_vmalloc_memops
  created by videobuf2-vmalloc driver,
  allocates memory through vmalloc_user.

In some case device requires allocate memory through cma_alloc and manager
them by sgt, the new driver is named videobuf2-cma-sg.

- vb2_cma_sg_memops
  created by videobuf2-cma-sg driver,
  allocates memory through 'cma_alloc' and manager them with sgt.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ic974dd41aa3dcf9588311ad8ed6c166f3064d6fd
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-17 20:36:28 +08:00
Chen Shunqing
9acb3cd2ce media: rockchip: hdmirx: fix crash for write node
Some registers is read only, write these registers will cause crash.

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: If4bde6f21d525c2fc6fe3c56d54fce58d4900762
2022-03-17 20:35:33 +08:00
Zefa Chen
c2caac3167 ARM: dts: rockchip: add csidphy for rv1106
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia6d4dbadba3367758bf66f9b30022c5901f2143a
2022-03-17 19:40:22 +08:00
Zefa Chen
df0cb947c3 ARM: dts: rockchip: add vicap and csi2 for rv1106
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6badb39a4ccdf6f35a390b6782bb927ea08adeb3
2022-03-17 19:37:42 +08:00
Yu Qiaowei
08dd467bdf video: rockchip: rga3: Fix wrong size calculation when YUV import buffer
Update driver version to 1.2.6

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I21d32c09a976c01a8eb4a603e5d316c9ad87eddf
2022-03-17 19:25:16 +08:00
Yu Qiaowei
549f921cdf video: rockchip: rga3: Change pr_debug to pr_info
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I90ce679ff4b43bc4c3252ab44d14be16826ad16c
2022-03-17 19:24:35 +08:00
Yu Qiaowei
b63852bfde video: rockchip: rga3: adapt to kernel 5.4
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I848573243aaa5a2779575df2ee9dcf7845f2c57b
2022-03-17 19:23:55 +08:00
Yu Qiaowei
5ca9ca9055 video: rockchip: rga3: Remove wake_lock
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I00b1b4970f767a206d269d18bb7fed8bf8d17ea4
2022-03-17 19:20:51 +08:00
Damon Ding
fbffb34524 ARM: configs: rockchip: enable DSS on rv1106-evb.config
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ie78b9f0df15eb08fb67fc0fd6e2532ea07ebede1
2022-03-17 18:49:50 +08:00
Alex Wang
ab801d9de1 arm64: dts: rockchip: rk3588-nvr-demo-v10-android: enable avsd
Change-Id: If04a877f96390492743e635a9aa81e89dff62d76
Signed-off-by: Alex Wang <alex.wang@rock-chips.com>
2022-03-17 16:51:15 +08:00
Algea Cao
3fa1ab4d9a drm/bridge: synopsys: dw-hdmi-qp: Fix sending incomplete long cec msg
If FRAME_SEND_CLR_P was set, cec packets may be sent incomplete.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic67518ea0c794fe6f997c87e45dedbfd6fb1fde3
2022-03-17 16:50:34 +08:00
Herman Chen
77b73c0f4a video: rockchip: mpp: rkvenc2: Improve dchs process
1. Add rkvenc2 pagefault handler to dump memory region used in task.
2. Move rkvenc2_patch_dchs before write hardware register.
3. Add more dchs status log with DEBUG_CORE flag.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3fd5e14a3a5dd347373e3bc4e21d41db8c05fd21
2022-03-17 16:50:03 +08:00
Algea Cao
4e7fb3b61d drm/bridge: synopsys: dw-hdmi-qp: Support for any resolution
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: If8d20f351b7ad2c9f526d546d515b38a3d334f3d
2022-03-17 16:46:21 +08:00
Finley Xiao
479f161a89 arm64: dts: rockchip: rk3588s: Add rockchip,idle-threshold-freq for cpub
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I1d98fc030fbff29f689ae91a7caecf1b1325b151
2022-03-17 16:23:18 +08:00
Finley Xiao
7df9eb8ddb cpufreq: rockchip: support to disable cpuidle according to cpu frequency
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I15e85e1140fcb68f9064babb3339c4aed3cfe776
2022-03-17 16:00:41 +08:00
Chen Shunqing
6d8d3d37be media: rockchip: hdmirx: add debug node
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I5ab694ae4ec5c7a5a991ef3373781670ab5dcd20
2022-03-17 15:53:06 +08:00
Algea Cao
82eb141765 phy: rockchip-samsung-hdptx-hdmi: Fix 10bit color depth tmds clk error
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I3873c473a75b06ce85a3c98d44d696dbb700a96c
2022-03-17 15:40:18 +08:00
Liang Chen
e8a022189c soc: rockchip: add different performance level support
CONFIG_ROCKCHIP_PERFORMANCE_LEVEL=0 for low performance, low power consumption
CONFIG_ROCKCHIP_PERFORMANCE_LEVEL=1 for normal performance
CONFIG_ROCKCHIP_PERFORMANCE_LEVEL=2 for high performance, high power consumption

Change-Id: I7a88f1a2e43513f647a860b427d8344e34165fa6
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-03-17 15:08:40 +08:00
Wyon Bi
157bfadfc2 phy/rockchip: samsung-hdptx-hdmi: Add PLL setting calculation
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I22cbeff98f6f2a13344dc0addf1e1795a3fdaa59
2022-03-17 10:59:14 +08:00
Tao Huang
6856fde65c pinctrl: rk805: Call rk805_pinctrl_driver_register() early when CONFIG_ROCKCHIP_THUNDER_BOOT=y
Change-Id: Ib5d2df439481050748538ba67b17a01d842a38a0
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2022-03-17 10:10:39 +08:00