From patchwork Sun Dec 23 20:51:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Wm9sdMOhbiBLxZF2w6Fnw7M=?= X-Patchwork-Id: 10741905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 672386C2 for ; Sun, 23 Dec 2018 21:39:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54EE72876D for ; Sun, 23 Dec 2018 21:39:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 467A02863C; Sun, 23 Dec 2018 21:39:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A50782863C for ; Sun, 23 Dec 2018 21:39:31 +0000 (UTC) Received: from localhost ([127.0.0.1]:42146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbAls-0003QL-Eo for patchwork-qemu-devel@patchwork.kernel.org; Sun, 23 Dec 2018 15:54:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbAjh-0007Jd-E9 for qemu-devel@nongnu.org; Sun, 23 Dec 2018 15:52:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbAjg-0001Mg-7G for qemu-devel@nongnu.org; Sun, 23 Dec 2018 15:52:33 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:35865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbAjg-0001F7-07 for qemu-devel@nongnu.org; Sun, 23 Dec 2018 15:52:32 -0500 Received: by mail-wr1-x441.google.com with SMTP id u4so10091513wrp.3 for ; Sun, 23 Dec 2018 12:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wCKg8IYyjN6IUK+rx0y4+7MT/MADh0n1h9L3nKKsCWQ=; b=Mp+q8LhF4LAUsqc4aB5JMUHBg0LYHlR4du1ECwTUJdcaUttO5iJRbrL2zsPkEE7PCd GiD4e2ysXOW1XaholGJEyehkbzicTNy/LR78meXiY1hmoZTIxwDV05b9F9QAALHo/SP7 AmrgzV7IKL1onJgMCSzXevyTTRno/i5IfnCuGuUuOFqMwCjJu0jOIhot+aLyz+08arhb Q4JLUoX6UPDl2Tb0rEEpPyK9VyFPZ6OMCmJKfEOEBPsfWbcOq5bFokz13KhGjDk1OJ1s lo+rpnAfSfUoqeslEx3wfRCxaqwYNU+QZKeOOrYsrIcx6GUqAsoVmPp3v1J5Nyohc5pB hcdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wCKg8IYyjN6IUK+rx0y4+7MT/MADh0n1h9L3nKKsCWQ=; b=cHHO/IWDUn7eV5UiDYUc61bkxa1v9gAocvW3BnkcbXYsMW4fRAHXIQBjsO+aWlYhPD SZU5sSZqsQNYo4zFyzvb24gAfh27fu8Y4APmgsmT3VD8y3iYYYiZDcB/GGAtCBib+Gnr WH5VCpLZOscQp6wtdSxEdeAPh0VgArgs6fBI8o4wjdTSO5+nzS/wE1mJiaZpvRWRSSne tgv+IaH3Wh/reCws0J8zqpzcxDHcRZ+uTs+d0hkNM74Q/xY8zFZmNKitJlGvN1TE/4U7 0ZPJx5cudZ+c0OH3XT29EcQCiK+pwTV32/D/9iLs9Zrd4fSd/j572eKu/mYfRII4Xeop XbPw== X-Gm-Message-State: AJcUukeSmHhs24Vo8atKwVBfLOeYLeDGx4m8Qm+czgIO8yxYLQMLSzgF Iqf+Rd+sBGOw0R1ZQWs3IENH0Mse X-Google-Smtp-Source: ALg8bN6g/BsYYDU02IuABDZRIjRDH01/KtKD5XNmc/k7+zzOQz9zNKr+NWWWbGwMJd8q0ZnmU61jdg== X-Received: by 2002:adf:f4c2:: with SMTP id h2mr9349411wrp.21.1545598350318; Sun, 23 Dec 2018 12:52:30 -0800 (PST) Received: from nullptr.home.dirty-ice.org (2a01-036c-0113-24a3-0000-0000-0000-0005.pool6.digikabel.hu. [2a01:36c:113:24a3::5]) by smtp.gmail.com with ESMTPSA id g198sm25456920wmd.23.2018.12.23.12.52.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Dec 2018 12:52:29 -0800 (PST) From: " =?utf-8?b?S8WRdsOhZ8OzLCBab2x0w6Fu?= " X-Google-Original-From: =?utf-8?b?S8WRdsOhZ8OzLCBab2x0w6Fu?= To: qemu-devel@nongnu.org Date: Sun, 23 Dec 2018 21:51:36 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, I've updated my audio patchset to the current git master. Other than that not much happened since my last update [1], fixed a few small problems that I noticed while rebasing my patches. Please review. [1]: https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg02451.html Kővágó, Zoltán (52): qapi: support alternates in OptsVisitor qapi: support nested structs in OptsVisitor qapi: qapi for audio backends audio: use qapi AudioFormat instead of audfmt_e audio: -audiodev command line option: documentation audio: -audiodev command line option basic implementation alsaaudio: port to -audiodev config coreaudio: port to -audiodev config dsoundaudio: port to -audiodev config noaudio: port to -audiodev config ossaudio: port to -audiodev config paaudio: port to -audiodev config sdlaudio: port to -audiodev config spiceaudio: port to -audiodev config wavaudio: port to -audiodev config audio: -audiodev command line option: cleanup audio: reduce glob_audio_state usage audio: basic support for multi backend audio audio: add audiodev properties to frontends audio: audiodev= parameters no longer optional when -audiodev present paaudio: do not move stream when sink/source name is specified paaudio: properly disconnect streams in fini_* audio: remove audio_MIN, audio_MAX audio: do not run each backend in audio_run paaudio: fix playback glitches audio: remove read and write pcm_ops audio: use size_t where makes sense audio: api for mixeng code free backends alsaaudio: port to the new audio backend api coreaudio: port to the new audio backend api dsoundaudio: port to the new audio backend api noaudio: port to the new audio backend api ossaudio: port to the new audio backend api paaudio: port to the new audio backend api sdlaudio: port to the new audio backend api spiceaudio: port to the new audio backend api wavaudio: port to the new audio backend api audio: remove remains of the old backend api audio: unify input and output mixeng buffer management audio: remove hw->samples, buffer_size_in/out pcm_ops audio: common rate control code for timer based outputs audio: split ctl_* functions into enable_* and volume_* audio: add mixeng option (documentation) audio: make mixeng optional paaudio: get/put_buffer functions audio: support more than two channels in volume setting audio: replace shift in audio_pcm_info with bytes_per_frame audio: basic support for multichannel audio paaudio: channel-map option usb-audio: do not count on avail bytes actually available usb-audio: support more than two channels of audio usbaudio: change playback counters to 64 bit Makefile.objs | 6 +- audio/Makefile.objs | 3 +- audio/alsaaudio.c | 755 ++++------- audio/audio.c | 1561 ++++++++++++----------- audio/audio.h | 78 +- audio/audio_int.h | 131 +- audio/audio_legacy.c | 342 +++++ audio/audio_pt_int.c | 174 --- audio/audio_pt_int.h | 22 - audio/audio_template.h | 112 +- audio/audio_win_int.c | 18 +- audio/coreaudio.c | 198 ++- audio/dsound_template.h | 63 +- audio/dsoundaudio.c | 449 ++----- audio/mixeng.h | 11 +- audio/noaudio.c | 98 +- audio/ossaudio.c | 594 ++++----- audio/paaudio.c | 881 ++++++------- audio/rate_template.h | 2 +- audio/sdlaudio.c | 218 ++-- audio/spiceaudio.c | 286 ++--- audio/wavaudio.c | 158 +-- audio/wavcapture.c | 8 +- configure | 5 - hmp-commands.hx | 11 +- hw/acpi/core.c | 2 +- hw/arm/omap2.c | 2 +- hw/audio/ac97.c | 13 +- hw/audio/adlib.c | 7 +- hw/audio/cs4231a.c | 11 +- hw/audio/es1370.c | 17 +- hw/audio/gus.c | 9 +- hw/audio/hda-codec.c | 35 +- hw/audio/lm4549.c | 6 +- hw/audio/milkymist-ac97.c | 16 +- hw/audio/pcspk.c | 5 +- hw/audio/pl041.c | 1 + hw/audio/sb16.c | 17 +- hw/audio/wm8750.c | 14 +- hw/core/qdev-properties-system.c | 57 + hw/display/xlnx_dp.c | 2 +- hw/input/tsc210x.c | 2 +- hw/usb/dev-audio.c | 460 ++++++- include/hw/qdev-properties.h | 3 + include/qapi/opts-visitor.h | 9 +- include/sysemu/replay.h | 4 +- monitor.c | 12 +- net/net.c | 2 +- numa.c | 2 +- qapi/audio.json | 261 ++++ qapi/opts-visitor.c | 145 ++- qapi/qapi-schema.json | 1 + qemu-options.hx | 242 +++- qom/object_interfaces.c | 2 +- replay/replay-audio.c | 16 +- tests/qapi-schema/qapi-schema-test.json | 9 +- tests/qapi-schema/qapi-schema-test.out | 4 + tests/test-opts-visitor.c | 43 +- ui/vnc.c | 41 +- ui/vnc.h | 2 + vl.c | 11 +- 61 files changed, 3921 insertions(+), 3748 deletions(-) create mode 100644 audio/audio_legacy.c delete mode 100644 audio/audio_pt_int.c delete mode 100644 audio/audio_pt_int.h create mode 100644 qapi/audio.json