1. support ACPI
2. support 'clock-names' from dt nodes
3. driver works without pinctrl device
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I6eb520632f27ea9ad84f3ee616c631be5d028cf5
According to the datasheet rev1.05 Table 5-1:
SDC_N is 1 for HBR/HBR2.
However datasheet wasn't correct.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I1cf6d573a6e886a32999dbf1b0e2ad43c5cdc30c
Configured CONFIG_VIDEO_ROCKCHIP_THUNDER_BOOT_ISP=y in rv1106-tb.config,
for kmpp/rockit built-in
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: Ib3a2265870ec78ece785d2c6152c6aa612f2d14d
Generally, DMICs require some delay to wake up to NORMAL state
after clk enabled (WAKE-UP Time), and it varies per dmic chips,
we should ignore the dirty data in this duration.
This patch introduce "start/filter-delay-ms" to skip the pop noise
in the duration, and export this delay to allow user to change it.
* PDM Start Delay Ms
a necessary delay for dmics wake-up after clk enabled, and drop the
dirty data in this duration.
* PDM Filter Delay Ms
after xfer start, a necessary delay for filter to init and will drop
the dirty data in the trigger-START late.
e.g.
/# amixer -c 3 contents
numid=4,iface=PCM,name='PDM Filter Delay Ms'
; type=INTEGER,access=rw------,values=1,min=20,max=1000,step=1
: values=20
numid=3,iface=PCM,name='PDM Start Delay Ms'
; type=INTEGER,access=rw------,values=1,min=0,max=1000,step=1
: values=20
/# amixer -c 3 cset numid=4 30
numid=4,iface=PCM,name='PDM Filter Delay Ms'
; type=INTEGER,access=rw------,values=1,min=20,max=1000,step=1
: values=30
...
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1b22de7c73cc181d2acd756ee2e32b8361db7822
This patch add support for 8000 ~ 192000 samplerate.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: If588138b186d446b3f86b4e244d71a1ca3715b2e
Treat 32 bit sample width as if it was 24 bits using only
the 24 most significant bits.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ica236069b6f0ccfa8635cd89bf11dc59bc054d8d
This patch fill IEC958 Channel Status info to fix mismatch
SampleRate measured by Analyzer.
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CS0: | Mode | d | c | b | a |
CS1: | Category Code |
CS2: | Channel Number | Source Number |
CS3: | Clock Accuracy | Sample Freq |
CS4: | Ori Sample Freq | Word Length |
CS5: | | CGMS-A |
CS6~CS23: Reserved
a: use of channel status block
b: linear PCM identification: 0 for lpcm, 1 for nlpcm
c: copyright information
d: additional format information
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1e1e3ffb8f3706ae19117c4ae3fc38e20a71f78b
The debug msg may be like:
rockchip-rgb ff000000.syscon:rgb: [drm:rockchip_rgb_encoder_mode_valid]
*ERROR* mode [320x480] clock 79000 is higher than max_clock 74250
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I179be3bd7bdb5f562c03cb33d30c72364bce74f4
Disable preempt when schedule task timeout work and start hardware.
On heavy system burden case the kthread may be switched out between
starting timeout work and real hardware starting operation and do not
come back for a long time. This will cause unexpected task timeout.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I636c80d5230eedd8ef98e1fd3219b83a0b99614a
There is no need to refine pointer for playback.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iae94a26fbe7e4b667c7b666c80a26e43079263bf
Use acpi_device_uid() to get i2c bus number for acpi device.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ib7dabbbd2bd781962ee822e6b9b1f12c962aa5e2
Set drive-strength for px30, and set drive-strength-s for px30s.
If only drive-strength, that means both for px30 and px30s.
If only drive-strength-s, that means only for px30s.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Idd2437626a28c03624ce0fb41bedf56ec61dabb0
1) disable configs to solve affect pefrormance on unixbench
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
-CONFIG_DEBUG_SPINLOCK=y
2) disable config to solve the regulator warning logs on bootup
-CONFIG_REGULATOR_DEBUG=y
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I1d7c2c3888e125cda2d3e1b7e672ebc74e12834d
Also return -EPROBE_DEFER for rkvenc when the regulator is not ready,
so that driver can probe again with devfreq until the regulator is ok.
Change-Id: I3bbf51052a8759260715d2aee40ecfe32290bc4e
Signed-off-by: Liang Chen <cl@rock-chips.com>