Skip to content

Add sound module with ALSA UAPI bindings#181

Open
zRedShift wants to merge 1 commit intosunfishcode:mainfrom
zRedShift:sound-feature
Open

Add sound module with ALSA UAPI bindings#181
zRedShift wants to merge 1 commit intosunfishcode:mainfrom
zRedShift:sound-feature

Conversation

@zRedShift
Copy link

Adds a sound feature with bindings generated from <sound/asound.h>, covering PCM, control, timer, rawmidi, hwdep, and UMP interfaces. ALSA ioctl constants are added to the ioctl module following the existing pattern.

Changes

  • gen/modules/sound.h — new module header
  • gen/include/{stdlib,time}.h, gen/ioctl/include/time.h — stubs needed by asound.h under -nostdinc
  • gen/ioctl/list.c — 87 SNDRV ioctl entries (hwdep, pcm, rawmidi, ump, timer, ctl)
  • Pre-generated ioctl files updated for riscv32, loongarch, csky
  • Generated sound.rs and updated ioctl.rs for all 22 architectures

Context: https://bytecodealliance.zulipchat.com/#narrow/channel/206238-general/topic/ALSA.20and.20Bluetooth.20UAPI.20support.20in.20linux-raw-sys.20and.20rustix/with/579408922

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.

1 participant