From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGsgM-000411-Dn for qemu-devel@nongnu.org; Wed, 17 Jun 2009 06:47:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGsgH-0003pO-I1 for qemu-devel@nongnu.org; Wed, 17 Jun 2009 06:47:53 -0400 Received: from [199.232.76.173] (port=51548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGsgH-0003ov-CQ for qemu-devel@nongnu.org; Wed, 17 Jun 2009 06:47:49 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52846) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGsgG-0001rK-SD for qemu-devel@nongnu.org; Wed, 17 Jun 2009 06:47:49 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5HAllGa005865 for ; Wed, 17 Jun 2009 06:47:47 -0400 From: Gerd Hoffmann Date: Wed, 17 Jun 2009 12:47:42 +0200 Message-Id: <1245235662-20071-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] alsa: fix warning List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- audio/alsaaudio.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 2f6c764..f0752bc 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@ -626,8 +626,7 @@ static int alsa_init_out (HWVoiceOut *hw, struct audsettings *as) req.period_size = conf.period_size_out; req.buffer_size = conf.buffer_size_out; req.size_in_usec = conf.size_in_usec_out; - req.override_mask = !!conf.period_size_out_overridden - | (!!conf.buffer_size_out_overridden << 1); + req.override_mask = conf.period_size_out_overridden ? 0x03 : 0x00; if (alsa_open (0, &req, &obt, &handle)) { return -1; @@ -706,8 +705,7 @@ static int alsa_init_in (HWVoiceIn *hw, struct audsettings *as) req.period_size = conf.period_size_in; req.buffer_size = conf.buffer_size_in; req.size_in_usec = conf.size_in_usec_in; - req.override_mask = !!conf.period_size_in_overridden - | (!!conf.buffer_size_in_overridden << 1); + req.override_mask = conf.period_size_in_overridden ? 0x03 : 0x00; if (alsa_open (1, &req, &obt, &handle)) { return -1; -- 1.6.2.2