Page MenuHomeFreeBSD

sound: Add missing oss_mixerinfo devnode and legacy_device fields
ClosedPublic

Authored by christos on May 8 2024, 11:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 18, 9:21 AM
Unknown Object (File)
Wed, Jun 11, 8:04 AM
Unknown Object (File)
Tue, Jun 10, 11:30 PM
Unknown Object (File)
Tue, Jun 10, 4:52 PM
Unknown Object (File)
Tue, Jun 10, 8:34 AM
Unknown Object (File)
Sun, Jun 8, 9:44 PM
Unknown Object (File)
Mon, Jun 2, 7:17 PM
Unknown Object (File)
May 24 2025, 11:37 AM
Subscribers

Details

Summary

They are missing from soundcard.h and are in fact used by some
applications, such as OSS' ossinfo(1):
http://manuals.opensound.com/developer/ossinfo.c.html

The new size for filler is chosen according to the most recent official
version of soundcard.h, which includes those 2 fields.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/sys/soundcard.h
1928–1930

I'd imagine the new fields should reduce the size of filler[]

sys/sys/soundcard.h
1928–1930

I know but I am not sure what the new size should be. Maybe 254 - sizeof(oss_devnode_t) - sizeof(int)?

sys/sys/soundcard.h
1928–1930

Okay, according to the latest version of soundcard.h I can find in the OSS website, filler's size is 254 with these fileds added.

Also I think it might be a good idea to look into porting to the most recent soundcard.h over to FreeBSD.

sys/sys/soundcard.h
1928–1930

Sorry, I meant to write 245.

christos marked an inline comment as done.

Update commit message and filler size according to most recent soundcard.h
version.

christos retitled this revision from sound: Add missing oss_mixerinfo devnode and real_device fields to sound: Add missing oss_mixerinfo devnode and legacy_device fields.May 8 2024, 11:36 PM
christos edited the summary of this revision. (Show Details)

s/real_device/legacy_device/

This revision is now accepted and ready to land.May 9 2024, 4:15 PM