From owner-freebsd-multimedia Sat Aug 2 17:25:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA24124 for multimedia-outgoing; Sat, 2 Aug 1997 17:25:00 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id RAA24116 for ; Sat, 2 Aug 1997 17:24:56 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sat, 2 Aug 1997 20:24:25 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA10807; Sat, 2 Aug 97 20:24:23 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id UAA18412; Sat, 2 Aug 1997 20:21:57 -0400 Message-Id: <19970802202157.11443@ct.picker.com> Date: Sat, 2 Aug 1997 20:21:57 -0400 From: Randall Hopper To: multimedia@freebsd.org Subject: [snddrv] snd970731 results References: <199708010904.CAA00641@rah.star-gate.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199708010904.CAA00641@rah.star-gate.com>; from Amancio Hasty on Fri, Aug 01, 1997 at 02:04:37AM -0700 Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Amancio Hasty: |Well folks , |Any feedback 8) I'd tried it last night & swapped mail with Luigi off-line about it, but I'll post a Cc of the QSO just so we don't reinvent (or retest) the wheel too many times :-) (Luigi mentioned prior that the midi & synth stuff is temporarily unhooked; why I didn't try to test that). ============================================================================== >Date: Fri, 1 Aug 1997 22:21:36 -0400 From: Randall Hopper To: Luigi Rizzo Subject: Re: partially working snap of the new sound code |no, you need the following line | device pcm0 at isa? port 0x220 irq 5 drq 1 flags 0x15 vector pcmintr | |where the "flags 0x15" means: use dual dma (the "1") and secondary |dma channel is 5 Ok, just got a chance to cook a new kernel with this before I hit the sack. Since we're both on 2.2.1, I had no problems building it. The kernel seemed to fail the snd attach though. Here's the info: kernel lines: controller snd0 device pcm0 at isa? port 0x220 irq 5 drq 1 flags 0x15 vector pcmintr #device midi0 at isa ? port? tty flags F #device synth0 at isa ? port? tty flags F filtered dmesg output: ... pcm0 at 0x0220 irq 5 drq 1 mem 0x00000000 flags 0x00000015 en 1 confl 0 I/O address inactive (ff), try pseudo_mss pcm0 at 0x220 irq 5 drq 1 flags 0x15 on isa ... 0 : open dsp_speed done 8000 dsp setfmt 16 default ioctl snd0 subdev 3 fn 0xc0045006 fail unit 0 not configured mixer_read_devmask 0x000031ff mixer_read_recmask 0x000001c8 mixer_read_recsrc 0x00000080 ch_bits dev 0 ch 0 val 70 old 0xc0 r 48 p 0 bit 5 off 7 ch_bits dev 0 ch 1 val 70 old 0xc0 r 49 p 0 bit 5 off 7 mixer_read_devmask 0x000031ff mixer_read_recmask 0x000001c8 mixer_read_recsrc 0x00000080 ... (the latter lines probably instigated by my starting rplayd in rc.local) given the "not configured" message, I didn't expect anything to work, but just for kicks: stealth : ~/av/au > cat sorrydave.au > /dev/audio Aug 1 22:18:21 stealth /kernel.lui970731: SoundBlaster 16 4.13>0 : open Aug 1 22:18:21 stealth /kernel.lui970731: dsp_speed done 8000 Aug 1 22:18:21 stealth /kernel.lui970731: default ioctl snd0 subdev 4 fn 0x402c7413 fail Aug 1 22:18:21 stealth /kernel.lui970731: default ioctl snd0 subdev 4 fn 0x402c7413 fail Aug 1 22:18:21 stealth /kernel.lui970731: called sb_callback reason 0x201 Aug 1 22:18:21 stealth /kernel.lui970731: dsp_speed done 8000 Aug 1 22:18:21 stealth /kernel.lui970731: isa_dmastart: channel 1 busy ^C (delay here) Aug 1 22:18:33 stealth /kernel.lui970731: timeout waiting for dma1 to flush and trying my sound canned raw sound playing test: stealth : ~/AUD.TST > GO.TEST TEST: 44.1KHz Stereo 16-bit test Playing 44100 Hz 2 Channel 16 Format ioctl(SOUND_PCM_WRITE_CHANNELS, 2) failed: Invalid argument TEST: 44.1KHz Mono 16-bit test Playing 44100 Hz 1 Channel 16 Format ioctl(SOUND_PCM_WRITE_CHANNELS, 1) failed: Invalid argument TEST: 11.0KHz Stereo 16-bit test Playing 11025 Hz 2 Channel 16 Format ioctl(SOUND_PCM_WRITE_CHANNELS, 2) failed: Invalid argument TEST: 8Khz ULAW test (/dev/dsp) Playing 8012 Hz 1 Channel ulaw Format ioctl(SOUND_PCM_WRITE_CHANNELS, 1) failed: Invalid argument TEST: 8Khz ULAW test (/dev/audio) Randall ============================================================================== From: Luigi Rizzo Subject: Re: partially working snap of the new sound code To: rhh@ct.picker.com (Randall Hopper) Date: Sat, 2 Aug 1997 14:10:37 +0200 (MET DST) [sorry for the typos, I am on a bad modem line] ... > filtered dmesg output: ... > pcm0 at 0x0220 irq 5 drq 1 mem 0x00000000 flags 0x00000015 en 1 confl 0 > I/O address inactive (ff), try pseudo_mss > pcm0 at 0x220 irq 5 drq 1 flags 0x15 on isa this means that the attach succeeded, it's the standard isa attach message > ... > 0 : open > dsp_speed done 8000 > dsp setfmt 16 > default ioctl snd0 subdev 3 fn 0xc0045006 fail these lines mean that the ioctls are probably not implemented... > given the "not configured" message, I didn't expect anything to work, but > just for kicks: > > stealth : ~/av/au > cat sorrydave.au > /dev/audio > > Aug 1 22:18:21 stealth /kernel.lui970731: SoundBlaster 16 4.13>0 : open > Aug 1 22:18:21 stealth /kernel.lui970731: dsp_speed done 8000 > Aug 1 22:18:21 stealth /kernel.lui970731: default ioctl snd0 subdev 4 fn > 0x402c7413 fail this is a TIOCGET or similar done by "cat". > Aug 1 22:18:21 stealth /kernel.lui970731: default ioctl snd0 subdev 4 fn > 0x402c7413 fail > Aug 1 22:18:21 stealth /kernel.lui970731: called sb_callback reason 0x201 > Aug 1 22:18:21 stealth /kernel.lui970731: dsp_speed done 8000 > Aug 1 22:18:21 stealth /kernel.lui970731: isa_dmastart: channel 1 busy and this probably means that the previous open did not free the dma channel appropriately. I'll investigate on the problem and try to make the "unit not configured" messages less cryptic, currently they print out for too many reasons. Cheers Luigi