mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
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>
This commit is contained in:
parent
faf4eb23d5
commit
b30477d5e2
2 changed files with 2 additions and 2 deletions
|
@ -544,7 +544,7 @@ struct snd_rawmidi_status {
|
||||||
* Timer section - /dev/snd/timer
|
* Timer section - /dev/snd/timer
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 5)
|
#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SNDRV_TIMER_CLASS_NONE = -1,
|
SNDRV_TIMER_CLASS_NONE = -1,
|
||||||
|
|
|
@ -393,7 +393,7 @@ static void snd_timer_notify1(struct snd_timer_instance *ti, int event)
|
||||||
event == SNDRV_TIMER_EVENT_CONTINUE)
|
event == SNDRV_TIMER_EVENT_CONTINUE)
|
||||||
resolution = snd_timer_resolution(ti);
|
resolution = snd_timer_resolution(ti);
|
||||||
if (ti->ccallback)
|
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)
|
if (ti->flags & SNDRV_TIMER_IFLG_SLAVE)
|
||||||
return;
|
return;
|
||||||
timer = ti->timer;
|
timer = ti->timer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue