Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRNPD-0002ek-Cj for qemu-devel@nongnu.org; Sun, 24 Sep 2006 02:23:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRNPA-0002eX-V4 for qemu-devel@nongnu.org; Sun, 24 Sep 2006 02:23:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRNPA-0002eS-QN for qemu-devel@nongnu.org; Sun, 24 Sep 2006 02:23:56 -0400 Received: from [65.54.246.90] (helo=bay0-omc1-s18.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRNTI-0002Gk-Mo for qemu-devel@nongnu.org; Sun, 24 Sep 2006 02:28:12 -0400 Message-ID: In-Reply-To: From: "Blue Swirl" Subject: RE: [Qemu-devel] Re: Audio output for CS4231, patch/RFC Date: Sun, 24 Sep 2006 08:23:53 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc@pulsesoft.com Cc: qemu-devel@nongnu.org >After having a cursory look at it only one thing really caught my >attention: >in the audio callback you set s->audio_free to the provided value, but then >in you never use it. If i'm reading everything correctly this would lead to >reading N bytes from DMA in write_audio, succeeding in writing only M bytes >(where M < N) to the audio subsystem and loosing N-M bytes forever. >Basically >you should never attempt to do volatile reads of more than audio_free >bytes. >SB16 operates in similar fashion. Okay, thanks for the clarification. By the way, I couldn't find where AUD_open_out is implemented, what did I miss? _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/