Page MenuHomeFreeBSD

sound: Dissolve pcm/intpcm.h
ClosedPublic

Authored by christos on Nov 25 2024, 4:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 29, 8:53 PM
Unknown Object (File)
Fri, Jan 24, 5:56 PM
Unknown Object (File)
Jan 11 2025, 9:57 PM
Unknown Object (File)
Jan 5 2025, 11:14 PM
Unknown Object (File)
Jan 5 2025, 8:37 PM
Unknown Object (File)
Dec 30 2024, 7:54 AM
Unknown Object (File)
Dec 27 2024, 10:45 AM
Unknown Object (File)
Dec 11 2024, 12:01 AM
Subscribers

Details

Summary

Part of a series of patches to cleanup/simplify pcm/.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

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

Event Timeline

sys/dev/sound/pcm/feeder_format.c
104

I am trying to come up with a cleaner design for these. As mentioned in the commit message, this is part of a series of patches.

This revision is now accepted and ready to land.Nov 25 2024, 8:28 PM

If we do further work on the conversion functions, we may want to unit test them. Is that possible when we integrate them in feeder_format.c? I suppose a separate header would be easier, less extra dependencies?

If we do further work on the conversion functions, we may want to unit test them. Is that possible when we integrate them in feeder_format.c? I suppose a separate header would be easier, less extra dependencies?

Perhaps it could be useful, but I think it's better to first decide on the design and then implement the new header. I would like to somehow avoid the macro magic. :)

If we do further work on the conversion functions, we may want to unit test them. Is that possible when we integrate them in feeder_format.c? I suppose a separate header would be easier, less extra dependencies?

Perhaps it could be useful, but I think it's better to first decide on the design and then implement the new header. I would like to somehow avoid the macro magic. :)

It's not exactly clear to me what you want to achieve. But you could replace some macro and table parts with a function that takes the AFMT_* as a parameter, just make sure the function is inlined and always called with a literal as the format parameter. Although that may result in a performance hit for debug builds, I didn't look at all the details yet.

This revision was automatically updated to reflect the committed changes.