[PATCH] ALSA: conf: Save SND_CONFIG_TYPE_REAL with at least one decimal

Jaroslav Kysela perex at perex.cz
Tue Dec 13 12:12:49 CET 2022


On 13. 12. 22 8:55, Simon Svanbom wrote:
> Hi,
> patch for saving SND_CONFIG_TYPE_REAL with at least one decimal as to not 
> misinterpret the value as an integer in snd_config_get_real. Example would be 
> the sofvol configuration property min_dB and max_dB, that are required to have 
> at least one decimal.

Thanks. I pushed this fix to repo using the snd_config_get_ireal() function in the configuration parsing code:

https://github.com/alsa-project/alsa-lib/commit/9f2c68cef716aa45942b502a42d94b84289f23bc

					Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list