Commit b9256b5e authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

Digigram VX core
- fixed another wrong lock.
parent d737c751
...@@ -415,11 +415,12 @@ int vx_send_rih_nolock(vx_core_t *chip, int cmd) ...@@ -415,11 +415,12 @@ int vx_send_rih_nolock(vx_core_t *chip, int cmd)
*/ */
int vx_send_rih(vx_core_t *chip, int cmd) int vx_send_rih(vx_core_t *chip, int cmd)
{ {
unsigned long flags;
int err; int err;
spin_lock_bh(&chip->lock); spin_lock_irqsave(&chip->lock, flags);
err = vx_send_rih_nolock(chip, cmd); err = vx_send_rih_nolock(chip, cmd);
spin_unlock_bh(&chip->lock); spin_unlock_irqrestore(&chip->lock, flags);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment