FROMLIST: ASoC: rockchip: rockchip_max98090: Set period size to 240

From stress testing of arecord, we found that period size
greater than ~900 will bring pl330 to DYING state and
can not recover within 100 iterations.
The result is that arecord will stuck and get I/O error,
and issue can not be recovered until reboot.

This issue does not happen when period size is small.
Set constraint of period size to 240 to prevent such issue.
With the constraint, there will be no issue after 2000 iterations.

We can revert this patch once the root cause is found
in rockchip's pl330 implementation.

Signed-off-by: Cheng-Yi Chiang <>
(am from
(also found at

TEST=run alsa_conformance_test and arecord in a loop for
     2000 iterations. The script is attached in

Original Change-Id: Ic3e54798e4aeaa862b2e8eebcbbcef4e51ccae19
Original Reviewed-on:
Original Reviewed-by: Sean Paul <>
Original Reviewed-by: Tzung-Bi Shih <>
Original Commit-Queue: Cheng-Yi Chiang <>
Original Tested-by: Cheng-Yi Chiang <>
(cherry picked from commit 48425b33b106fad4c9e9fdd984a0683e7c679cc6)

Change-Id: I545959f99a2d99bd2f099e97c0aa6c0f4adf9a9e
Reviewed-by: Sean Paul <>
Reviewed-by: Douglas Anderson <>
Tested-by: Douglas Anderson <>
1 file changed