ASoC: rockchip: add format and rate constraints on rk3399
authorYu-Hsuan Hsu <yuhsuan@chromium.org>
Tue, 30 Jun 2020 09:16:15 +0000 (17:16 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 13:20:01 +0000 (14:20 +0100)
commit1eb96c198aff13162de4857e19f9488d59c4acb1
treea4bf972b649f11cd0bf5623333ae90b64cfdf3fe
parentad922ca199b38974dbe392e2faeba3aadf461ac2
ASoC: rockchip: add format and rate constraints on rk3399

S8 and S24 formats does not work on this machine driver so force to use
S16_LE instead.

In addition, add constraint to limit the max value of rate because the
rate higher than 96000(172000, 192000) is not stable either.

Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Link: https://lore.kernel.org/r/20200630091615.4020059-1-yuhsuan@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3399_gru_sound.c