diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/emu10k1/emu10k1x.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 5512abd98bd9..341f34e19f3c 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -327,22 +327,22 @@ static void snd_emu10k1x_ptr_write(struct emu10k1x *emu, | |||
327 | static void snd_emu10k1x_intr_enable(struct emu10k1x *emu, unsigned int intrenb) | 327 | static void snd_emu10k1x_intr_enable(struct emu10k1x *emu, unsigned int intrenb) |
328 | { | 328 | { |
329 | unsigned long flags; | 329 | unsigned long flags; |
330 | unsigned int enable; | 330 | unsigned int intr_enable; |
331 | 331 | ||
332 | spin_lock_irqsave(&emu->emu_lock, flags); | 332 | spin_lock_irqsave(&emu->emu_lock, flags); |
333 | enable = inl(emu->port + INTE) | intrenb; | 333 | intr_enable = inl(emu->port + INTE) | intrenb; |
334 | outl(enable, emu->port + INTE); | 334 | outl(intr_enable, emu->port + INTE); |
335 | spin_unlock_irqrestore(&emu->emu_lock, flags); | 335 | spin_unlock_irqrestore(&emu->emu_lock, flags); |
336 | } | 336 | } |
337 | 337 | ||
338 | static void snd_emu10k1x_intr_disable(struct emu10k1x *emu, unsigned int intrenb) | 338 | static void snd_emu10k1x_intr_disable(struct emu10k1x *emu, unsigned int intrenb) |
339 | { | 339 | { |
340 | unsigned long flags; | 340 | unsigned long flags; |
341 | unsigned int enable; | 341 | unsigned int intr_enable; |
342 | 342 | ||
343 | spin_lock_irqsave(&emu->emu_lock, flags); | 343 | spin_lock_irqsave(&emu->emu_lock, flags); |
344 | enable = inl(emu->port + INTE) & ~intrenb; | 344 | intr_enable = inl(emu->port + INTE) & ~intrenb; |
345 | outl(enable, emu->port + INTE); | 345 | outl(intr_enable, emu->port + INTE); |
346 | spin_unlock_irqrestore(&emu->emu_lock, flags); | 346 | spin_unlock_irqrestore(&emu->emu_lock, flags); |
347 | } | 347 | } |
348 | 348 | ||
@@ -795,9 +795,9 @@ static irqreturn_t snd_emu10k1x_interrupt(int irq, void *dev_id) | |||
795 | 795 | ||
796 | // capture interrupt | 796 | // capture interrupt |
797 | if (status & (IPR_CAP_0_LOOP | IPR_CAP_0_HALF_LOOP)) { | 797 | if (status & (IPR_CAP_0_LOOP | IPR_CAP_0_HALF_LOOP)) { |
798 | struct emu10k1x_voice *pvoice = &chip->capture_voice; | 798 | struct emu10k1x_voice *cap_voice = &chip->capture_voice; |
799 | if (pvoice->use) | 799 | if (cap_voice->use) |
800 | snd_emu10k1x_pcm_interrupt(chip, pvoice); | 800 | snd_emu10k1x_pcm_interrupt(chip, cap_voice); |
801 | else | 801 | else |
802 | snd_emu10k1x_intr_disable(chip, | 802 | snd_emu10k1x_intr_disable(chip, |
803 | INTE_CAP_0_LOOP | | 803 | INTE_CAP_0_LOOP | |