From: Takashi Iwai Subject: Re: Questions on usb audio development Date: Mon, 21 May 2007 17:47:00 +0200 Message-ID: References: <46506D9D.4000701@gmx.net> <75b66ecd0705201225w5e6a7e28t7a61f000cd5e2352@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 52E09243F0 for ; Mon, 21 May 2007 17:47:05 +0200 (CEST) In-Reply-To: <75b66ecd0705201225w5e6a7e28t7a61f000cd5e2352@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lee Revell Cc: alsa-devel@alsa-project.org, LCID Fire List-Id: alsa-devel@alsa-project.org At Sun, 20 May 2007 15:25:31 -0400, Lee Revell wrote: > > On 5/20/07, LCID Fire wrote: > > Hi. > > I know there is quite some documentation how to develop a pci driver for > > alsa - but since I'll try to get a usb device working I was wondering > > how to write a usb driver? Is it just the same? How to interface the > > various aspects of the device with regards to descriptor reading, ... > > Look at the snd-usb-audio and usx2y sources. Also the new caiaq driver. The major difference between the normal PCI and USB audio drivers is that USB audio has no traditional DMA like most PCI devices have. Thus the driver has to sets up URB pakets. usb-audio driver creates an intermediate ring-buffer that is used for the communication from/to user-space, and URBs are made from this buffer. Takashi