Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2000 19:17:52 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        leegold <goldtech@worldpost.com>
Cc:        questions@freebsd.org
Subject:   Re: audio - help
Message-ID:  <20000626191752.B232@parish>
In-Reply-To: <001201bfdf92$633db170$a5fda4d8@beefstew>; from goldtech@worldpost.com on Mon, Jun 26, 2000 at 01:17:19PM -0400
References:  <000b01bfde0f$c1995370$fced7ad1@beefstew> <20000624201945.J233@parish> <000401bfde17$5a923a90$fced7ad1@beefstew> <20000625123401.A233@parish> <000e01bfdebe$605a8200$18e17ad1@beefstew> <20000625191056.I233@parish> <001201bfdf92$633db170$a5fda4d8@beefstew>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 26, 2000 at 01:17:19PM -0400, leegold wrote:
> Here's the output of dmesg attached.
> 
> Also, here's a link w/further info on my integrated audio:
> http://www.inode.org/sw/auvia/
> maybe there's some info here that would help, graciously supplied from a
> newsgroup user.
> 
> I'm a newbie, obviously not sure how to properly implement the audio.I have
> never done a make cmd to compile source, so this will be a learning
> experience. I do believe I made a mistake by doing:  sh /dev/MAKEDEV snd0 .
> p. 358 od Complete FreBSD cites a "pcm0 driver", maybe I should be trying
> that. Plus it says I should not define snd0 id I use pcm0.
> 
> Ok, if there's anymore necessary info let me know. I guess that ques. is:
> what should I do next.
> 

OK, you are running a GENERIC kernel which doesn't include the pcm
device so you need to make a custom kernel. Here's what you need to do
(I've used the name LEEGOLD for the kernel name, if you want to use a
different name just change LEEGOLD to whatever you want - it is
convention to use all upper-case for kernel names).

Do all this as root!

   # cd /sys/i386/conf
   # cp GENERIC LEEGOLD

then edit LEEGOLD and

     1. change the line

	ident   GENERIC

        to

	ident LEEGOLD

      2. Add these lines to the end of the file

        # For PnP/PCI sound cards
	device          pcm

      3. If you wish you can comment out all the lines for devices
      that you don't have (the ones that you disabled using ``boot
      -c'' that show up as ``config> di ....'' in the dmesg output)
      I would *not* comment out

        device   sio0

       which you have disabled - this is your first serial port (COM1
       in DOS terminology).

       Don't change, or comment out anything else (unless you are
       absolutely sure) as your new kernel may not build.


Now to rebuild your kernel:

    # cd /sys/i386/conf
    # /usr/sbin/config -r LEEGOLD
    # cd /usr/src/sys/compile/LEEGOLD
    # make depend
    # make
    # make install

You said you have The Complete FreeBSD. Note that in the kernel
building instructions ``make depend'' is missing - this is a typo, you
must run it!

Reboot, and see if your sound "card" is found - something like this:

pcm0: <AudioPCI ES1371> port 0x6800-0x683f irq 11 at device 11.0 on pci0

it may show up as pcm1. Then:

   # cd /dev
   # ./MAKEDEV snd0

(use snd1 if your card is found as pcm1).

Important! If, for some reason your new kernel fails to boot, don't
panic, reboot and when the "twirling baton" appears in the top left of
the screen hit any key except return, and at the prompt type

    boot /kernel.old

The ``make install'' process saves your current kernel as kernel.old
and you should also have a kernel.GENERIC in / as well. Don't delet
either!

Hope this helps you, let me know how you get on.

> Your guidance is appreciated - Thanks

You're welcome.

> Lee G.
> 
> 
> 
> 
> ----- Original Message -----
> From: Mark Ovens <mark@ukug.uk.freebsd.org>
> To: leegold <goldtech@worldpost.com>
> Cc: <questions@freebsd.org>
> Sent: Sunday, June 25, 2000 2:10 PM
> Subject: Re: audio - help
> 
> 
> > On Sun, Jun 25, 2000 at 11:59:41AM -0400, leegold wrote:
> > > what do you want me to do? can i attach a text file w/my dmesg output
> ans
> > > send it to you?
> >
> > Yes, that will do nicely (apologies to American Express).
> >
> > > i am not sure i know what to do at this point.
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: Mark Ovens <mark@ukug.uk.freebsd.org>
> > > To: leegold <goldtech@worldpost.com>
> > > Cc: <questions@freebsd.org>
> > > Sent: Sunday, June 25, 2000 7:34 AM
> > > Subject: Re: audio - help
> > >
> > >
> > > > On Sat, Jun 24, 2000 at 04:04:06PM -0400, leegold wrote:
> > > > > Mark,
> > > > > Here's the info you requested:
> > > > >
> > > > >
> > > > > $ ls -l /dev/dsp*
> > > > > lrwxrwxrwx  1  root  wheel       4  June 23 09:52  /dev/dsp -> dsp0
> > > > > crw-rw-rw-  1  root  wheel  30,  3  June 23 09:52  /dev/dsp0
> > > > > lrwxrwxrwx  1  root  wheel       5  June 23 09:52  /dev/dspW ->
> dspW0
> > > > > crw-rw-rw-  1  root  wheel  30,  5  June 23 09:52  /dev/dspW0
> > > > >
> > > > >
> > > > > $ dmesg
> > > > > ...<snip>...
> > > > > chip2: <VIA 82C686 AC97 Audio> port 0xe400-0xe403, 0xe000-0xe003,
> > > > > 0xdc00-0xdcff
> > > > > irq5 at device 7.5 on pci0
> > > > > ...
> > > > >
> > > >
> > > > Sorry, I wasn't specific enough, what I need is the line that finds
> > > > the device (rather than the chip); something like:
> > > >
> > > > pcm0: <AudioPCI ES1371> port 0x6800-0x683f irq 11 at device 11.0 on
> pci0
> > > >
> > > > >
> > > > > note:
> > > > > my motherboard  (Abit VA6 )manual describes the integrated sound as:
> > > > > "...built in AC'97 2.1 CODEC onboard. This CODEC has an integrated
> H/W
> > > Sound
> > > > > Blaster Pro AC '97 digital audio controller that can give you the
> best
> > > sound
> > > > > quality and compatibility"
> > > > >
> > > > >
> > > > > Thanks.
> > > > > Lee G.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: Mark Ovens <mark@ukug.uk.freebsd.org>
> > > > > To: leegold <goldtech@worldpost.com>
> > > > > Cc: <questions@freebsd.org>
> > > > > Sent: Saturday, June 24, 2000 3:19 PM
> > > > > Subject: Re: audio - help
> > > > >
> > > > >
> > > > > > On Sat, Jun 24, 2000 at 03:09:40PM -0400, leegold wrote:
> > > > > > > trying to get some "noise" coming out of my speakers. dmesg
> cites
> > > the
> > > > > > > integrated audio on my Abit VA6 motherboard - AC97. I did a # sh
> > > > > > > /dev/MAKEDEV snd0   and that added alot of associated devices in
> my
> > > > > /dev. I
> > > > > > > installed waveplay from the packages ( I can't find
> > > man/documentation on
> > > > > > > waveplay ) and then tried:
> > > > > > >
> > > > > > > # waveplay SOUND108.WAV
> > > > > > > File name : SOUND108.WAV
> > > > > > > Sampling rate : 11025 HZ
> > > > > > > Bits/sample : 8 bits
> > > > > > > Channels : 1
> > > > > > > Size : 7498 Bytes
> > > > > > > openDSP: Device not configured
> > > > > > >
> > > > > >
> > > > > > What does ``ls -l /dev/dsp*'' produce? What exactly is your sound
> > > > > > "card" found as? (the output from demsg(8))
> > > > > >
> > > > > > > i got no sound but i got the text output above.
> > > > > > >
> > > > > > > Anyone know what I sould do to get this working?
> > > > > > >
> > > > > > > THANKS
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > > > with "unsubscribe freebsd-questions" in the body of the message
> > > > > >
> > > > > > --
> > > > > >   If I buy a copy of WinDelete, and it doesn't delete Windows,
> > > > > >   am I entitled to my money back?
> > > > > > ________________________________________________________________
> > > > > >       FreeBSD - The Power To Serve http://www.freebsd.org
> > > > > >       My Webpage http://ukug.uk.freebsd.org/~mark/
> > > > > > mailto:mark@ukug.uk.freebsd.org             http://www.radan.com
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > > with "unsubscribe freebsd-questions" in the body of the message
> > > >
> > > > --
> > > >   If I buy a copy of WinDelete, and it doesn't delete Windows,
> > > >   am I entitled to my money back?
> > > > ________________________________________________________________
> > > >       FreeBSD - The Power To Serve http://www.freebsd.org
> > > >       My Webpage http://ukug.uk.freebsd.org/~mark/
> > > > mailto:mark@ukug.uk.freebsd.org             http://www.radan.com
> > > >
> > >
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body of the message
> >
> > --
> >   If I buy a copy of WinDelete, and it doesn't delete Windows,
> >   am I entitled to my money back?
> > ________________________________________________________________
> >       FreeBSD - The Power To Serve http://www.freebsd.org
> >       My Webpage http://ukug.uk.freebsd.org/~mark/
> > mailto:mark@ukug.uk.freebsd.org             http://www.radan.com
> >

> Copyright (c) 1992-2000 The FreeBSD Project.
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> 	The Regents of the University of California. All rights reserved.
> FreeBSD 4.0-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000
>     root@monster.cdrom.com:/usr/src/sys/compile/GENERIC
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
>   Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
> real memory  = 67108864 (65536K bytes)
> config> di sio0
> config> di sn0
> config> di lnc0
> config> di le0
> config> di ie0
> config> di fe0
> config> di ed0
> config> di cs0
> config> di bt0
> config> di aic0
> config> di aha0
> config> di adv0
> config> q
> avail memory = 61157376 (59724K bytes)
> Preloaded elf kernel "kernel" at 0xc03c0000.
> Preloaded userconfig_script "/boot/kernel.conf" at 0xc03c009c.
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
> pci1: <PCI bus> on pcib2
> pci1: <NVidia/SGS-Thomson Riva128 graphics accelerator> at 0.0 irq 11
> isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pci0: <VIA 83C572 USB controller> at 7.2 irq 10
> pci0: <VIA 83C572 USB controller> at 7.3 irq 10
> chip2: <VIA 82C686 AC97 Audio> port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 5 at device 7.5 on pci0
> rl0: <RealTek 8139 10/100BaseTX> port 0xe800-0xe8ff mem 0xd7000000-0xd70000ff irq 10 at device 9.0 on pci0
> rl0: Ethernet address: 00:00:e8:9d:01:e1
> miibus0: <MII bus> on rl0
> rlphy0: <RealTek internal media interface> on miibus0
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> rl0: supplying EUI64: 00:00:e8:ff:fe:9d:01:e1
> pcib1: <Host to PCI bridge> on motherboard
> pci2: <PCI bus> on pcib1
> fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
> atkbd0: <AT Keyboard> irq 1 on atkbdc0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model Generic PS/2 mouse, device ID 0
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> sc0: <System console> on isa0
> sc0: VGA <16 virtual consoles, flags=0x200>
> sio1 at port 0x2f8-0x2ff irq 3 on isa0
> sio1: type 16550A
> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
> ppi0: <Parallel I/O> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> plip0: <PLIP network interface> on ppbus0
> ad0: 6533MB <SAMSUNG SV0682D> [14160/15/63] at ata0-master using UDMA33
> acd0: CDROM <ATAPI 48X CDROM> at ata1-master using PIO4
> Mounting root from ufs:/dev/ad0s1a
> rl0: starting DAD for fe80:0001::0200:e8ff:fe9d:01e1
> rl0: DAD complete for fe80:0001::0200:e8ff:fe9d:01e1 - no duplicates found


-- 
  If I buy a copy of WinDelete, and it doesn't delete Windows,
  am I entitled to my money back?
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org             http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000626191752.B232>