Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Feb 2001 16:11:29 +0900
From:      Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
To:        freebsd-current@FreeBSD.org
Subject:   pcm driver and DEVFS
Message-ID:  <20010202161129Z.ipfw@ya3.so-net.ne.jp>

next in thread | raw e-mail | index | archive | help
----Next_Part(Fri_Feb__2_16:07:18_2001_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I did make world a couple days ago.  The system was built from cvsup'd 
source on Jan 30:
>--------------------------------------------------------------
>>>> elf make world started on Tue Jan 30 06:23:38 JST 2001
>--------------------------------------------------------------

The system uses DEVFS. But I have some issue around sound drivers.
I usually use mpg123(Version 0.59r (1999/Jun/15))
or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
sound volume in the sophisticated manner.
But, after installing DEVFS, I wasnt adjust sound volume.
It might be difficult to run x11amp with DEVFS.
On the other hand, mpg123 works. But, its sound is too loud.

Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
in /dev.  But I only found the different kind of files:

% ls /dev
acd0a           cuala0          ptyp0           ttyv3
acd0c           dsp1.0          ptyp1           ttyv4
ad0             dsp1.1          random          ttyv5
ad0s1g          dspW1.0         sndstat         ttyv6
ad0s2a          dspW1.1         stderr@         ttyv7
ad0s2b          fd/             stdin@          ttyv8
ad0s2e          fd0             stdout@         ttyv9
ad0s2f          io              sysmouse        ttyva
apm             kbd0            tty             ttyvb
apmctl          klog            ttyd0           ttyvc
audio1.0        kmem            ttyid0          ttyvd
audio1.1        log@            ttyld0          ttyve
bpsm0           mem             ttyp0           ttyvf
console         mixer1          ttyp1           tun0
consolectl      null            ttyv0           urandom
cuaa0           pci             ttyv1           vga@
cuaia0          psm0            ttyv2           zero

The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
I tried to do
% x11amp -e /dev/dsp1.0
% x11amp -e /dev/dsp1.1
% x11amp -e /dev/dspW1.0
% x11amp -e /dev/dspW1.1
But in vain.

Does some have solution or suggestion?

The output produce uname is as follows:

% uname -a
FreeBSD current.my.domain 5.0-CURRENT FreeBSD 5.0-CURRENT #0: \
Tue Jan 30 10:07:28 JST 2001 \
root@current.my.domain:/usr/obj/usr/src/sys/current  i386

Other information relatated my -current box are attached at the end of 
this mail.

koya

----Next_Part(Fri_Feb__2_16:07:18_2001_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: The output produced by dmesg
Content-Disposition: attachment; filename="dmesg.output"

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #0: Tue Jan 30 10:07:28 JST 2001
    root@current.my.domain:/usr/obj/usr/src/sys/current
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (331.64-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 268435456 (262144K bytes)
avail memory = 257638400 (251600K bytes)
Preloaded elf kernel "kernel" at 0xc039d000.
K6-family MTRR support enabled (2 registers)
Using $PIR table, 6 entries at 0xc00fa040
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <VIA 82C598MVP (Apollo MVP3) host bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at 0.0 (no driver attached)
pci0: <simple comms, UART> at 3.0 (no driver attached)
dc0: <Intel 21143 10/100BaseTX> port 0x2000-0x207f mem 0x41200000-0x412003ff irq 10 at device 5.0 on pci0
dc0: Ethernet address: 00:40:d0:0d:e5:9e
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> on miibus0
dcphy0:  10baseT, 10baseT-FDX, auto
isab0: <PCI-ISA bridge> at device 20.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C586 ATA33 controller> port 0x20a0-0x20af at device 20.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <serial bus, USB> at 20.2 (no driver attached)
pci0: <bridge, PCI-unknown> at 20.3 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
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
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0400> can't assign resources
unknown: <PNP0501> can't assign resources
sbc0: <ESS ES1869 (Compaq OEM)> at port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,3 on isa0
pcm1: <ESS 18xx DSP> on sbc0
esscontrol0: <ESS Control> at port 0x268-0x26f on isa0
unknown: <PNP0700> can't assign resources
unknown: <PNP0303> can't assign resources
unknown: <PNP0f13> can't assign resources
IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, logging limited to 100 packets/entry by default
IPv6 packet filtering initialized, logging limited to 100 packets/entry
dc0 XXX: driver didn't initialize queue mtx
lo0 XXX: driver didn't initialize queue mtx
ppp0 XXX: driver didn't initialize queue mtx
faith0 XXX: driver didn't initialize queue mtx
gif0 XXX: driver didn't initialize queue mtx
gif1 XXX: driver didn't initialize queue mtx
gif2 XXX: driver didn't initialize queue mtx
gif3 XXX: driver didn't initialize queue mtx
ad0: 19623MB <IBM-DTLA-307020> [39870/16/63] at ata0-master UDMA33
acd0: CDROM <CD-ROM 40X/AKU> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s2a
WARNING: Driver mistake: repeat make_dev("tun0")

----Next_Part(Fri_Feb__2_16:07:18_2001_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: my kernel conf file
Content-Disposition: attachment; filename="kernel.conf"

# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the NOTES configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.300 2001/01/27 08:18:36 phk Exp $

machine		i386
cpu		I586_CPU
ident		current
maxusers	32

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
options		DDB

options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	DEVFS			#Device Filesystem
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev

device		isa
device		eisa
device		pci

device		fdc

device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		#Static device numbering

device		atkbdc	1	# At keyboard controller
device		atkbd		# at keyboard
device		psm		# psm mouse

device		vga		# VGA screen

device		splash

device		sc	1

device		npx

device		apm
device		pmtimer

device		pcm

device		sio		# 8250, 16[45]50 based serial ports

device		ppc
device		ppbus		# Parallel port bus (required)

device		miibus		# MII bus support
device		dc		# DEC/Intel 21143 and various workalikes

device		random		# Entropy device
device		loop		# Network loopback
device		ether		# Ethernet support
device		ppp	1	# Kernel PPP
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		gif	4	# IPv6 and IPv4 tunneling
device		faith	1	# IPv6-to-IPv4 relaying (translation)

device		bpf		# Berkeley packet filter

options 	IPFIREWALL		#firewall
options 	IPFIREWALL_VERBOSE	#print information about
options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
options 	IPV6FIREWALL		#firewall for IPv6
options 	IPV6FIREWALL_VERBOSE
options 	IPV6FIREWALL_VERBOSE_LIMIT=100

----Next_Part(Fri_Feb__2_16:07:18_2001_809)----


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




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