From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDvw-00075Y-AM for qemu-devel@nongnu.org; Wed, 11 May 2011 14:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKDvv-0007kb-7d for qemu-devel@nongnu.org; Wed, 11 May 2011 14:14:52 -0400 Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:44088 helo=homiemail-a15.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDvv-0007kR-19 for qemu-devel@nongnu.org; Wed, 11 May 2011 14:14:51 -0400 Message-ID: <4DCAD212.7090601@elasticsheep.com> Date: Wed, 11 May 2011 20:14:42 +0200 From: Mathieu Sonet MIME-Version: 1.0 References: <1305069201-15961-1-git-send-email-contact@elasticsheep.com> <201105111058.33682.paul@codesourcery.com> In-Reply-To: <201105111058.33682.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Add AACI audio playback support to the ARM Versatile/PB platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org Paul Brook wrote: >> The PL041 driver provides an interface to an ACLink bus. >> The LM4549 driver emulates a DAC connected on the ACLink bus. >> Only audio playback is implemented. > > Shouldn't this be shared with the other AC97 devices? > > Paul I organized the code in 3 different drivers (PL041 <=> ACLink <=> LM4549) to decorrelate the codec interface from its implementation. This could allow the use of alternative AC97 models with the same PL041 implementation. On the other hand the current ac97.c implementation is a closely coupled combination of a PCI/ACLink bridge (Intel 82801AA) with a generic AC97 codec. This has prevent me to easily reuse this code. The milkymist-ac97 implementation is another case. It looks like a basic implementation with the AC97 registers directly mapped on the system bus. Using the ACLink bus I defined, it could be interesting to implement separately the PCI/ACLink bridge from ac97.c. Is it what you mean by saying this should be shared with the other AC97 devices ? Mathieu