From patchwork Thu Oct 13 12:26:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 119467 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 33510B6F76 for ; Thu, 13 Oct 2011 23:27:24 +1100 (EST) Received: from localhost ([::1]:36729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REKNQ-0003Zh-41 for incoming@patchwork.ozlabs.org; Thu, 13 Oct 2011 08:27:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REKN7-0003NX-WF for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REKN2-0006gL-6N for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:49 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:51170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REKN2-0006gF-1s for qemu-devel@nongnu.org; Thu, 13 Oct 2011 08:26:44 -0400 Received: by wyh22 with SMTP id 22so1972788wyh.4 for ; Thu, 13 Oct 2011 05:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=3bIy36EjS6RrXnTGvhVPMl0YZ3bto550pA4Q1I4dn1o=; b=lR+auMa0MXZYAVSdShajOs4qKFiJYI++qQsaFhOGh9zOAu7RCMpSBJZo+NE+vmRLZD HD5+7FfYZQs2XGvWnW0AIGPWHaA1dvzf5Ly6cwKB2MTNAw4ezwxdtAXa1NrFs6HbMZck M+dCYzMxWKrxIhonzRfQUws/4B7lFLAwAZFMA= Received: by 10.227.176.78 with SMTP id bd14mr1228848wbb.70.1318508803222; Thu, 13 Oct 2011 05:26:43 -0700 (PDT) Received: from localhost (75.Red-83-60-208.dynamicIP.rima-tde.net. [83.60.208.75]) by mx.google.com with ESMTPS id z9sm5647176wbn.19.2011.10.13.05.26.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 05:26:42 -0700 (PDT) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" To: qemu-devel@nongnu.org Date: Thu, 13 Oct 2011 14:26:16 +0200 Message-Id: <1318508784-8172-3-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 1.7.6.2 In-Reply-To: <1318508784-8172-1-git-send-email-marcandre.lureau@redhat.com> References: <1316621468-32171-1-git-send-email-marcandre.lureau@redhat.com> <1318508784-8172-1-git-send-email-marcandre.lureau@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.173 Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kraxel@redhat.com Subject: [Qemu-devel] [PATCH 03/11] audio: use a nominal volume of 1^32-1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org So we can easily fit it into smaller int. We can just >>16 to fit it into a 16bits volume range for example. --- audio/audio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index f830bb2..33b6c23 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -110,8 +110,8 @@ const struct mixeng_volume nominal_volume = { .r = 1.0, .l = 1.0, #else - .r = 1ULL << 32, - .l = 1ULL << 32, + .r = (1ULL << 32) - 1, + .l = (1ULL << 32) - 1, #endif };