From nobody Tue Nov 18 02:52:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1607865239; cv=none; d=zohomail.com; s=zohoarc; b=OAdUbwhgaE0YGO3+9hJm11ncsltyVF/82Mh7ctOSAmFrApmmIJHAPyf5I9zJ57Uc5Q4hiqK/Ukm/IYh67tbtMAXElj0jXNnS2Nw+AQu6xH4qwdiZGVS7QWA/LIfQ182PwUM8+TZWIkFZ80gGcgV5TlLEO7q9eFbwh9J1MApuvpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607865239; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ps9v6bO0+O1Xuw9HF2PMOy25BEcrJFajCyAEezwIWMc=; b=EaAV6CZhUOXmyynJpiwIdQ2iiZAKu2xO9P177GILJ6OnLXHnmy5zZ1/nc+B3k5nNgh167e1vKONi5wM66CmrEmWnzCBoW+lOaL0y4PEp5mgw68jOnWNfEaAte17YcZOPv/4/q3viuY+NCz4j1c3Dckq6hhNKqJsgjRMvja+vc2g= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607865239015257.5629149627971; Sun, 13 Dec 2020 05:13:59 -0800 (PST) Received: from localhost ([::1]:59026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koRCH-0002OT-Mg for importer@patchew.org; Sun, 13 Dec 2020 08:13:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4K-0006dH-VT for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:45 -0500 Received: from mailout02.t-online.de ([194.25.134.17]:60594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4J-0000kd-8l for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:44 -0500 Received: from fwd22.aul.t-online.de (fwd22.aul.t-online.de [172.20.26.127]) by mailout02.t-online.de (Postfix) with SMTP id 0C61741ACBBB; Sun, 13 Dec 2020 14:05:42 +0100 (CET) Received: from linpower.localnet (XHx-iUZcQhImH72qu4KMlIHpfvJ1jx1JfExGo3K59L3bC8R6pjNGJ9XD-slSAmdg0Y@[79.208.17.59]) by fwd22.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1koR44-1dDeAC0; Sun, 13 Dec 2020 14:05:28 +0100 Received: by linpower.localnet (Postfix, from userid 1000) id 1D01E200451; Sun, 13 Dec 2020 14:05:28 +0100 (CET) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Gerd Hoffmann Subject: [PATCH 1/4] coreaudio: rename misnamed variable fake_as Date: Sun, 13 Dec 2020 14:05:25 +0100 Message-Id: <20201213130528.5863-1-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> References: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ID: XHx-iUZcQhImH72qu4KMlIHpfvJ1jx1JfExGo3K59L3bC8R6pjNGJ9XD-slSAmdg0Y X-TOI-EXPURGATEID: 150726::1607864728-00011FFC-E437F583/0/0 CLEAN NORMAL X-TOI-MSGID: 0af5992c-e5d9-401f-a276-1040dd383152 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=194.25.134.17; envelope-from=volker.ruemelin@t-online.de; helo=mailout02.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" While the variable once was used to fake audio settings, since commit ed2a4a7941 "audio: proper support for float samples in mixeng" this is no longer true. Rename the variable to obt_as. This is the same naming scheme as in audio/sdlaudio.c Tested-by: Howard Spoelstra Signed-off-by: Volker R=C3=BCmelin --- audio/coreaudio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 4b4365660f..0ee85052c4 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -482,7 +482,7 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct au= dsettings *as, Audiodev *dev =3D drv_opaque; AudiodevCoreaudioPerDirectionOptions *cpdo =3D dev->u.coreaudio.out; int frames; - struct audsettings fake_as; + struct audsettings obt_as; =20 /* create mutex */ err =3D pthread_mutex_init(&core->mutex, NULL); @@ -491,8 +491,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct au= dsettings *as, return -1; } =20 - fake_as =3D *as; - as =3D &fake_as; + obt_as =3D *as; + as =3D &obt_as; as->fmt =3D AUDIO_FORMAT_F32; audio_pcm_init_info (&hw->info, as); =20 --=20 2.26.2 From nobody Tue Nov 18 02:52:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1607864976; cv=none; d=zohomail.com; s=zohoarc; b=WBGYBw/mDlqNW3qgu7e02mmT6aFoFgLUbYmaz6HSI2xwVvNvd6D0uQkFdxGuF24idyaU/4oHpXg4JzcL0zqJm4pjilqDe0kNuPtwCUmBRS+0YeWXdOJLc81oLi4W3qIu2ZMTI/pq7cxhga4VPtoHLN8mgqi8pdNoZUmbyaNNyNg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607864976; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2tDWoECOFIVZMvjM5R5XLkVgnJ7S/Zytu5H8UJeC4QE=; b=R31hsR2+2MYvxRlA4NODxXtTqtJ1SgNNDczJVb3+Iw2W3QzzIp2BIfmGVaKi2x9T+GjZLmiBj52oNDKxkUTW7VJ5YEeJcEbrqZLsoAsvcD88RpyISNxlPERjS28qdzqjrHtOcX9x0AeNVwQc4ABU1FZNMGWyjXs9LE3JXtJVsdM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607864976863368.31915652709176; Sun, 13 Dec 2020 05:09:36 -0800 (PST) Received: from localhost ([::1]:53922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koR83-0008PH-QV for importer@patchew.org; Sun, 13 Dec 2020 08:09:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4J-0006cS-Nq for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:43 -0500 Received: from mailout02.t-online.de ([194.25.134.17]:60508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4C-0000jo-Fi for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:43 -0500 Received: from fwd34.aul.t-online.de (fwd34.aul.t-online.de [172.20.26.145]) by mailout02.t-online.de (Postfix) with SMTP id A558B41ACBB7; Sun, 13 Dec 2020 14:05:32 +0100 (CET) Received: from linpower.localnet (TF5WLkZawhW1i+siDZ1kBkNHL2e4i2pPW5Vbs-7Meqmc+TvNrgFjfraAWbX4sD5w2o@[79.208.17.59]) by fwd34.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1koR47-1463rk0; Sun, 13 Dec 2020 14:05:31 +0100 Received: by linpower.localnet (Postfix, from userid 1000) id 1F05D200617; Sun, 13 Dec 2020 14:05:28 +0100 (CET) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Gerd Hoffmann Subject: [PATCH 2/4] coreaudio: don't start playback in init routine Date: Sun, 13 Dec 2020 14:05:26 +0100 Message-Id: <20201213130528.5863-2-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> References: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ID: TF5WLkZawhW1i+siDZ1kBkNHL2e4i2pPW5Vbs-7Meqmc+TvNrgFjfraAWbX4sD5w2o X-TOI-EXPURGATEID: 150726::1607864731-000171DC-E4377A34/0/0 CLEAN NORMAL X-TOI-MSGID: bc1e07b5-2eff-4f12-9148-cff2c6586f19 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=194.25.134.17; envelope-from=volker.ruemelin@t-online.de; helo=mailout02.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Every emulated audio device has a way to enable audio playback. Don't start playback until the guest enables the audio device to keep the Core Audio device run state in sync with hw->enabled. Tested-by: Howard Spoelstra Signed-off-by: Volker R=C3=BCmelin --- audio/coreaudio.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index 0ee85052c4..a5df950514 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -584,17 +584,6 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct a= udsettings *as, return -1; } =20 - /* start Playback */ - if (!isPlaying(core->outputDeviceID)) { - status =3D AudioDeviceStart(core->outputDeviceID, core->ioprocid); - if (status !=3D kAudioHardwareNoError) { - coreaudio_logerr2 (status, typ, "Could not start playback\n"); - AudioDeviceDestroyIOProcID(core->outputDeviceID, core->ioproci= d); - core->outputDeviceID =3D kAudioDeviceUnknown; - return -1; - } - } - return 0; } =20 --=20 2.26.2 From nobody Tue Nov 18 02:52:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1607864908; cv=none; d=zohomail.com; s=zohoarc; b=fslds7dq+01kP+MBmGFR3PE9EfXWRgmT6/gxpBrrM4PdxJ/7lKY2ZzLI4NUxlW8wWqH/D7tSBmb7j8PKrAcklkxWrXW3xFP7rei3dwvy4VfrsfzdGimEW0MkJ+aWt3m0y42KYgzNxlVoTAGju71z2VN0Lnqvbp9lbpcUcqU0nug= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607864908; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+5SlByGTSB8WETlzBzr2MXcS5pXuMySteXduBZqBmAo=; b=J/0PRY6VoSFQDnftTtfUZpdiYBe0NR+NGol8603m117ca5ajzSrWPTClwB9ipx0NPKtJ2CUdCDqb9auRNUkJ3jISRQ/nqaH0F6dDr8WCcfdeSyCUzehSK4DZKSU83NTAtUHL3HHXD3unWXbFAjeKD0R3u9+KfmnPaZB5USi19GM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607864908706997.4066432149132; Sun, 13 Dec 2020 05:08:28 -0800 (PST) Received: from localhost ([::1]:52224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koR6w-0007fl-9A for importer@patchew.org; Sun, 13 Dec 2020 08:08:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4J-0006bq-7g for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:43 -0500 Received: from mailout02.t-online.de ([194.25.134.17]:60556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4E-0000jw-SG for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:42 -0500 Received: from fwd00.aul.t-online.de (fwd00.aul.t-online.de [172.20.26.147]) by mailout02.t-online.de (Postfix) with SMTP id 3E17B41ACBBC; Sun, 13 Dec 2020 14:05:37 +0100 (CET) Received: from linpower.localnet (EqMuuyZfghrtOWu3ZDfGA0-nDjpg+7knaACgtqJ7Zl387cYtbBuX-t2TUo4OXxTQuS@[79.208.17.59]) by fwd00.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1koR49-0tR0IC0; Sun, 13 Dec 2020 14:05:33 +0100 Received: by linpower.localnet (Postfix, from userid 1000) id 1FFCD200621; Sun, 13 Dec 2020 14:05:28 +0100 (CET) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Gerd Hoffmann Subject: [PATCH 3/4] coreaudio: always stop audio playback on shut down Date: Sun, 13 Dec 2020 14:05:27 +0100 Message-Id: <20201213130528.5863-3-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> References: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ID: EqMuuyZfghrtOWu3ZDfGA0-nDjpg+7knaACgtqJ7Zl387cYtbBuX-t2TUo4OXxTQuS X-TOI-EXPURGATEID: 150726::1607864733-00010A86-B33264B6/0/0 CLEAN NORMAL X-TOI-MSGID: d9ecac1a-d898-4006-bc84-a637a36737aa Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=194.25.134.17; envelope-from=volker.ruemelin@t-online.de; helo=mailout02.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Always stop audio playback and remove the playback callback when QEMU exits. On shut down the function coreaudio_fini_out() destroys the coreaudio mutex but fails to stop audio playback and to remove the audio playback callback, because function audio_is_cleaning_up() always returns true when called from coreaudio_fini_out(). Now there is a time window from pthread_mutex_destroy() to program exit where Core Audio may call the audio playback callback which tries to lock the destroyed coreaudio mutex. This leads to the following error. coreaudio: Could not lock voice for audioDeviceIOProc Reason: Invalid argument This bug was reported on the qemu-discuss mailing list. https://lists.nongnu.org/archive/html/qemu-discuss/2020-10/msg00018.html Tested-by: Howard Spoelstra Signed-off-by: Volker R=C3=BCmelin --- audio/coreaudio.c | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index a5df950514..79a9d40bf8 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -593,22 +593,20 @@ static void coreaudio_fini_out (HWVoiceOut *hw) int err; coreaudioVoiceOut *core =3D (coreaudioVoiceOut *) hw; =20 - if (!audio_is_cleaning_up()) { - /* stop playback */ - if (isPlaying(core->outputDeviceID)) { - status =3D AudioDeviceStop(core->outputDeviceID, core->ioproci= d); - if (status !=3D kAudioHardwareNoError) { - coreaudio_logerr (status, "Could not stop playback\n"); - } - } - - /* remove callback */ - status =3D AudioDeviceDestroyIOProcID(core->outputDeviceID, - core->ioprocid); + /* stop playback */ + if (isPlaying(core->outputDeviceID)) { + status =3D AudioDeviceStop(core->outputDeviceID, core->ioprocid); if (status !=3D kAudioHardwareNoError) { - coreaudio_logerr (status, "Could not remove IOProc\n"); + coreaudio_logerr(status, "Could not stop playback\n"); } } + + /* remove callback */ + status =3D AudioDeviceDestroyIOProcID(core->outputDeviceID, + core->ioprocid); + if (status !=3D kAudioHardwareNoError) { + coreaudio_logerr(status, "Could not remove IOProc\n"); + } core->outputDeviceID =3D kAudioDeviceUnknown; =20 /* destroy mutex */ @@ -633,13 +631,11 @@ static void coreaudio_enable_out(HWVoiceOut *hw, bool= enable) } } else { /* stop playback */ - if (!audio_is_cleaning_up()) { - if (isPlaying(core->outputDeviceID)) { - status =3D AudioDeviceStop(core->outputDeviceID, - core->ioprocid); - if (status !=3D kAudioHardwareNoError) { - coreaudio_logerr (status, "Could not pause playback\n"= ); - } + if (isPlaying(core->outputDeviceID)) { + status =3D AudioDeviceStop(core->outputDeviceID, + core->ioprocid); + if (status !=3D kAudioHardwareNoError) { + coreaudio_logerr(status, "Could not pause playback\n"); } } } --=20 2.26.2 From nobody Tue Nov 18 02:52:10 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1607865111; cv=none; d=zohomail.com; s=zohoarc; b=QuApEJNGLuG2VjJI18D6s/ngwpiCiq8kFWtF0ScW8hXoSdt5K2Nrli5Xn4u3Sv/bYzcGZgzCmpw0n/97/eeDDsOh4fiu5pWZXLaWwTvCPKGaN+fj8f4p1UF2gF/VkBHSxxLWZCgEiBDj1wDoy947EKeER1T5vBiTrYZ0nWg455g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607865111; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=L4+4IrmOEhgqje0LoLTc/rlTIV4EmTOfG9gwISyKmdQ=; b=ghvNPUoEQg/66tdwdDiOQUP1r2ajYBtOqca/akp+eoeaPXhjudtZfRxAzqJsu3jummN8Dj9jW0g6v6rnjzZ2NaGVsd0QYhT8KLhNwx9nO+S/hySxjKYwqNro35i8w/qQWuHnD1hiKl4XYFC3PnUhSc+e72zWPPWf/8elaS7G3iw= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1607865111244947.1513791338548; Sun, 13 Dec 2020 05:11:51 -0800 (PST) Received: from localhost ([::1]:56420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koRAE-0001BL-1N for importer@patchew.org; Sun, 13 Dec 2020 08:11:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4K-0006ct-6W for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:44 -0500 Received: from mailout11.t-online.de ([194.25.134.85]:58914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koR4F-0000jx-5P for qemu-devel@nongnu.org; Sun, 13 Dec 2020 08:05:43 -0500 Received: from fwd23.aul.t-online.de (fwd23.aul.t-online.de [172.20.26.128]) by mailout11.t-online.de (Postfix) with SMTP id 76EAA42229D8; Sun, 13 Dec 2020 14:05:37 +0100 (CET) Received: from linpower.localnet (XKnOyeZSYh+WU4gWoIYlY58ntX8OdE8NCAiTLe0-uKiSxJNvrtxFAGJh+MdYWDlgkS@[79.208.17.59]) by fwd23.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1koR4C-0NfIy80; Sun, 13 Dec 2020 14:05:36 +0100 Received: by linpower.localnet (Postfix, from userid 1000) id 2253E200625; Sun, 13 Dec 2020 14:05:28 +0100 (CET) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Gerd Hoffmann Subject: [PATCH 4/4] audio: remove unused function audio_is_cleaning_up() Date: Sun, 13 Dec 2020 14:05:28 +0100 Message-Id: <20201213130528.5863-4-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> References: <1a970310-4cff-f2f7-985e-05b2f4cd446b@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ID: XKnOyeZSYh+WU4gWoIYlY58ntX8OdE8NCAiTLe0-uKiSxJNvrtxFAGJh+MdYWDlgkS X-TOI-EXPURGATEID: 150726::1607864736-00017F06-4C10CF18/0/0 CLEAN NORMAL X-TOI-MSGID: 5afa17a4-9fc0-4b39-bad4-2b54fee62e50 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=194.25.134.85; envelope-from=volker.ruemelin@t-online.de; helo=mailout11.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" The previous commit removed the last call site of audio_is_cleaning_up(). Remove the now unused function. Tested-by: Howard Spoelstra Signed-off-by: Volker R=C3=BCmelin --- audio/audio.c | 8 -------- audio/audio.h | 1 - 2 files changed, 9 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 46578e4a58..a213409270 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1588,13 +1588,6 @@ static void audio_vm_change_state_handler (void *opa= que, int running, audio_reset_timer (s); } =20 -static bool is_cleaning_up; - -bool audio_is_cleaning_up(void) -{ - return is_cleaning_up; -} - static void free_audio_state(AudioState *s) { HWVoiceOut *hwo, *hwon; @@ -1647,7 +1640,6 @@ static void free_audio_state(AudioState *s) =20 void audio_cleanup(void) { - is_cleaning_up =3D true; while (!QTAILQ_EMPTY(&audio_states)) { AudioState *s =3D QTAILQ_FIRST(&audio_states); QTAILQ_REMOVE(&audio_states, s, list); diff --git a/audio/audio.h b/audio/audio.h index b883ebfb1f..41b3ef04ea 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -160,7 +160,6 @@ static inline void *advance (void *p, int incr) int wav_start_capture(AudioState *state, CaptureState *s, const char *path, int freq, int bits, int nchannels); =20 -bool audio_is_cleaning_up(void); void audio_cleanup(void); =20 void audio_sample_to_uint64(const void *samples, int pos, --=20 2.26.2