ASoC: rsnd: indicate warning once if it can't handle requested rule
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 1 Feb 2023 02:00:08 +0000 (02:00 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 1 Feb 2023 11:43:47 +0000 (11:43 +0000)
commit6d612f67a8d430ab1905f795fb440e6e3545d94f
tree7b20b5ab01e9ec49f99a21f74138f69481f5cf18
parentc12dc0f6655bbf41d32a863b8e314f18f746fb0b
ASoC: rsnd: indicate warning once if it can't handle requested rule

Some SoC can't handle all requested hw rule. In such case, it will indicate
like below, but it is unclear why it didn't work to user.
This patch indicates warning in such case once, because player will try to
similar rule many times.

# aplay sound.wav
Playing WAVE 'sound.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
aplay: aplay.c: 1359: set_params: Assertion `err >= 0' failed.
Aborted by signal Aborted...

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87357q6t7b.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/rsnd.h