diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-08-23 10:09:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-23 13:04:42 +0100 |
commit | cf5071876baf995f8f98e86ef06f85a58feda63c (patch) | |
tree | 31850d76ad7cd831d39ec84f81633c5f89f83db0 /kernel/sys_ni.c | |
parent | 221ab1f0bf46236cf1a3fef5298ff5894acfb0c5 (diff) | |
download | linux-cf5071876baf995f8f98e86ef06f85a58feda63c.tar.bz2 |
ASoC: nau8821: Implement hw constraint for rates
nau8821 driver restricts the sample rate with over sampling rate, but
currently it barely bails out at hw_params with -EINVAL error (with a
kernel message); this doesn't help for user-space to recognize which
rate can be actually used.
This patch introduces the proper hw constraint for adjusting the
available range of the sample rate depending on the OSR setup, as well
as some code cleanup, for improving the communication with
user-space. Now applications can know the valid rate beforehand and
reduces the rate appropriately without errors.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20220823081000.2965-2-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel/sys_ni.c')
0 files changed, 0 insertions, 0 deletions