These fields and devices are unused as of e8c0d15a64fa ("sound: Get rid of snd_clone
and use DEVFS_CDEVPRIV(9)").
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential D45013
sound: Remove unused dsp_cdevs[] fields and devices christos on Apr 29 2024, 4:00 PM. Authored by Tags None Referenced Files
Subscribers
Details These fields and devices are unused as of e8c0d15a64fa ("sound: Get rid of snd_clone Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions It doesn't since e8c0d15a64fa, and in fact, I just realized that accessing them doesn't work, as is expected. What we can do is:
I am more inclined to do the former, just in case there's a program that uses /dev/dspW, /dev/audio or /dev/dspcd. @dev_submerge.ch what do you think? Comment Actions I've never seen them used by any application, but I concur to keep the aliases for now. We change a lot of things currently, which will produce already enough bug reports when it hits the RELEASEs. Comment Actions I don't think there's a lot of value in keeping the aliases, if we don't also keep the behaviour -- i.e., if some application does expect to open /dev/dspW and send 16-bit samples without doing any other configuration it's not going to work as expected. Comment Actions True, but if we delete them the program will just exit, which I don't know if it's any better. I am not very keen on keeping those aliases either however, so I am open to suggestions. Comment Actions You're right, unless we can preset format and speed defaults for these clones they are not very useful. We have alternatives for people who want to just cat some wave files, e.g. the vchan sysctls or virtual_oss. I think we can remove them, it's not worth the effort. Comment Actions I would keep them, unless there's a reason not to - these are documented as part of OSSv4. The example scripts there make use of these aliases, maybe it's even possible to run them unchanged (didn't try). And it's still the best (only?) reference for people that want to use our OSS API, even if there's quite some differences. Comment Actions Some of the types (SND_DEV_AUDIO, SND_DEV_DSP16, SND_DEV_DSPHW_CD) in sound.h are unused now, I think. Should we get rid of them or mark them deprecated? Comment Actions Ok for me except for the style, see inline comment. Having separate pcm devices for AC3, SPDIF etc may not be appropriate, but we should probably find a way to integrate these settings into the mixer or a future user space audioctl tool.
|