]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: pcm: Fix breakage of PCM rates used for topology
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Sep 2024 13:57:52 +0000 (15:57 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Sep 2024 14:17:44 +0000 (16:17 +0200)
commit9a26234423b87e111351eac0e95775e6ba14d752
tree20f60a78d75bc73741eb3be425ed690332b95b4e
parent9408ace468c317d60159c011b863b2982dae5e05
ALSA: pcm: Fix breakage of PCM rates used for topology

It turned out that the topology ABI takes the standard PCM rate bits
as is, and it means that the recent change of the PCM rate bits would
lead to the inconsistent rate values used for topology.

This patch reverts the original PCM rate bit definitions while adding
the new rates to the extended bits instead.  This needed the change of
snd_pcm_known_rates, too.  And this also required to fix the handling
in snd_pcm_hw_limit_rates() that blindly assumed that the list is
sorted while it became unsorted now.

Fixes: 090624b7dc83 ("ALSA: pcm: add more sample rate definitions")
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Closes: https://lore.kernel.org/1ab3efaa-863c-4dd0-8f81-b50fd9775fad@linux.intel.com
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20240911135756.24434-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_misc.c
sound/core/pcm_native.c