From owner-freebsd-multimedia Sat May 31 14:49:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA16389 for multimedia-outgoing; Sat, 31 May 1997 14:49:34 -0700 (PDT) Received: from ohm.ingsala.unal.edu.co ([168.176.15.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA16377 for ; Sat, 31 May 1997 14:49:29 -0700 (PDT) Received: from unalmodem.usc.unal.edu.co (unalmodem20.usc.unal.edu.co [168.176.3.50]) by ohm.ingsala.unal.edu.co (8.8.5/8.8.5) with SMTP id QAA00542; Sat, 31 May 1997 16:50:30 -0500 (COT) Message-ID: <3390B282.722A@fps.biblos.unal.edu.co> Date: Sat, 31 May 1997 16:21:38 -0700 From: "Pedro F. Giffuni" Organization: Universidad Nacional de Colombia X-Mailer: Mozilla 3.0 (Win16; I) MIME-Version: 1.0 To: Randall Hopper CC: Chuck Robey , FreeBSD-multimedia@freebsd.org Subject: Re: Audio devices References: <19970531074442.47236@ct.picker.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk It hasn't changed on the new guide http://www.4front-tech.com/pguide/index.html Pedro. Randall Hopper wrote: > > Chuck Robey: > |Does anyone know what the absolute reference is for the major and minor > |numbers for the audio devices, like /dev/audio, dsp, dsp0, midi, music, etc? > | > |I am not looking for the numbers, I can go do an ls -l of my /dev for > |that. I'm trying to find the definitive guide for them. If I can get a > > Well, this may or may not be acclaimed as the definitive guide > anymore, but I have a PostScript copy of Hannu Savolainen's "Hacker's Guide > to VoxWare 2.4, second draft" that has this table and subsequent text: > > Device Minor Multi > mixer 0 yes > sequencer 1 no > midi 2 yes > dsp 3 yes > audio 4 yes > dsp16 5 yes > sndstat 6 no > (unused) 7 no > sequencer2 8 no > > Table 0.1: Minor number assignment of the device files > ... > > The minor number assign ment is given in the table 0.1. The four > least significant bits of the minor number are used to select the > device file type or class. If there is more than one devices in > this class, the upper 4 bits are used to select the device. For > example the class number of the /dev/dsp is 3. Then the minor > number of /dev/dsp is 3 + 16 * 0 = 3 and the /dev/dsp1 is 3 + 16 > * 1 = 19. > > Seeing as how our Voxware drivers are dated May 6, 1995, and the docs are > dated Feb 21, 1994 and describe features up-and-coming for 3.0, it makes > sense that this is a close match. > > BTW, it holds for my card (Sound Blaster 32), except that sequencer2 is > called music0, and there's and extra pss0 on minor 9. > > Randall