Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2001 02:39:38 +0100
From:      j mckitrick <jcm@FreeBSD-uk.eu.org>
To:        Otter <otterr@telocity.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: sound on toshiba laptop
Message-ID:  <20010331023937.A10465@dogma.freebsd-uk.eu.org>
In-Reply-To: <002001c0b977$537b4c10$1401a8c0@zoso>; from otterr@telocity.com on Fri, Mar 30, 2001 at 07:12:50PM -0500
References:  <20010330171233.A5418@dogma.freebsd-uk.eu.org> <002001c0b977$537b4c10$1401a8c0@zoso>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 30, 2001 at 07:12:50PM -0500, Otter wrote:
| pcm as a pci device or as a legacy device? how was it added in the
| kernel? try
| http://www.cse.ucsc.edu/~dkulp/fbsd/laptop.html

I used that web page 2 years ago to get me started.  Sound was tough to get
working then, but at least i got it.  Now it seems to have disappeared
again.

here is my configuration entry 

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

local:~> cat /dev/sndstat 
FreeBSD Audio Driver (newpcm) Mar 30 2001 08:26:22
Installed devices:
pcm0: <OPL3-SAx (YMF719)> at io 0x530 irq 5 drq 1:5 (1p/1r channels duplex)

dmesg:

pcm0: <OPL3-SAx (YMF719)> at port 0x530-0x537,0x538-0x539 irq 5 drq 1 flags 0xc115 on isa0

.au files play fine:

local:~> cat /etc/ppp/sorrydave.au > /dev/audio
local:~> 

truss output:

open("/etc/ppp/smoking.wav",0,027757776114)      = 3 (0x3)
read(0x3,0x804bd00,0x2c)                         = 44 (0x2c)
open("/dev/dsp",1,027757776100)                  = 4 (0x4)
ioctl(4,SNDCTL_DSP_GETBLKSIZE,0xbfbffb78)        = 0 (0x0)
ioctl(4,SNDCTL_DSP_SETFMT,0x804bd20)             ERR#22 'Invalid argument'
play: write(2,0xbfbff3d4,6)                              = 6 (0x6)
/dev/dspwrite(2,0xbfbff404,8)                            = 8 (0x8)
: write(2,0xbfbff3c4,2)                          = 2 (0x2)
Invalid argument
write(2,0xbfbff3c4,17)                           = 17 (0x11)
close(4)                                         = 0 (0x0)
sigprocmask(0x1,0x2805c760,0xbfbffb88)           = 0 (0x0)
sigprocmask(0x3,0x2805c770,0x0)                  = 0 (0x0)
exit(0x0)                                       process exit, rval = 0
local:~> 

regular output:
local:~> play /etc/ppp/smoking.wav       
play: /dev/dsp: Invalid argument
local:~> 



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




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