Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196821/?format=api
{ "id": 2196821, "url": "http://patchwork.ozlabs.org/api/patches/2196821/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216-audio-v1-76-e676662e4514@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260216-audio-v1-76-e676662e4514@redhat.com>", "list_archive_url": null, "date": "2026-02-16T11:16:05", "name": "[76/85] audio: replace DEBUG_CAPTURE with traces", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6c6dd04c03b6a9ef2eb5b56ee7ddb62388f0f05a", "submitter": { "id": 66774, "url": "http://patchwork.ozlabs.org/api/people/66774/?format=api", "name": "Marc-André Lureau", "email": "marcandre.lureau@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260216-audio-v1-76-e676662e4514@redhat.com/mbox/", "series": [ { "id": 492294, "url": "http://patchwork.ozlabs.org/api/series/492294/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=492294", "date": "2026-02-16T11:14:52", "name": "audio: cleanups & add a manual test", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492294/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196821/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196821/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=blVUIEUZ;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF0jT4sWxz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 22:22:05 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vrwfU-0007SH-8i; Mon, 16 Feb 2026 06:21:32 -0500", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <marcandre.lureau@redhat.com>)\n id 1vrwdL-00080I-Hd\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 06:19:20 -0500", "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <marcandre.lureau@redhat.com>)\n id 1vrwdJ-0008TW-TO\n for qemu-devel@nongnu.org; Mon, 16 Feb 2026 06:19:19 -0500", "from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-648-eQmQSJsUOAOApDI_wTsxNg-1; Mon,\n 16 Feb 2026 06:19:14 -0500", "from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 0DA3B1955D89; Mon, 16 Feb 2026 11:19:12 +0000 (UTC)", "from localhost (unknown [10.45.242.26])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 5AE441800465; Mon, 16 Feb 2026 11:19:11 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771240757;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=vPnMn5GvDJ7OVIuZ6lCYOvbjpyhZ011xLX1+qzHSAZE=;\n b=blVUIEUZSk2uHJwlFP086PBT+nvs8YI6TH4B6f6wcrCcOWRBnSQZrhhV/Ulf5Mn/S2g3WJ\n IZTta872fN8lordDmBMb0nYGvNIx1vy8rJxO0YC0pKs3QvBbbj3V6xDGYSjpvUfKPSFKIo\n R8wlBRI1A29TbzmiOtyp7Qx2wkMrVGg=", "X-MC-Unique": "eQmQSJsUOAOApDI_wTsxNg-1", "X-Mimecast-MFC-AGG-ID": "eQmQSJsUOAOApDI_wTsxNg_1771240752", "From": "=?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>", "Date": "Mon, 16 Feb 2026 12:16:05 +0100", "Subject": "[PATCH 76/85] audio: replace DEBUG_CAPTURE with traces", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "8bit", "Message-Id": "<20260216-audio-v1-76-e676662e4514@redhat.com>", "References": "<20260216-audio-v1-0-e676662e4514@redhat.com>", "In-Reply-To": "<20260216-audio-v1-0-e676662e4514@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "Gerd Hoffmann <kraxel@redhat.com>, Eduardo Habkost <eduardo@habkost.net>,\n Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phil?=\n\t=?utf-8?q?ippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>,\n Christian Schoenebeck <qemu_oss@crudebyte.com>,\n Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,\n Thomas Huth <huth@tuxfamily.org>, Alexandre Ratchov <alex@caoua.org>,\n\t=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>,\n Laurent Vivier <laurent@vivier.eu>, \"Michael S. Tsirkin\" <mst@redhat.com>,\n Manos Pitsidianakis <manos.pitsidianakis@linaro.org>,\n Alistair Francis <alistair@alistair23.me>,\n \"Edgar E. Iglesias\" <edgar.iglesias@gmail.com>,\n Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org, =?utf-8?q?M?=\n\t=?utf-8?q?arc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>,\n Mark Cave-Ayland <mark.caveayland@nutanix.com>", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=3272;\n i=marcandre.lureau@redhat.com; h=from:subject:message-id;\n bh=UIeZrRXkt2pxBSVmhpp0ZuhXisqo8XrlL/ZfBoMA7Kc=;\n b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBpkvxSqeKbpRQDATwUVaUtAewI8YCn+CHkcAFwq\n uCcGV09uEWJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCaZL8UgAKCRDa6OEJdZac\n 5TUYEACCbS0H+9dz94pjnMmO2xlvs4V12fgz0J7fur4MSTA/XPA1q1YsGH0mWiV1cnmPGeVtLRR\n +WhDf/9jAI+OO8FxHvWArz8gP3j/74DMPgZCZ4yXtek1thU7aG+9k/rJe6DObjk+IDGGtYmKYWU\n KbQ415cyNdY4Bxnf89wAwlXpG0TmFWp2+LdxhC6DHlTbQIgX2z89IfStYp/PLT0JDAJ9pYVsvpx\n dnD7mVOCGCaKBwuqzf10w6YBZey7ZxABiRYGH04jFyhoYI5BrvnAoHyYao88r3ioOw1LC61OBb7\n LaSWv0I1dvWYt7lGfEOnLOHdCYNlD7OjAMGWwHTOa9JF2GE7hfs/JA8s4mGtScgZzqKnMVdYw7V\n oDKaaVo3Q71kcRUEF0LUSUuWyUvhxCj+4Ur7V63ZMztHKOW6uiXnBWwRKueoxuDwFCa610B985t\n eSCqa4ZUpz/3gRjHzHgMRZDUX+qUgjmK6OrrBsgkT7Y/s4GDz57XFm3TD6SK+qNIx/XsAnaBKvU\n 49hoHtw0vFVhZmeFGDHw1SwGhFIfqgw6WJVOppAfm4nOMJv1XO9YCG6ESFQG8nRlufbhltH9+AT\n XOKZbFx73GPx4VsmnCOHyHdEuWYY7/RxbjU8w0TLmvzrlfNZZ7WNEAnL4H9ndPe/nVgCtedhJWF\n HNJGsBKFUSRvi5Q==", "X-Developer-Key": "i=marcandre.lureau@redhat.com; a=openpgp;\n fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.93", "Received-SPF": "pass client-ip=170.10.133.124;\n envelope-from=marcandre.lureau@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>\nReviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>\n---\n audio/audio-mixeng-be.c | 20 +++++++-------------\n audio/trace-events | 3 +++\n 2 files changed, 10 insertions(+), 13 deletions(-)", "diff": "diff --git a/audio/audio-mixeng-be.c b/audio/audio-mixeng-be.c\nindex 2aeb05ba37e..1963f3e5c79 100644\n--- a/audio/audio-mixeng-be.c\n+++ b/audio/audio-mixeng-be.c\n@@ -30,7 +30,6 @@\n #include \"audio_int.h\"\n \n /* #define DEBUG_OUT */\n-/* #define DEBUG_CAPTURE */\n \n #define SW_NAME(sw) (sw)->name ? (sw)->name : \"unknown\"\n \n@@ -249,9 +248,8 @@ static void audio_notify_capture (CaptureVoiceOut *cap, audcnotification_e cmd)\n {\n struct capture_callback *cb;\n \n-#ifdef DEBUG_CAPTURE\n- dolog (\"notification %d sent\\n\", cmd);\n-#endif\n+ trace_audio_notify_capture(cmd);\n+\n for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) {\n cb->ops.notify (cb->opaque, cmd);\n }\n@@ -333,12 +331,10 @@ static int audio_attach_capture (HWVoiceOut *hw)\n sw->rate = st_rate_start (sw->info.freq, hw_cap->info.freq);\n QLIST_INSERT_HEAD (&hw_cap->sw_head, sw, entries);\n QLIST_INSERT_HEAD (&hw->cap_head, sc, entries);\n-#ifdef DEBUG_CAPTURE\n- sw->name = g_strdup_printf (\"for %p %d,%d,%d\",\n- hw, sw->info.freq, sw->info.bits,\n- sw->info.nchannels);\n- dolog (\"Added %s active = %d\\n\", sw->name, sw->active);\n-#endif\n+ sw->name = g_strdup_printf(\"for %p %d,%s,%d\",\n+ hw, sw->info.freq, AudioFormat_str(sw->info.af),\n+ sw->info.nchannels);\n+ trace_audio_capture_attach(sw->name, sw->active);\n if (sw->active) {\n audio_capture_maybe_changed (cap, 1);\n }\n@@ -1707,10 +1703,8 @@ static void audio_mixeng_backend_del_capture(\n \n while (sw) {\n SWVoiceCap *sc = (SWVoiceCap *) sw;\n-#ifdef DEBUG_CAPTURE\n- dolog (\"freeing %s\\n\", sw->name);\n-#endif\n \n+ trace_audio_capture_free_sw(sw->name);\n sw1 = sw->entries.le_next;\n if (sw->rate) {\n st_rate_stop (sw->rate);\ndiff --git a/audio/trace-events b/audio/trace-events\nindex d66a712e871..3f8ebf9c6cb 100644\n--- a/audio/trace-events\n+++ b/audio/trace-events\n@@ -58,10 +58,13 @@ audio_be_set_active_out(void *sw, bool on) \"sw=%p, on=%d\"\n audio_timer_start(int interval) \"interval %d ms\"\n audio_timer_stop(void) \"\"\n audio_timer_delayed(int interval) \"interval %d ms\"\n+audio_notify_capture(int cmd) \"notification %d sent\"\n+audio_capture_attach(const char *name, bool active) \"capture %s active=%d\"\n \n # audio-mixeng-be.c\n audio_get_avail(const char *name, size_t live, uint32_t frontend_frames) \"%s: get_avail live %zu frontend frames %u\"\n audio_run_poll(const char *msg, int64_t elapsed_us) \"Elapsed since last %s: %\" PRId64 \" us\"\n+audio_capture_free_sw(const char *name) \"freeing %s\"\n \n # audio_template.h\n audio_open_out(const char *name, int freq, int nchannels, int fmt) \"open %s, freq %d, nchannels %d, fmt %d\"\n", "prefixes": [ "76/85" ] }