Skip to content

Conversation

@fellair
Copy link
Contributor

@fellair fellair commented Jun 2, 2025

A few things done here:

  • Add new userspace-driven ioctls (and necessary structs as well):
    SNDRV_TIMER_IOCTL_CREATE
    SNDRV_TIMER_IOCTL_TRIGGER
  • Change a few object pointers' directions to better reflect their intent (mostly inout).
  • Split old SNDRV_TIMER_IOCTL_TREAD into two:
    SNDRV_TIMER_IOCTL_TREAD_OLD / SNDRV_TIMER_IOCTL_TREAD64, the way it is done in the kernel.
  • Remove TODO descriptions concerning SNDCTL_TMR_START etc. as they are described elsewhere (/sys/linux/dev_sequencer.txt), and as far as I can tell, are not necessary here.

For more info about these new syscalls, see https://github.com/torvalds/linux/blob/master/Documentation/sound/utimers.rst.
Tested with local syzkaller instance and make presubmit.

P.S. Since new user time ioctls are relatively new, I've left the configs as they are with CONFIG_SND_UTIMER not set to 'y'. Didn't presume to change base configs just yet.

A few things done here:
- Add new userspace-driven ioctls (and necessary structs as well):
SNDRV_TIMER_IOCTL_CREATE
SNDRV_TIMER_IOCTL_TRIGGER
- Change a few object pointers' directions to better reflect their
intent (mostly inout).
- Split old SNDRV_TIMER_IOCTL_TREAD into two:
SNDRV_TIMER_IOCTL_TREAD_OLD and SNDRV_TIMER_IOCTL_TREAD64 the way
it is done in the kernel.
- Remove TODO descriptions concerning SNDCTL_TMR_START etc. as they
are described elsewhere, and as far as I can tell, are not necessary
here.
@tarasmadan tarasmadan enabled auto-merge June 4, 2025 13:51
@tarasmadan tarasmadan added this pull request to the merge queue Jun 4, 2025
Merged via the queue into google:master with commit 6b6b5f2 Jun 4, 2025
17 checks passed
@fellair fellair deleted the update-dev_snd_timer.txt branch June 11, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants