Hi,
If I'm not wrong
snd_hda.ko is enabled by default and subsequently loaded in kernel together with some other sound drivers, as stated in
sound(4).
Hence, trying to reload
snd_hda(4) and verifying that it's already loaded in kernel, basically doesn't add any new hint to sort your issue out
Also, all modules which are by default resident in kernel, are not listed in
kldstat(8) output.
In order to check out the proper driver to load, you may try first to identify your sound card, in order to determine whether or not the
snd_hda.ko driver is the right one for you, by running:
cat /dev/sndstat
Your device should be associated to a pcmX device, where X is the number for your preferred sound card (usually 0/1). Now edit your
/etc/sysctl.conf to assign the default output accordingly:
, where X is the number of the device.
To prevent FreeBSD from resetting this value (system otherwise automatically assigns the default output to the best detected device), add also:
. If you're sound card works, you can also set this value to
2, for system to associate sound output to the last attached device.
If your /dev/sndstat doesn't provide the info you whished for, and/or you're unsure about what driver to load, check first on man pages of drivers listed in
sound(4), than if you really haven't found a proper answer, add:
to
/boot/loader.conf, or simply
kldload snd_driver
for the current session.
[NOTE: snd_driver will load
all out of the sound drivers available under FreeBSD, so shouldn't be set as default].
This should do the trick as we know that at least one driver supports your card (or at least one driver in CURRENT, as Minbari pointed out, since it worked on TrueOS).
Be also sure to
not have enabled sndiod daemon in
/etc/rc.conf, which could interfere with packages built by default with pulseaudio support.
Finally test your sound card with command:
cat [I]anyfile[/I] > /dev/dsp
or better test a mp3 file downloaded online with a program like
audio/mpg123 or
audio/cpp-xmms2.
Don't test sound with browsers, as they may have independent sound issues, unrelated to your sound card driver, which may be working well even if browser produces no audio