Bug 240200 - audio/oss : module_register_init: MOD_LOAD (osscore, 0xffffffff82f4e490, 0) error 16
Summary: audio/oss : module_register_init: MOD_LOAD (osscore, 0xffffffff82f4e490, 0) e...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Chris Rees
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-08-29 21:43 UTC by Jason Mours
Modified: 2019-09-21 18:14 UTC (History)
3 users (show)

See Also:


Attachments
oss-4.2.b2019 dmesg output (187 bytes, text/plain)
2019-08-29 21:44 UTC, Jason Mours
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mours 2019-08-29 21:43:13 UTC
oss-4.2.b2019 fails to load. The address looks promising, it '9'd. Should be a whole new range for sound & code. Tubes & circuit. Error 16. Attaching dmesg.
Comment 1 Jason Mours 2019-08-29 21:44:33 UTC
Created attachment 207012 [details]
oss-4.2.b2019 dmesg output
Comment 2 Jason Mours 2019-08-29 21:45:14 UTC
osscore: Open Sound System conflicts with FreeBSD driver
osscore: Please remove sound(4) from kernel or unload it
module_register_init: MOD_LOAD (osscore, 0xffffffff82f4e490, 0) error 16
Comment 3 Jan Beich freebsd_committer freebsd_triage 2019-08-30 14:31:08 UTC
audio/oss aka the original[1] is not maintained by multimedia@. FreeBSD fork is superior[2] to 4Front version but is not a superset as some rarely used features are not implemented[3]. <sys/soundcard.h> from audio/oss is also not completely ABI-compatible (e.g., bug 184380), so consumers need to pass -isystem/usr/local/include/lib/oss/include during build.

If you still want to use audio/oss compile the kernel without sound(4) e.g.,

    include GENERIC
    ident MYKERNEL

    nodevice sound
    nodevice snd_cmi
    nodevice snd_csa
    nodevice snd_emu10kx
    nodevice snd_es137x
    nodevice snd_hda
    nodevice snd_ich
    nodevice snd_via8233

[1] https://wiki.freebsd.org/Sound#History
[2] See OSSv4 Compatibility in https://people.freebsd.org/~ariff/SOUND_4.TXT.html
[3] See OSSV4_EXPERIMENT in https://github.com/freebsd/freebsd/blob/master/sys/dev/sound/pcm/dsp.c
    Note, AFMT_FLOAT is Linux-only even in audio/oss.
Comment 4 Jason Mours 2019-09-19 07:49:29 UTC
Thank you for the information. Originally, this looked like more of the range you were looking for. I'll take this out now. What's left undone is non consequential.

With oss hids:

module_register_init: MOD_LOAD (osscore, 0xffffffff82f53490, 0) error 16

This does not look as useful. It's going places. error 16 was supposed to be something to osscore. I may dig up more as I progress. What is it doing? Header, really? Pale. Is it 8bit? Should be 24-bit. This is non-ABI. The range looked like it could describe sound, to me. Kernel driver should co-exist. The alternative is pulseaudio, outside of @multimedia too. osscore could do all of that for free. Being spatial, this is from free running an octave, 490 holding octave.  Worth caring or not, (thinking)desk or work. Should serve or stream? I'll post more here as it emerges. Turning over rocks, for jolly. A function here for kernel. Some type of dynamics, it's audio, not ultra or infra. I do need a debugger. More libraries. Xbee or something. Sonar is on. I'm missing something, maybe 'git' got it. Thanks!
Comment 5 Jan Beich freebsd_committer freebsd_triage 2019-09-19 18:16:54 UTC
Current behavior is intentional, see bug 164567. On FreeBSD sound(4) is enabled by default, so forget about audio/oss port. If you need help ask on forums or mailing lists.

CC'ing koobs@ in case he can help with comment 4.
Comment 6 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-20 03:51:15 UTC
(In reply to Jan Beich from comment #5)

Not sure how I can help, except to maybe suggest/ask whether sound can be made a directly unloadable module, not requiring a custom kernel to remove?

Alternatively, there may be other options available to make them coexist. I'd be requesting feedback from sound module maintainers or other potentially interested committers

^Triage:

 - Port is unmaintained (Reset assignee)
 - CC original committer and submitter of patch to audio/oss to prevent loading when sound(4) is loaded
Comment 8 Chris Rees freebsd_committer freebsd_triage 2019-09-20 19:22:01 UTC
Thanks for the CC.  I guess the error message could refer to the Handbook...

I'll take a look.

Chris
Comment 9 commit-hook freebsd_committer freebsd_triage 2019-09-21 18:13:40 UTC
A commit references this bug:

Author: crees
Date: Sat Sep 21 18:13:32 UTC 2019
New revision: 512528
URL: https://svnweb.freebsd.org/changeset/ports/512528

Log:
  audio/oss: Improve handling when sound.ko is compiled into the kernel.

  Now, soundon checks for its presence and fails with an appropriate error.

  While here, add it to pkg-message.

  I use this still as I have a Xonar D2X which FreeBSD's drivers don't support,
  so I'll take maintainership.

  PR:		ports/240200

Changes:
  head/audio/oss/Makefile
  head/audio/oss/files/patch-setup_FreeBSD_sbin_soundon
  head/audio/oss/pkg-message
Comment 10 Chris Rees freebsd_committer freebsd_triage 2019-09-21 18:14:19 UTC
Error message improved.  I'm afraid the drivers coexisting just isn't going to happen under any circumstances, sorry...