diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-03-03 11:05:55 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-03 22:39:45 +0100 |
commit | b30477d5e2961bfd90ad4146c517871ca8a6bebc (patch) | |
tree | d47155654523e0bd5d49280918d19ba3cd9f9cc0 /sound | |
parent | ALSA: oxygen: change || to && (diff) | |
download | linux-b30477d5e2961bfd90ad4146c517871ca8a6bebc.tar.xz linux-b30477d5e2961bfd90ad4146c517871ca8a6bebc.zip |
ALSA: timer - pass real event in snd_timer_notify1() to instance callback
Do not use hardcoded SNDRV_TIMER_EVENT_START value.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index 8f8b17ac074d..73943651caed 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -393,7 +393,7 @@ static void snd_timer_notify1(struct snd_timer_instance *ti, int event) event == SNDRV_TIMER_EVENT_CONTINUE) resolution = snd_timer_resolution(ti); if (ti->ccallback) - ti->ccallback(ti, SNDRV_TIMER_EVENT_START, &tstamp, resolution); + ti->ccallback(ti, event, &tstamp, resolution); if (ti->flags & SNDRV_TIMER_IFLG_SLAVE) return; timer = ti->timer; |