From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 02:54:38 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 214631065670 for ; Sat, 12 Mar 2011 02:54:38 +0000 (UTC) (envelope-from bernt@bah.homeip.net) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 987D18FC0C for ; Sat, 12 Mar 2011 02:54:36 +0000 (UTC) Received: from kw.homeip.net (c80-217-64-49.bredband.comhem.se [80.217.64.49]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id p2C2sTrU059193; Sat, 12 Mar 2011 03:54:31 +0100 (CET) (envelope-from bernt@bah.homeip.net) Message-ID: <4D7AE065.4070603@bah.homeip.net> Date: Sat, 12 Mar 2011 03:54:29 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; sv-SE; rv:1.9.2.13) Gecko/20101213 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Brian Waters References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Quick question about sound drivers (esp. snd_hda) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2011 02:54:38 -0000 2011-03-11 21:29, Brian Waters: > It seems to me that under /dev, you can have the following > sound-related device files: > > dspX > dspX.Y > (among others) > > I'm having some trouble getting my sound to work (Dell Inspiron > E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the > manpages for snd and snd_hda (which is the appropriate driver), and > increased the verbosity of the drivers and read the kernel log and > /dev/sndstat, but I still can't quite wrap my head around everything. > > What I'm wondering is: what exactly is the meaning of X and Y above? > I'm assuming that X comes from the "association numbers" in the > snd_hda driver, but I could be wrong. Please correct me! This is what I think. dsp0.0 is the first device on the first "bus" and so on. %ls -l /dev/ds* crw-rw-rw- 1 root wheel 0, 155 11 Mar 19:16 /dev/dsp0.0 crw-rw-rw- 1 root wheel 0, 148 9 Mar 11:16 /dev/dsp1.0 crw-rw-rw- 1 root wheel 0, 146 9 Mar 11:16 /dev/dsp2.0 crw-rw-rw- 1 root wheel 0, 121 9 Mar 11:16 /dev/dsp3.0 %cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: (play/rec) default pcm1: (play/rec) pcm2: (play/rec) pcm3: (play)