Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E807C433EF for ; Sun, 19 Dec 2021 21:08:18 +0000 (UTC) Received: from localhost ([::1]:60534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mz3Pk-0002Wd-Ip for qemu-devel@archiver.kernel.org; Sun, 19 Dec 2021 16:08:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz3Om-0001qX-Iq for qemu-devel@nongnu.org; Sun, 19 Dec 2021 16:07:16 -0500 Received: from mailout07.t-online.de ([194.25.134.83]:43848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz3Ok-0007rA-Cy for qemu-devel@nongnu.org; Sun, 19 Dec 2021 16:07:16 -0500 Received: from fwd72.dcpf.telekom.de (fwd72.aul.t-online.de [10.223.144.98]) by mailout07.t-online.de (Postfix) with SMTP id 93A069CE9; Sun, 19 Dec 2021 22:07:05 +0100 (CET) Received: from [192.168.211.200] ([46.86.48.20]) by fwd72.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1mz3Oa-27G6Ph0; Sun, 19 Dec 2021 22:07:04 +0100 Message-ID: <8564d506-069e-b26f-b1e5-39e56e915951@t-online.de> Date: Sun, 19 Dec 2021 22:07:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 From: =?UTF-8?Q?Volker_R=c3=bcmelin?= Subject: Re: [PATCH v2] audio: Add sndio backend To: Alexandre Ratchov , Gerd Hoffmann References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TOI-EXPURGATEID: 150726::1639948024-0000B7AB-A7D83E71/0/0 CLEAN NORMAL X-TOI-MSGID: 14358806-4458-44db-82d9-a61a472a702f Received-SPF: none client-ip=194.25.134.83; envelope-from=vr_qemu@t-online.de; helo=mailout07.t-online.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.563, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, Brad Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi Alexandre, > sndio is the native API used by OpenBSD, although it has been ported to > other *BSD's and Linux (packages for Ubuntu, Debian, Void, Arch, etc.). > > Signed-off-by: Brad Smith > Signed-off-by: Alexandre Ratchov > --- > > Thank you for the reviews and all the comments. Here's a second diff > with all the suggested changes: > > - Replace ISC license by SPDX-License-Identifier header > - Fix units (milli- vs micro-) in comment about SNDIO_LATENCY_US > - Drop outdated comment about the "size" argument of sndio_get_buffer_out() > - Fix AUDIO_FORMAT_U32 handling (missing "break" statement) > - Set {read,write] methods to audio_generic_{read,write} (fixes craches) > - Check if backend is enabled in sndio_poll_event() > - Usehttps://sndio.org in description > - Mark options as available after 7.0 release (instead of 6.2) > - Describe sndio-specific options (dev, latency) in qemu-options.hx > - Add myself as reviewer to MAINTAINERS > - Style fixes: no space after function names, use 4-space indent > - Don't use "return foo()" if foo() returns void > - Include backend to audio_drivers_priority[] > > Tested on OpenBSD, works as expected! > > MAINTAINERS | 5 + > audio/audio.c | 1 + > audio/audio_template.h | 2 + > audio/meson.build | 1 + > audio/sndioaudio.c | 555 +++++++++++++++++++++++++++++++++++++++++ > meson.build | 9 +- > meson_options.txt | 4 +- I just noticed you changed meson_options.txt but you forgot to regenerate scripts/meson-buildoptions.sh with make update-buildoptions in your build directory. See docs/devel/build-system.rst. And I'm still convinced you should CC all maintainers of the files this patch changes. With best regards, Volker > qapi/audio.json | 25 +- > qemu-options.hx | 16 ++ > tests/vm/freebsd | 3 + > 10 files changed, 618 insertions(+), 3 deletions(-) >