From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 26 13:49:24 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66CAB16A41F for ; Tue, 26 Jul 2005 13:49:24 +0000 (GMT) (envelope-from yuka.muromachi@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA65143D46 for ; Tue, 26 Jul 2005 13:49:23 +0000 (GMT) (envelope-from yuka.muromachi@gmail.com) Received: by zproxy.gmail.com with SMTP id z6so598304nzd for ; Tue, 26 Jul 2005 06:49:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Kd9l0l0HPLVjQa88yre76DK98N8TzGo9V8+Q9sJOuR4H55q3odYtHp5bFB1+9a9F5LKGbU/Di6/AEvCdC1x22Ukpj1RS5lvGwzuJ6KySgznrfpoVUjlT9YJGZ6sluD2WN7nf1utyaG28D06CwW8IgSYVA8x05cWS2kXC6837mkE= Received: by 10.36.252.14 with SMTP id z14mr209237nzh; Tue, 26 Jul 2005 06:42:16 -0700 (PDT) Received: by 10.36.221.16 with HTTP; Tue, 26 Jul 2005 06:42:15 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2005 21:42:16 +0800 From: Yuka Muromachi To: freebsd-multimedia@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: The device name X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yuka Muromachi List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 13:49:24 -0000 Hi: I'm trying to written Azalia (HD Audio) support for freebsd now. The controller part is working, I'm trying to add codec support now. There is a question: most sound device attach function will call those two line to create /dev/audio* , /dev/dsp*, /dev/dspW* and /dev/dspr*: pcm_addchan(dev, PCMDIR_REC, &ad1816chan_class, ad1816); pcm_addchan(dev, PCMDIR_PLAY, &ad1816chan_class, ad1816); pcm_addchan() will call pcm_chn_add() But, I do not understand, why direction =3D PCMDIR_REC will still create one more /dev/audio , /dev/dspW, /dev/dspr=20 device? My mean, that code will create /dev/audio0.0 /dev/audio0.1 ... and /dev/dspr0.0