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
F102951918: D45137.diff
Tue, Nov 19, 3:18 AM
Unknown Object (File)
Sun, Nov 17, 11:11 AM
Unknown Object (File)
Sun, Nov 17, 1:16 AM
Unknown Object (File)
Sat, Nov 16, 2:42 PM
Unknown Object (File)
Fri, Nov 8, 11:26 PM
Unknown Object (File)
Fri, Nov 8, 11:03 PM
Unknown Object (File)
Fri, Nov 8, 7:05 PM
Unknown Object (File)
Fri, Nov 8, 12:41 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57629
Build 54517: arc lint + arc unit

Event Timeline

sys/sys/soundcard.h
1930

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

sys/sys/soundcard.h
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
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
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