From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4XjY-0004G2-2d for qemu-devel@nongnu.org; Wed, 21 Apr 2010 07:04:44 -0400 Received: from [140.186.70.92] (port=46145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4XjU-0003yn-Vt for qemu-devel@nongnu.org; Wed, 21 Apr 2010 07:04:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Xhk-0006vz-Ab for qemu-devel@nongnu.org; Wed, 21 Apr 2010 07:02:55 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:3263) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Xhj-0006vp-8F for qemu-devel@nongnu.org; Wed, 21 Apr 2010 07:02:52 -0400 Received: by fg-out-1718.google.com with SMTP id 19so1522958fgg.10 for ; Wed, 21 Apr 2010 04:02:50 -0700 (PDT) Date: Wed, 21 Apr 2010 14:01:26 +0300 From: Serge Ziryukin Message-ID: <20100421110126.GA30150@ftrvxmtrx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] audio/alsa: fix comparison between requested and obtained formats List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Trivial patch which uses aud_to_alsafmt to fix comparison between alsa and internal audio pcm format enum. --- audio/alsaaudio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 88344ff..d784476 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@ -666,7 +666,7 @@ static int alsa_open (int in, struct alsa_params_req *req, *handlep = handle; if (conf.verbose && - (obt->fmt != req->fmt || + (aud_to_alsafmt(obt->fmt) != req->fmt || obt->nchannels != req->nchannels || obt->freq != req->freq)) { dolog ("Audio parameters for %s\n", typ); -- 1.7.0.5