Home
last modified time | relevance | path

Searched hist:be919239fbcab19290bfd6802c7ad1dc946c515b (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/codecs/
H A Dnau8540.cdiff be919239fbcab19290bfd6802c7ad1dc946c515b Tue Aug 23 10:10:00 CEST 2022 Takashi Iwai <tiwai@suse.de> ASoC: nau8540: Implement hw constraint for rates

nau8540 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-6-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>