]> Gentwo Git Trees - linux/.git/commit
ALSA: cs4281: Send the PCM period elapsed notification properly
authorChandra Mohan Sundar <chandramohan.explore@gmail.com>
Sat, 6 Sep 2025 16:21:54 +0000 (21:51 +0530)
committerTakashi Iwai <tiwai@suse.de>
Sat, 6 Sep 2025 17:55:10 +0000 (19:55 +0200)
commit400f60b27415f927f8964dd32d1f5baa53782e5f
tree8881a80280407db1bd9c1d0e61b0ad0cb914acba
parenta73349c5dd27bc544b048e2e2c8ef6394f05b793
ALSA: cs4281: Send the PCM period elapsed notification properly

As part of spin lock code cleanup using guard(), a new
variable (period_elapsed) was introduced. However this variable
is never set, causing period elapsed notification to be not sent.

Set the value of period_elapsed appropiately.

This issue was reported by static coverity analyzer.

Fixes: 7a5127c2c8a5a ("ALSA: cs4281: Use guard() for spin locks")
Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com>
Link: https://patch.msgid.link/20250906162158.564899-1-chandramohan.explore@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs4281.c