git: e7314192cea3 - main - sound(4): Fix order of parameters for custom equalizer band pass filter.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Aug 2022 08:05:08 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=e7314192cea3cfade4468c8656cd82f2a95837da commit e7314192cea3cfade4468c8656cd82f2a95837da Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-08-22 07:41:05 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-08-22 08:04:26 +0000 sound(4): Fix order of parameters for custom equalizer band pass filter. When specifying a custom band-pass filter for the sound(4) equalizer, use the same format as used by the resulting C-code define to avoid confusion. PR: 195760 Sponsored by: NVIDIA Networking --- sys/tools/sound/feeder_eq_mkfilter.awk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/tools/sound/feeder_eq_mkfilter.awk b/sys/tools/sound/feeder_eq_mkfilter.awk index f956ffe1d082..f81390aef476 100644 --- a/sys/tools/sound/feeder_eq_mkfilter.awk +++ b/sys/tools/sound/feeder_eq_mkfilter.awk @@ -300,9 +300,8 @@ BEGIN { split(arg[i++], subarg, ","); FEEDEQ_TREBLE_SFREQ = 1.0 * subarg[1]; FEEDEQ_TREBLE_SLOPE = 1.0 * subarg[2]; - split(arg[i++], subarg, ","); - FEEDEQ_BASS_SFREQ = 1.0 * subarg[1]; - FEEDEQ_BASS_SLOPE = 1.0 * subarg[2]; + FEEDEQ_BASS_SFREQ = 1.0 * subarg[3]; + FEEDEQ_BASS_SLOPE = 1.0 * subarg[4]; split(arg[i++], subarg, ","); FEEDEQ_GAIN_MIN = floor(1.0 * subarg[1]); FEEDEQ_GAIN_MAX = floor(1.0 * subarg[2]);