Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1578
b: refs/heads/master
c: 15790a6
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 29, 2005
1 parent 8043956 commit c00471b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92bb010cd874e53e4c2e2a73510966e45cfa4525
refs/heads/master: 15790a6be14852850ee7cbd791225fa51750d8af
12 changes: 12 additions & 0 deletions trunk/sound/core/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,16 @@ static int snd_timer_user_continue(struct file *file)
return (err = snd_timer_continue(tu->timeri)) < 0 ? err : 0;
}

static int snd_timer_user_pause(struct file *file)
{
int err;
snd_timer_user_t *tu;

tu = file->private_data;
snd_assert(tu->timeri != NULL, return -ENXIO);
return (err = snd_timer_continue(tu->timeri)) < 0 ? err : 0;
}

static long snd_timer_user_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
snd_timer_user_t *tu;
Expand Down Expand Up @@ -1729,6 +1739,8 @@ static long snd_timer_user_ioctl(struct file *file, unsigned int cmd, unsigned l
return snd_timer_user_stop(file);
case SNDRV_TIMER_IOCTL_CONTINUE:
return snd_timer_user_continue(file);
case SNDRV_TIMER_IOCTL_PAUSE:
return snd_timer_user_pause(file);
}
return -ENOTTY;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/core/timer_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, uns
case SNDRV_TIMER_IOCTL_START:
case SNDRV_TIMER_IOCTL_STOP:
case SNDRV_TIMER_IOCTL_CONTINUE:
case SNDRV_TIMER_IOCTL_PAUSE:
case SNDRV_TIMER_IOCTL_NEXT_DEVICE:
return snd_timer_user_ioctl(file, cmd, (unsigned long)argp);
case SNDRV_TIMER_IOCTL_INFO32:
Expand Down

0 comments on commit c00471b

Please sign in to comment.