diff options
author | Geoffrey D. Bennett | 2021-06-21 02:16:43 +0930 |
---|---|---|
committer | Takashi Iwai | 2021-06-21 08:37:37 +0200 |
commit | 9b5ddea9ce5a68d7d2bedcb69901ac2a86c96c7b (patch) | |
tree | 02497a9cb061437a771d81fa6bd1ea6284cb24bc /lib/idr.c | |
parent | 3eeb2a19dba65fe63dd755e3209831312e0ad9ed (diff) |
ALSA: usb-audio: scarlett2: Fix data_mutex lock
The private->vol_updated flag was being checked outside of the
mutex_lock/unlock() of private->data_mutex leading to the volume data
being fetched twice from the device unnecessarily or old volume data
being returned.
Update scarlett2_*_ctl_get() and include the private->vol_updated flag
check inside the critical region.
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/20210620164643.GA9216@m.b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions