]> git.alsa-project.org Git - alsa-utils.git/commit
Use public PCM rate and channel limit definitions
authorjpka <mvv@mvv.su>
Sun, 31 May 2026 07:51:19 +0000 (10:51 +0300)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2026 09:29:32 +0000 (10:29 +0100)
commit3e90f98c9f88a575ccbb863da465b681182917c1
treef37c1639043b78dd31162afd7fb5226d4f4d6f3b
parentf3537ede21d0bc5b34835988752523b08459c532
Use public PCM rate and channel limit definitions

Replace the hard-coded rate and channel limits in alsaloop, aplay and
speaker-test with the public SND_PCM_LIMIT_RATE_MIN/MAX and
SND_PCM_LIMIT_CHANNELS_MAX definitions introduced in alsa-lib.

Fallback definitions are provided in the source files so that building
against an older alsa-lib (without these macros) still works.

Closes: https://github.com/alsa-project/alsa-utils/pull/330
Signed-off-by: jpka <mvv@mvv.su>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaloop/alsaloop.c
aplay/aplay.c
speaker-test/speaker-test.c