]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: hw: fix minor bug in sw_params ioctl
authorDan Cross <crossd@gmail.com>
Wed, 14 Jun 2023 21:09:10 +0000 (21:09 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Jun 2023 05:51:11 +0000 (07:51 +0200)
commitb7389e2e2e11c8168e0c35a92a0d9c6ebb45aa59
tree0303796621e6ba3789c10ad363e03919f0a511a9
parent77247f51c4ef155b99efe7af30a6a60ff9929392
pcm: hw: fix minor bug in sw_params ioctl

Commit 2115cdb added a new call to the `SNDRV_PCM_IOCTL_SW_PARAMS`
ioctl on line 675 of src/pcm/pcm_hw.c, but passed the `sw_params`
argument by value; this should be passed by pointer.

I ran across this in the context of the direwolf software modem
for amateur radio; debugging details are in
https://groups.io/g/direwolf/message/8286

Fixes: https://github.com/alsa-project/alsa-lib/pull/330
Signed-off-by: Dan Cross <cross@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_hw.c