Skip to content

Commit

Permalink
ALSA: aica: Use setup_timer() and mod_timer()
Browse files Browse the repository at this point in the history
No functional change, refactoring with the standard helpers.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jan 19, 2015
1 parent 04018e1 commit da1a392
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sound/sh/aica.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,9 @@ static void spu_begin_dma(struct snd_pcm_substream *substream)
mod_timer(&dreamcastcard->timer, jiffies + 4);
return;
}
init_timer(&(dreamcastcard->timer));
dreamcastcard->timer.data = (unsigned long) substream;
dreamcastcard->timer.function = aica_period_elapsed;
dreamcastcard->timer.expires = jiffies + 4;
add_timer(&(dreamcastcard->timer));
setup_timer(&dreamcastcard->timer, aica_period_elapsed,
(unsigned long) substream);
mod_timer(&dreamcastcard->timer, jiffies + 4);
}

static int snd_aicapcm_pcm_open(struct snd_pcm_substream
Expand Down

0 comments on commit da1a392

Please sign in to comment.