]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ALSA: pcm: Set config update bits only when really changed
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Jan 2018 10:00:57 +0000 (11:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Jan 2018 17:04:30 +0000 (18:04 +0100)
commit7a0a87160a1dc09220ec485b31d0f82f687a053f
tree46a7e5f0eee4a584392c85c21159b171d5196f89
parentc1350bff69d13369c3316f5d5e580021c2196f90
ALSA: pcm: Set config update bits only when really changed

The PCM config space refine codes touch the parameter rmask and cmask
bits when the given config parameter is changed.  But in most places
it checks only whether the changed value is non-zero or not, and they
don't consider whether a negative error value is returned.  This will
lead to the incorrect update bits set upon the error path.

Fix the codes to check properly the return code whether it's really
updated or an error.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_oss.c
sound/core/pcm_lib.c