#1
  1. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13

    Sound error on FreeBSD


    Hi, I've been trying to get my sound to work for a while now and it's been giving me problems. The computer I'm doing it on is the computer I just play around with. It's an old Acer. The card it has in it has the Crystal CS4231A-KL chipset. The card is an Acer MAGIC S20. I'm doing this by recompiling my kernel. I'll list what I added and then what the output was by the music players. Also, only on the last two did the dmesg list pcm0. On the last one it did not list csa though.

    Added:
    device pcm
    Result:
    Said that /dev/dsp was not configured.

    Added:
    device pcm
    device csa
    Result:
    Said that /dev/dsp was not configured.

    Added:
    device pcm0 at isa? port? irq 5 drq 1 flags 0x15
    Result:
    Gave me this error:
    /kernel: pcm0: play interrupt timeout, channel dead

    Added:
    device pcm0 at isa? port? irq 5 drq 1 flags 0x15
    device csa
    Result:
    Gave me this error:
    /kernel: pcm0: play interrupt timeout, channel dead
    -MattWil
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Who told you to use csa?

    I have never tried your card but just try this:
    Code:
    device	pcm
    device 	css0	at isa? port 0x534 irq 5 drq 1 flags 0x08
    >> device pcm

    This tells FreeBSD that your card is a true PCI card, but it didn't work so it's not.

    >> device pcm
    >> device csa

    This is illegal configuration because csa is a PCI plus you need to specify port or so for csa.

    >> device pcm0 at isa? port? irq 5 drq 1 flags 0x15

    This is a true ISA sound card configuration but yours is not

    >> device pcm0 at isa? port? irq 5 drq 1 flags 0x15
    >> device csa

    This too is an illegal configuration because csa is doing nothing here
    Last edited by freebsd; March 3rd, 2002 at 03:59 PM.
  4. #3
  5. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13
    http://www.freebsd.org/doc/en_US.ISO....html#AEN14875

    I'm pretty sure the card is ISA. It isn't plug n' play though. I haven't looked inside the computer yet, I just knew that info about it, but the ISA configuration is the only one that put pcm0 into the dmesg. Would I need to do device csa with all the irq and port options?
    -MattWil
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Just checked that link, that was referring to a Crystal card in PCI.

    >> I'm pretty sure the card is ISA

    Can you just try this first?

    options PNPBIOS
    device pcm
    device css0 at isa? port 0x534 irq 5 drq 1 flags 0x08
  8. #5
  9. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13
    I got an error. It had just started linking the kernel and I got many errors on midi_synth.o. The last error being Undefined reference to 'midi_devs'.
    -MattWil
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Try to add:

    device opl0 at isa? port 0x388
    device mpu0 at isa? port 0x330 irq 6 drq 0

    Then try to change irq 6 to irq 9 and try again.
  12. #7
  13. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13
    Both gave me the same error. Would doing this work:

    device pcm0 at isa? port? irq 5 drq 1 flags 0x15
    device csa at isa? port? irq <something> drq <something> flags <something>

    I'm just thinking that when I added the stuff to then end of pcm it gave me that, so maybe I need the csa?
    -MattWil
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> so maybe I need the csa?

    Don't just say maybe, just try it. Anyway you still need to take out your case cover and find out whether it's a PCI/ISA+PnP/ISA. You also can take out your card and plug it to Windows, if it's detected on boot, then it's either PCI or ISA+PnP, you just need to narrow down the 3 choices, then try all possible combination.
    Don't forget, there is a chance your card is not even supported in FreeBSD. That's why when it comes to sound card, you need to get read LINT before getting one. And if yours doesn't work, time is money so don't waste your time any further and just buy another one, preferrably PCI card. Sound board is as cheap as a McDonald mini-meal anyway.
  16. #9
  17. No Profile Picture
    YaBN (Yet another BSD Newbie)
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    74
    Rep Power
    13
    Ok, well thanks for your help. It's just a "play around" computer that I wanted to try and get sound working on. The card is from like 1992 and I'm pretty much sure that's it ISA and not Plug n' Play. I'll try a couple other things and see if it works. Thanks.
    -MattWil

IMN logo majestic logo threadwatch logo seochat tools logo