From owner-freebsd-hackers Sat May 31 04:50:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA20977 for hackers-outgoing; Sat, 31 May 1997 04:50:51 -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 EAA20972 for ; Sat, 31 May 1997 04:50:48 -0700 (PDT) Resent-From: rhh@ct.picker.com Received: from ct.picker.com by whqvax.picker.com with SMTP; Sat, 31 May 1997 7:50:17 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA10402; Sat, 31 May 97 07:50:16 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id HAA17607; Sat, 31 May 1997 07:49:11 -0400 Resent-Message-Id: <199705311149.HAA17607@elmer.ct.picker.com> Message-Id: <19970531074442.47236@ct.picker.com> Date: Sat, 31 May 1997 07:44:42 -0400 From: Randall Hopper To: Chuck Robey Cc: FreeBSD-multimedia@freebsd.org Subject: Re: Audio devices References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: ; from Chuck Robey on Fri, May 30, 1997 at 09:45:42PM -0400 Resent-Date: Sat, 31 May 1997 07:49:11 -0400 Resent-To: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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