https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082007-01-07T03:30:23ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=19672007-01-07T03:30:23Zvs1
<ul></ul><p>Thank you! That got it working. Now we can watch our movies on<br />Dragonfly! We have been evaluating Dragonfly and, so far, it is very<br />impressive. mplayer seems to play videos a lot smoother on a 1.3Gig<br />machine (even with KDE running) than NetBSD does on our 2.6Gig box.<br />I wonder if it is because of Matt's new LWKT code.</p>
<p>I had to directly load the snd_via8233.ko module. It turns out that<br />snd.ko was apparently loading all the sound modules except for two.<br />snd_via8233.ko and snd_uaudio.ko. I thought it was loading all of them.<br />Here is output of kldstat after loading snd.ko.</p>
<p>Id Refs Address Size Name<br /> 1 28 0xc0100000 60cf58 kernel<br /> 2 1 0xc070d000 37c4 md.ko<br /> 3 1 0xc0711000 590f0 acpi.ko<br />31 1 0xd7181000 2000 snd.ko<br />32 23 0xd8a80000 18000 snd_pcm.ko<br />33 1 0xd79ea000 4000 snd_ad1816.ko<br />34 1 0xd8760000 4000 snd_als4000.ko<br />35 1 0xd89f7000 5000 snd_cmi.ko<br />36 1 0xd8ab8000 5000 snd_cs4281.ko<br />37 1 0xd8abd000 7000 snd_csa.ko<br />38 1 0xd8ad9000 b000 snd_ds1.ko<br />39 1 0xd8ac4000 7000 snd_emu10k1.ko<br />40 1 0xd8ace000 6000 snd_es137x.ko<br />41 1 0xd8a0c000 4000 snd_fm801.ko<br />42 1 0xd8ae4000 5000 snd_ich.ko<br />43 1 0xd8ae9000 7000 snd_maestro.ko<br />44 1 0xd8afc000 8000 snd_maestro3.ko<br />45 1 0xd8b35000 a000 snd_mss.ko<br />46 1 0xd8b3f000 10000 snd_neomagic.ko<br />47 1 0xd8b4f000 5000 snd_solo.ko<br />48 1 0xd8b54000 5000 snd_t4dwave.ko<br />49 1 0xd8a1c000 4000 snd_via82c686.ko<br />50 1 0xd8b59000 5000 snd_vibes.ko<br />51 4 0xd8b09000 4000 snd_sbc.ko<br />52 1 0xd8b5e000 4000 snd_sb16.ko<br />53 1 0xd8b62000 4000 snd_sb8.ko<br />54 1 0xd8b66000 5000 snd_ess.ko</p>
<p>So the question is, why did snd.ko not load two of the modules? It is<br />just my luck that it happens to be the one for our sound device. Is<br />that a bug or a feature?</p>
<p>Also, we have not found any documentation that lists what devices are<br />supported for each module? Does it exist? The snd/pcm man page lists<br />AC97 mixer and a variety of cards it supports, which led us to think<br />that that might me the only module needed for this device. It does not<br />seem to mention anything about the other snd modules.</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=19742007-01-07T03:30:27Zvs1
<ul></ul><p>Thanks for the reply. As I mentioned, we loaded snd.ko, which loads all<br />the sound drivers, and it was not detected. Here is the output of<br />pciconf -lv.</p>
<p>none2@pci0:17:5: class=0x040100 card=0xa0021458 chip=0x30591106<br />rev=0x50 hdr=0x00<br /> vendor = 'VIA Technologies Inc'<br /> device = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller'<br /> class = multimedia<br /> subclass = audio</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=19752007-01-07T03:30:28Zbastyaelvtars
<ul></ul><p>On 04 Jan 2007 15:58:05 GMT<br />Vincent <<a class="email" href="mailto:vs1@crel.us">vs1@crel.us</a>> wrote:</p>
<p>No, you must load the module for your sound driver AND snd (according to corecode). There was such a thread in users@:</p>
<p><a class="external" href="http://leaf.dragonflybsd.org/mailarchive/users/2007-01/msg00034.html">http://leaf.dragonflybsd.org/mailarchive/users/2007-01/msg00034.html</a></p>
<p>with the very same chip.</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=19792007-01-07T03:30:31Zwa1ter
<ul></ul><p>Very interesting. You just solved a puzzle for me. I tried compiling<br />the 'pcm' device into my custom kernel -- which never worked! I always<br />had to load the via8233 module manually at boot, and now I know why.<br />(My SWAG would be that this is more buggish than featurish.)</p>
<p>Just as a minor aside, loading the via module will automatically pull in<br />the snd_pcm module, so you needn't load it explicitly. As a more major<br />aside, I do not load the snd module at all, and yet my sound works fine.</p>
<p>Can you try loading only the snd_via8233.ko from loader.conf and see if<br />you get satisfactory sound? What other modules get loaded when you try<br />this?</p>
<p>Thanks.</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=20132007-01-10T10:33:25Zcorecode
<ul></ul><p>Does it work as expected using latest -DEVEL?</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=20192007-01-13T09:50:01Zvs1
<ul></ul><p>Ok. Just thought I would give you a status update. I finally retrieved the<br />repository and compiled the latest 1.7.0-DEVELOPMENT branch. Looks promising.<br />I loaded the new snd_driver top level module and the via8233 module did indeed<br />get loaded. It looks like the problem may be fixed in the DEVEL branch.</p>
<p>The machine that has the test installation of Dragonfly is not the one that has<br />the sound card that needed that driver. We have to pull the drive with<br />Dragonfly on it and put it back into the other machine temporarily to do the<br />final test to make sure the sound actually works out of the box by loading<br />snd_driver.</p>
<p>I will post the result, probably in the next day or two, after we get a chance<br />to do that.</p>
<p>- Vincent</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=20782007-01-18T16:58:00Zvs1
<ul></ul><p>Sorry about taking so long to get back. We finally got it all tested<br />out in the other machine and it worked great. We also tested recording<br />and it worked as well. So, I apparently with the 1.7.0-DEVELOPMENT<br />kernel, the issue is resolved.</p>
<p>Thanks.</p>
<p>- Vincent</p> DragonFlyBSD - Bug #503: ac97 sound device not detected (alc655 codec)https://bugs.dragonflybsd.org/issues/503?journal_id=20792007-01-18T18:34:51ZTGEN
<ul></ul><p>As noted by the bug creator, the issue has been resolved in HEAD.</p>