Date: Fri, 2 Apr 1999 07:55:30 -0600 (CST) From: John Preisler <john@vapornet.net> To: Mark Murray <mark@grondar.za> Cc: multimedia@FreeBSD.ORG Subject: Re: What is an LDN? Message-ID: <14084.51432.865108.975520@habanero.chili-pepper.net> In-Reply-To: <199904020709.JAA44349@greenpeace.grondar.za> References: <199904020709.JAA44349@greenpeace.grondar.za>
next in thread | previous in thread | raw e-mail | index | archive | help
remember boot -c? thats how ya used to diddle sound cards to get them probed properly. With the ELF boot loader, that has all changed. Im assuming the bios attached it fine but freebsd didnt attach it to the pcm driver. in /usr/src/sys/i386/isa/snd/CARDS is a list of sound cards and values for the boot loader to get the PnP controller to attach it properly. Yours may already have a working definition in there. Here's the long answer anyway.... if you use pnpinfo(8) it will tell you what your card wants for a config: Checking for Plug-n-Play devices... Card assigned CSN #1 Vendor ID CSC7537 (0x3775630e), Serial Number 0xffffffff PnP Version 1.0, Vendor Version 2 Device Description: Turtle Beach Malibu Logical Device ID: CSC0000 0x0000630e #0 Device Description: WSS/SB TAG Start DF Good Configuration DMA: channel(s) 1 8-bit, not a bus master, count by byte, , Type A DMA: channel(s) 0 3 8-bit, not a bus master, count by byte, , Type A IRQ: 5 - only one type (true/edge) I/O Range 0x534 .. 0x534, alignment 0x4, len 0x4 [16-bit addr] I/O Range 0x388 .. 0x388, alignment 0x8, len 0x4 [16-bit addr] I/O Range 0x220 .. 0x220, alignment 0x20, len 0x10 [16-bit addr] <less optimum configs snipped> my particular card wants: pnp 1 0 os enable port0 0x534 port2 0x220 irq0 5 drq0 1 drq1 3 the above line goes in your /kernel.confg file, sourced from /boot/loader.rc habanero$ cat /boot/loader.rc load /kernel load -t userconfig_script /kernel.config load -t splash_image_data /rose.bmp load splash_bmp autoboot 5 habanero$ cat /kernel.config pnp 1 0 os enable port0 0x534 port2 0x220 irq0 5 drq0 1 drq1 3 ( watch out for stepping all over ports and irqs and stuff that other peripherals might be using ) which on boot should produce output something similar to: CSN 1 Vendor ID: CSC7537 [0x3775630e] Serial 0xffffffff Comp ID: @@@0000 [0x00000000] mss_attach <CS4237>1 at 0x530 irq 5 dma 1:3 flags 0x13 pcm1 (CS423x/Yamaha/AD1816 <CS4237> sn 0xffffffff) at 0x530-0x537 irq 5 drq 1 flags 0x13 on isa and pcm0 not found [because it attaches the device at pcm1] Now. Since the pcm driver attached the car at 1 instead of 0, the links to /dev/{audio,dsp,mixer} need to be adjusted from /dev/audio1 instead of /dev/audio0. Same for mixer0 and dsp0. Change them to 1. habanero$ ls -la /dev/{mixer,dsp,audio} lrwxr-xr-x 1 root wheel 11 Sep 13 1998 /dev/audio -> /dev/audio1 lrwxr-xr-x 1 root wheel 9 Sep 13 1998 /dev/dsp -> /dev/dsp1 lrwxr-xr-x 1 root wheel 11 Sep 13 1998 /dev/mixer -> /dev/mixer1 hope this gets ya goin! -j Mark Murray writes: > Hi > > I have an Intel dual-CPU m/board with sound on board. The relevant > extract from DMESG PnP probe section is > > Probing for PnP devices: > CSN 1 Vendor ID: CSC0b36 [0x360b630e] Serial 0xffffffff Comp ID: @@@0000 [0x0000 > 0000] > This is a CS4236, but LDN 0 is disabled > > and later: > pcm0 not found > > ...and the sound does not work ("cat /dev/sndstat" says "Device not > configured". > > Any clues? > > M > -- > Mark Murray > Join the anti-SPAM movement: http://www.cauce.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14084.51432.865108.975520>