Commit Graph

609973 Commits

Author SHA1 Message Date
Kieran Bingham
e075df0dc7 FROMLIST: media: uvcvideo: Protect queue internals with helper
The URB completion operation obtains the current buffer by reading
directly into the queue internal interface.

Protect this queue abstraction by providing a helper
uvc_queue_get_current_buffer() which can be used by both the decode
task, and the uvc_queue_next_buffer() functions.

Change-Id: Ic5401fe9afec00b87bb075f99addae8591de6890
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(am from https://patchwork.kernel.org/patch/10311059/)
2018-07-05 18:27:42 +08:00
Kieran Bingham
683c534884 FROMLIST: media: uvcvideo: Convert decode functions to use new context structure
The URB completion handlers currently reference the stream context.

Now that each URB has its own context structure, convert the decode (and
one encode) functions to utilise this context for URB management.

Change-Id: Ib56b25ca4ec049c5eb75ffceda9c2d8a0c1a96cf
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(am from https://patchwork.kernel.org/patch/10311067/)
2018-07-05 18:27:42 +08:00
Kieran Bingham
5f5018c13a FROMLIST: media: uvcvideo: Refactor URB descriptors
We currently store three separate arrays for each URB reference we hold.

Objectify the data needed to track URBs into a single uvc_urb structure,
allowing better object management and tracking of the URB.

All accesses to the data pointers through stream, are converted to use a
uvc_urb pointer for consistency.

Change-Id: I03320cff8ec5cb268b62610b9852b32505f136aa
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(am from https://patchwork.kernel.org/patch/10311045/)
2018-07-05 18:27:41 +08:00
Guennadi Liakhovetski
87f4981ad5 UPSTREAM: media: uvcvideo: Add a metadata device node
Some UVC video cameras contain metadata in their payload headers. This
patch extracts that data, adding more clock synchronisation information,
on both bulk and isochronous endpoints and makes it available to the user
space on a separate video node, using the V4L2_CAP_META_CAPTURE capability
and the V4L2_BUF_TYPE_META_CAPTURE buffer queue type. By default, only the
V4L2_META_FMT_UVC pixel format is available from those nodes. However,
cameras can be added to the device ID table to additionally specify their
own metadata format, in which case that format will also become available
from the metadata node.

[Use put_unaligned instead of __put_unaligned_cpu64]
[Use put_unaligned for the sof field as well]

Conflicts:
	drivers/media/usb/uvc/uvc_queue.c
	drivers/media/usb/uvc/uvc_video.c

Change-Id: I2696d2c781376e363e0a77d8d895f416aaff09cb
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 088ead2552)
2018-07-05 18:27:41 +08:00
Kieran Bingham
271ae75fec UPSTREAM: [media] uvcvideo: Fix empty packet statistic
The frame counters are inadvertently counting packets with content as
empty.

Fix it by correcting the logic expression

Change-Id: I9e77fcebae2130f534dbac0932b405dd26e4033f
Fixes: 7bc5edb00b [media] uvcvideo: Extract video stream statistics
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 360a3a90c6)
2018-07-05 18:27:40 +08:00
Kieran Bingham
60f2231020 UPSTREAM: [media] uvcvideo: Don't record timespec_sub
The statistics function subtracts two timespecs manually. A helper is
provided by the kernel to do this.

Replace the implementation, using the helper.

Change-Id: I1fc2cdfad723456045515364846958814b30f666
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 52276df0b1)
2018-07-05 18:27:40 +08:00
Guennadi Liakhovetski
8df73b298c UPSTREAM: media: v4l: Add a UVC Metadata format
Add a pixel format, used by the UVC driver to stream metadata.

Conflicts:
        Documentation/media/uapi/v4l/meta-formats.rst
        drivers/media/v4l2-core/v4l2-ioctl.c
        include/uapi/linux/videodev2.h

Change-Id: I979fd6b4d5d24510e47a1cfe525e8ae0a1a573ee
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 563a01e101)
2018-07-05 18:27:39 +08:00
Guennadi Liakhovetski
31a4fbf741 UPSTREAM: media: uvcvideo: Add extensible device information
Currently the UVC driver assigns a quirk bitmask to the .driver_info
field of struct usb_device_id. This patch instroduces a struct to store
quirks and possibly other per-device parameters in the future.

Conflicts:
        drivers/media/usb/uvc/uvc_driver.c

Change-Id: I0c823a17cc15f73eb7806804b9b8d42c109c86b9
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 3bc85817d7)
2018-07-05 18:27:39 +08:00
Laurent Pinchart
679182db69 UPSTREAM: media: uvcvideo: Report V4L2 device caps through the video_device structure
The V4L2 core populates the struct v4l2_capability device_caps field
from the same field in video_device. There's no need to handle that
manually in the driver.

Change-Id: I5a98bd1ba87a4029e3de74b3ac4c21e90fe6e3a2
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 94c53e26dc)
2018-07-05 18:27:39 +08:00
Laurent Pinchart
d19a7499b2 UPSTREAM: media: uvcvideo: Factor out video device registration to a function
The function will then be used to register the video device for metadata
capture.

Change-Id: I5aa5604af149dc108d65575af37fcbdd6c32c403
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 31a96f4c87)
2018-07-05 18:27:38 +08:00
Laurent Pinchart
a2103e7e7d UPSTREAM: media: uvcvideo: Stream error events carry no data
According to the UVC specification, stream error events carry no data.
Fix a buffer overflow (that should be harmless given data alignment)
when reporting the stream error event by removing the data byte from the
message.

Change-Id: I0603ed4a092bc02ae2a339c96d1433ec8463336a
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 0393e73564)
2018-07-05 18:27:38 +08:00
Baoyou Xie
cedb983b52 UPSTREAM: media: uvcvideo: Mark buffer error where overflow
Some cameras post inaccurate frame where next frame data overlap
it. this results in screen flicker, and it need to be prevented.

So this patch marks the buffer error to discard the frame where
buffer overflow.

Change-Id: Ibd41b93cf8376b126b6d107a59ab22907fb839e6
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit dfc1648c57)
2018-07-05 18:27:37 +08:00
Nicolas Dufresne
f8f362a78c UPSTREAM: media: uvcvideo: Add D3DFMT_L8 support
Microsoft HoloLense UVC sensor uses D3DFMT instead of FOURCC when
exposing formats. This adds support for D3DFMT_L8 as exposed from
the Acer Windows Mixed Reality Headset.

Change-Id: I5689e85bd600029f3fcef37860483c19d639d6ed
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit e96cdc9a0a)
2018-07-05 18:27:37 +08:00
Julia Lawall
b2b0e8e449 UPSTREAM: media: uvcvideo: Constify video_subdev structures
uvc_subdev_ops is only passed as the second argument of
v4l2_subdev_init, which is const, so uvc_subdev_ops can be
const as well.

Done with the help of Coccinelle.

Change-Id: Ic146384e5570ad6d249e661a73138ad396c6e3a6
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 5422079014)
2018-07-05 18:27:36 +08:00
Guennadi Liakhovetski
a953079953 UPSTREAM: media: uvcvideo: Convert from using an atomic variable to a reference count
When adding support for metadata nodes, we'll have to keep video
devices registered until all metadata nodes are closed too. Since
this has nothing to do with stream counting, replace the nstreams
atomic variable with a reference counter.

Change-Id: Ied4c660b0cc618f010e4fffc3c3e06a2f71f4aa7
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9d15cd958c)
2018-07-05 18:27:36 +08:00
Xing Zheng
a74ace07b6 ARM: dts: rockchip: enable 'rockchip,no-hp-det' for rk3308 voice modules
There isn't headphone on all of rk3308 voice modules,
so we don't need to enable headphone detection.

Change-Id: I526dc02dfb3c0b92503c8a7821baa82b87c8c996
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-05 18:27:36 +08:00
Xing Zheng
08d21cd001 ASoC: rk3308_codec: add 'rockchip,no-hp-det' property
Change-Id: Ief8c0e7f5fcd21cdc7d115bbcca4eeb7050a373d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-05 18:27:35 +08:00
Xing Zheng
7e131b7f26 ASoC: rk3308_codec: add support 'rockchip,no-hp-det' property
Fix the incorrect switching LINEOUT to HPOUT if there
isn't no headphone and hp-det pin is hanging.

Change-Id: I902ce3e112049981300f786cefa247bd166e1c33
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-05 18:27:29 +08:00
Xing Zheng
5fb4a3ee57 ASoC: rk3308_codec: add property 'rockchip,delay-loopback-handle-ms'
Change-Id: Icf9384f15ccedee3f3c039cc55b506381712caae
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-05 18:26:01 +08:00
Xing Zheng
36615e7b17 ASoC: rk3308_codec: add loopback handle delay property
It may take different time for different PAs(AMPs) to
open, so the delay we need in loopback needs to be
flexible.

Change-Id: I76c98b769e382cef08a6e897bb1d527783660f3b
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-05 18:26:00 +08:00
Lin Jianhua
616ff66320 arm: dts: rockchip: rk3308-voice-module: config vad
Change-Id: I764b5fe657a503d4a0efd12920054932c8b61dcf
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2018-07-05 18:26:00 +08:00
ZhongYiChong
ca3a31fb5d media: rockchip: isp1: fix config lsc error
LSC data table size is 17x17, but when configuring data to ISP,
should be aligned to 18x17. That means every last data of last
line should be filled with 0, and not filled with the data of
next line.

BUG=b:36227021
TEST=scarlet can preview.

Change-Id: I5e923529429a1c60efff3827e594f32db7112c1f
Signed-off-by: ZhongYiChong <zyc@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/942600
Commit-Ready: Jeffy Chen <jeffy.chen@rock-chips.com>
Tested-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
2018-07-05 18:26:00 +08:00
Hu Kejun
0a58f13cfa arm64: dts: rockchip: rk3399-sapphire-excavator: isp0 and isp1 run at the same time
Change-Id: I320462c815699725625dbf6752b4ae482b367a4a
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 18:25:59 +08:00
Hu Kejun
9b1870765d media: rockchip: phy: Support isp0 and isp1 in rk3399 run at the same time
Change-Id: Iba0aee26ac8ec8df5047a07b2fa4c0e311d0329f
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 18:25:59 +08:00
ZhongYiChong
1e75fef453 media: rockchip: isp1: fix some ISP parameters config error
Some ISP parameter config functions may override the old enable
bit value, because the enable bits of these modules are in the
same registers with parameters. So we should save the old enable
bits firstly.

BUG=b:36227021
TEST=scarlet can preview

Change-Id: I509e2b9160118f8a7f522857e013e3014e41ef9f
Signed-off-by: ZhongYiChong <zyc@rock-chips.com>
2018-07-05 09:28:01 +08:00
ZhongYiChong
24ebbb8f01 media: rockchip: isp1: Update new ISP parameters immediately
For those sub modules that have shadow registers in core isp, the
new programing parameters would not be active if both
CIF_ISP_CTRL_ISP_CFG_UPD_PERMANENT and CFG_UPD are not set. Now
we configure CFG_UPD to force update the shadow registers when new
ISP parameters are configured.

BUG=b:36227021
TEST=scarlet can preview, LSC data table can be switched.

Change-Id: I804ddfc45b3c2fca9a6f51627af4264a25075070
Signed-off-by: ZhongYiChong <zyc@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/942721
Commit-Ready: Tomasz Figa <tfiga@chromium.org>
Tested-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
2018-07-05 09:27:53 +08:00
Tomasz Figa
279b12b8a7 CHROMIUM: media: rockchip/isp1: Simplify MI interrupt handling
Rather than adding unnecessary indirection, just use stream index to
handle MI interrupt enable/disable/clear, since the stream index matches
the order of bits now, thanks to previous patch. While at it, remove
some dead code.

BUG=b:78779539
TEST=Make sure camera works on scarlet.

Change-Id: Ie817471972e60917250d7240d7543b516db0db03
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065404
Reviewed-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
2018-07-05 09:27:44 +08:00
Tomasz Figa
ffaa481b28 CHROMIUM: media: rockchip/isp1: Reverse the order of MIs
The current order (SP=0, MP=1) is the opposite of what is there in
hardware registers (MP=0, SP=1), which unnecessarily complicates the
code that deals with hardware programming. Fix this by reversing the
order of streams in the driver.

BUG=b:78779539
TEST=Make sure camera works on scarlet.

Change-Id: I43671748073d9dc4cb906e5f6f992f870920ce91
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065403
Tested-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Reviewed-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
2018-07-05 09:27:37 +08:00
Tomasz Figa
697ee6a0fb CHROMIUM: media: rockchip/isp1: Replace stream state with a boolean
The rkisp1_state enum consists only of 3 entries, where 1 is completely
unused and the other two respectively mean not streaming or streaming.
Replace it with a boolean called "streaming".

While at it, remove "saved_state" member from rkisp1_stream struct, as
it is not used anywhere.

BUG=b:78779539
TEST=Make sure camera works on scarlet.

Change-Id: I329b62951e214a25ac35a5c189814cebba26dbf1
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1059006
Tested-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Reviewed-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
2018-07-05 09:27:32 +08:00
Hu Kejun
477ba003e2 media: rockchip: isp: enable SYS_STATUS_ISP status
Change-Id: I6aba3566fa3ee6e5686998ba6970010609b603a3
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 09:24:42 +08:00
Hu Kejun
230a1174bc arm64: dts: rockchip: add mipi_dphy_tx1rx1 and modify rkisp1_1 for rk3399
Change-Id: I94d01c6963dc5f2f9b61159df1b13fc0bb32a0f1
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 09:23:19 +08:00
Hu Kejun
be6abc0115 media: i2c: add ov13850 driver for rkisp1
Change-Id: I1a761130a6f6d332343bd29601594c074c0d7702
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 09:21:38 +08:00
Hu Kejun
030f4252ee media: i2c: add ov4689 driver for rkisp1
Change-Id: Ie47a347dcdfaeec112140a14d9cd005ff048f64e
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-05 09:21:03 +08:00
Alex Zhao
37d9855be1 net: wireless: rockchip_wlan: rtl8723bs: enable CONFIG_RESUME_IN_WORKQUEUE
Wifi does not take up system wake-up time

Change-Id: Ib226479f6146431d4ce2292f60a03e177d5874d1
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2018-07-05 08:54:11 +08:00
Lin Jianhua
219b8ca8ff arm64: dts: rockchip: add voice module dts for rk3308
Change-Id: I12135f6add05b926ad466d2edfef4189e47d5a32
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2018-07-04 10:00:59 +08:00
Li Huang
761248eaf1 video/rockchip: rga2: Fixup some situation will cause rga flush timeout on rk3368.
Change-Id: I40efd7ab0500bcf0b628060b4491acc56ce609b0
Signed-off-by: Li Huang <putin.li@rock-chips.com>
2018-07-04 09:51:01 +08:00
William Wu
2434000a47 tools: ffs-aio-example: add superspeed descriptors
This patch adds superspeed descriptors in device
applications to support USB 3.0 ffs gadget.

Change-Id: I5a364c935b1d30e2e929791ff16a34cf0d1c87e1
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-03 19:22:36 +08:00
Andy Yan
be328c224d arm64: dts: rockchip: default disable cpu opp-1200000000 for rk3308
According to P45 of <<Rockchip RK3308 Datasheet V1.0-20180313>>,
the max voltage for Logic is 1.1V, so for many boards which
Core_VDD and Logic_VDD share the same power supply, the ARM
core voltage will be limited to 1.1V, that can only guarantee
the cpu to run at the max freq of 1008MHZ.

As for board which Core_VDD and Logic_VDD use independent
power supply, the cpu can run a higher freq up to 1296MHZ
with higher Core_VDD power supply, you can eanble it in
your board dts.

Change-Id: I69777aa5bee797e609d9ea122f3502347930b631
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-07-03 14:23:43 +08:00
Jeffy Chen
0b75eea8cb fiq_debugger: Add proc_fops like other tty drivers
The userspace might check tty information in proc fs.

Change-Id: If3e81aacbc7948dd3000606702296bc2b76bec09
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-07-03 14:20:05 +08:00
Hu Kejun
5789f0df28 media: rockchip: isp: add pclk_isp_wrap for rk3399
Change-Id: I7e6e4bd0a7760cd4a4d35fcb7758a2194c491afc
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-03 11:46:43 +08:00
Jeffy Chen
bcc29ab6d3 input: touchscreen: gt1x: Make power ctrl optional
Some boards don't need to control power supply.
Let's make it optional.

Change-Id: Ifd72a7c3704cdc0df4f2d2096278a6b58f925e8d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-07-03 11:38:14 +08:00
Jeffy Chen
dde2185b03 input: touchscreen: gt1x: Change msleep to usleep_range for small msecs
The msleep < 20ms can sleep for up to 20ms, see:
Documentation/timers/timers-howto.txt.

Change msleep to usleep_range for this case.

Change-Id: Ibb680b766b6c7317fc1f13dfda7457ef771b4272
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-07-03 11:38:14 +08:00
Jeffy Chen
917c728cb2 input: touchscreen: gt1x: Fix some warnings reported by jenkins
Change-Id: Ibae24626d24d9a358285d9fd8693229b87e7a1e1
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-07-03 11:38:14 +08:00
Wu Liangqing
693215fda8 arm64: dts: rockchip: px30-evb-ddr3-v10: vcc_3v0 regulator-on-in-suspend
According to the hardware design, wifi and rmii cannot be powered off in
deepsleep

Change-Id: Id44ef9b31c34b6f12695dbf3fbb843950602ca71
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2018-07-03 11:34:12 +08:00
Sugar Zhang
75cc610f86 ASoC: rockchip: vad: add support for 'rockchip,acodec-cfg'
rockchip,acodec-cfg: config acodec after voice activity detection.

Change-Id: I8786688df872e258dd96144130aaacdbf1d99ce3
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-07-03 11:32:14 +08:00
Sugar Zhang
a797770c35 ASoC: rockchip: vad: fix snd_pcm_vad_attached crash
This patch fix snd_pcm_vad_attached crash when using non-soc audio,
such as usb audio, pci audio. it is because substream private_data
in these types of audio framework means different values.

Change-Id: I5dcd3ea7de363bc3afc8d9879a2a37c6d6110a4a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-07-03 11:31:45 +08:00
Hans Yang
7cc5bdef57 arm: configs: rk3308_linux_aarch32[_debug]_defconfig: enable initrd support
Change-Id: I1c222681dcb998efd45cf8d59e5592375d356f66
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2018-07-03 09:25:52 +08:00
Elaine Zhang
25e1f04933 clk: rockchip: rk3399: remove the flag ROCKCHIP_PLL_SYNC_RATE for GPLL
Change-Id: I569a6033fdd9902c8a48b7aa93b1785ebac426ae
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-03 09:17:12 +08:00
Xing Zheng
0760cb8976 ASoC: rk3308_codec: operate loopback ADCs during LINEOUT
We need to operate loopback ADCs during LINEOUT enable
or disable that it make ensure enable ADCs more smoothly.

Therefore, we don't need to reset loopback ADCs in
rk3308_codec_loopback_work(), and separete reinit-mics
from adc_ana_enable().

Change-Id: Id26dd5ad00c527be47a706df58c435f12d46c281
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-02 20:31:33 +08:00
Xing Zheng
07503e7108 ASoC: rk3308_codec: using BIST mode switching during loopback
This patch using BIST mode switching to fix the glitches
during loopback and reset ADCs.

Change-Id: Icb9dbd6557736fe555d9f8296369571e78bc6844
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-02 20:31:33 +08:00