mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[ALSA] opl3 - simplify exclusive access lock
Use the exclusive access lock in hwdep instead of the own one. Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
This commit is contained in:
parent
224a033252
commit
05c1afe75f
4 changed files with 12 additions and 25 deletions
|
|
@ -320,7 +320,6 @@ struct snd_opl3 {
|
|||
|
||||
spinlock_t reg_lock;
|
||||
struct snd_card *card; /* The card that this belongs to */
|
||||
int used; /* usage flag - exclusive */
|
||||
unsigned char fm_mode; /* OPL mode, see SNDRV_DM_FM_MODE_XXX */
|
||||
unsigned char rhythm; /* percussion mode flag */
|
||||
unsigned char max_voices; /* max number of voices */
|
||||
|
|
@ -353,7 +352,6 @@ struct snd_opl3 {
|
|||
int sys_timer_status; /* system timer run status */
|
||||
spinlock_t sys_timer_lock; /* Lock for system timer access */
|
||||
#endif
|
||||
struct mutex access_mutex; /* locking */
|
||||
};
|
||||
|
||||
/* opl3.c */
|
||||
|
|
|
|||
Loading…
Reference in a new issue