]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rk3399_gru_sound: Support 32, 44.1 and 88.2 kHz sample rates
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 21 Jun 2019 15:58:08 +0000 (17:58 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Jun 2019 16:24:25 +0000 (17:24 +0100)
commit51f1f59f1d5df64eddd98a8304032461bdccb73f
tree6c5b608c02ece7fafab8d6e5573bcb1ee9c6b8bd
parent9a11f40de525f43a387414bc7e823cb481db7a0b
ASoC: rk3399_gru_sound: Support 32, 44.1 and 88.2 kHz sample rates

According to the datasheet the max98357a also supports 32, 44.1 and
88.2 kHz sample rate. This support was also introduced recently by
commit f59be8d8ed56 ("ASoC: max98357a: add missing supported rates").

Actually the machine driver validates the supported sample rates but
this is not really needed because the component driver can all apply
whatever constraints are needed and do their own validation. So, remove
the checks from the machine driver as are not needed at all. This way,
we also support 32, 44.1 and 88.2 kHz sample rates and we get rid of the
errors like the below.

  rk3399-gru-sound sound: rockchip_sound_max98357a_hw_params() doesn't support this sample rate: 44100
  rk3399-gru-sound sound: ASoC: machine hw_params failed: -22

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rk3399_gru_sound.c