Page MenuHomeFreeBSD

sound: Add missing oss_mixerinfo devnode and legacy_device fields
ClosedPublic

Authored by christos on Wed, May 8, 11:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 1:47 PM
Unknown Object (File)
Sun, May 12, 6:00 PM
Unknown Object (File)
Sat, May 11, 6:21 PM
Unknown Object (File)
Fri, May 10, 10:19 PM
Unknown Object (File)
Fri, May 10, 10:19 PM
Unknown Object (File)
Fri, May 10, 3:05 PM
Unknown Object (File)
Fri, May 10, 1:31 AM
Unknown Object (File)
Fri, May 10, 1:29 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.Wed, May 8, 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.Thu, May 9, 4:15 PM