From patchwork Mon Apr 1 10:07:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oswald Buddenhagen X-Patchwork-Id: 785947 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 A0181CD1283 for ; Mon, 1 Apr 2024 10:10:01 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 911472231; Mon, 1 Apr 2024 12:09:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 911472231 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1711966199; bh=8MW5OpbtrrbMHpzNgoIW9QJ0VF5eypkJ+yrIiV87rno=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=G9bFIBmduLfjgtEXOgks/b2Ghn1O9p7SMJthpouzFveut1eKKpK0urKtjhifjGDwM pjML/ki2+I8+3mf3kMZBnCbvbRA7UbZmLVQ9JrMTtEKce2ovfc1Cr5hMC3jROumoJY X9jIS1I9zlKMYtfx0eFmHZ2IedZdH+0sDtnZoVw8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 303E8F80687; Mon, 1 Apr 2024 12:08:20 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7744BF8059F; Mon, 1 Apr 2024 12:08:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AAC5DF80639; Mon, 1 Apr 2024 12:08:13 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 980AEF80571 for ; Mon, 1 Apr 2024 12:07:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 980AEF80571 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmx.de header.i=oswald.buddenhagen@gmx.de header.a=rsa-sha256 header.s=s31663417 header.b=Sig8/kRl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1711966063; x=1712570863; i=oswald.buddenhagen@gmx.de; bh=zA1ok5yBOL2LLratQpzNUsGGXC5oTQ+6wOZiBM6xqhY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Sig8/kRlYOCtXdwFn4izq125Do47EKWPeSLKa0VDFuMxhdGPh0De2iWmwZNSf7gY o8/Z8YKV0Vy3Vzm0EYWX2PVaTEWXS1v55rWB5kCjolztlrFYWkyjbvFfGTt4xzqwK 0JBTQKICtgGLHAKzkp4sZU83VMHunZRvqW5XQDJ6yWMdef0DdiLgtJIglrZW0N0oL cR98r2RzBLVIBRnF6EeGA/a/BxGIyS098xl1Yq12kSdvfDzaz56sIU+tKQTrxLC9e zVGqKffntqwd4EDdk7dsFu4PXz8h/z6NE7AQc2DA4kzmyjHmVqSBgK2BKj8H+InC3 kw5L/gds3m9x0HQswg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ugly.fritz.box ([89.247.162.100]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MwQXN-1sjKdG0pWv-00sKx2; Mon, 01 Apr 2024 12:07:43 +0200 Received: by ugly.fritz.box (masqmail 0.3.6-dev, from userid 1000) id 1rrEZq-7dk-00; Mon, 01 Apr 2024 12:07:42 +0200 From: Oswald Buddenhagen To: alsa-devel@alsa-project.org Cc: Takashi Iwai , Jaroslav Kysela , Arthur Marsh Subject: [PATCH 00/18] ALSA: emu10k1 & emux: fixes related to wavetable playback Date: Mon, 1 Apr 2024 12:07:24 +0200 Message-ID: <20240401100742.506001-1-oswald.buddenhagen@gmx.de> X-Mailer: git-send-email 2.42.0.419.g70bf8a5751 MIME-Version: 1.0 X-Provags-ID: V03:K1:TH5zHCELIGe+1edxNeulP0ibw7gWPR8n0RMn7Hy/N7AKnMRdVxD tfGJIGaS9P2V/Du1KjGb+VYKBx089mNjNHLQiQTBXoSJOSrTCepemNuzEyKPhcKccjrRniP td8dQrf6nnbbMtvPmczJA7rxJzE+bj3pRlEIr1BOKdI8n2wd/tAVrJb2jRF4EZAa2daHqaS G1HeM8CeMOAqQx1IB/Pqg== UI-OutboundReport: notjunk:1;M01:P0:mnboBamyI/E=;YvEHpHMtAf4XT/vGGH1tSat0dAM EV4BpdbFcxd71lz7Vjbo0AcRkmaKj6qolvkA845ok3IXka/NMZh5xBLFwyHGnyeZu/TBve0Cg pQImrk2MV4jI29rBqypFfB5XzmL/KRI5imPycmE+GcHUmhndsEYW9W7fGfgVd943LPC5fPUgX YHXMGuz+uQpdme/l14oneqpFAjOvhCBhFWxis/wnl5g/33gKs8GYBpxdFCG96WlCDzbZQFzbf laqrhATeaArwrvNNV2bHjcNQd9+kFBs9Pf24eVowboHhb2UrcjtB7ftAO92cQYuNJEnPDHTU+ wj+DWq+2hL40lHz7+cK/sxvumPhUeRqg2nLnwrhTzr56IQbQ08tQpu1lBJT9St1noCoGfxBEM 1yCS/ZV5m9fIr5/rp8VnPYdAdbZd80F0Q/zZdFmN108qA1n/dxubnXO+qlULkJlIEESOA0pTp DksejJrr/gVEEIWKCZBOcGV4Sp3pzlNN0qsguBfU1XuIENmZnoyXCL0cpWNCOxjGV6wB0DsKZ HCp9ufy8TMUnXzCUG4QEhi4F7NYZwRl30s5jO8XA+vZd186ceOlsRIr4JV+OZ7sTIY0kr9pR9 fEbXozFSc14Rf7Lmbo4txoJYiMkydzYBQkelkczGAZ82PYueEHBlq80yHPXY54FyvRyl9U8+f XN7XkfVNJLckzUcHjpHZ+C/GK/DUZ6AySHL4YSkA3pZbrSSHhPSibgKznnb8UBhqhu7sdW3qD Ky1F8a9srgl/Tphpg3CfEFiI9ZM6L09k5CAHFk4neInrWn7CaLhf2rDyF81dkolTW7xNl7hqp 4FBUxUn3YwQIx2ua0hpuBqn98wCnyHKcr5Rg9GWK2n8+g= Message-ID-Hash: J3NSWUL7JOK67YS4YMGEKTB2LHFRGJPS X-Message-ID-Hash: J3NSWUL7JOK67YS4YMGEKTB2LHFRGJPS X-MailFrom: oswald.buddenhagen@gmx.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: this fixes the regression i introduced (though arguably, i just made it broken in a different way), and then some more. Oswald Buddenhagen (18): ALSA: emux: fix /proc teardown at module unload ALSA: emux: prune unused parameter from snd_soundfont_load_guspatch() ALSA: emux: fix validation of snd_emux.num_ports ALSA: emux: fix init of patch_info.truesize in load_data() ALSA: emu10k1: prune vestiges of SNDRV_SFNT_SAMPLE_{BIDIR,REVERSE}_LOOP support ALSA: emux: centralize & improve patch info validation ALSA: emux: improve patch ioctl data validation ALSA: emu10k1: move patch loader assertions into low-level functions ALSA: emu10k1: fix sample signedness issues in wavetable loader ALSA: emu10k1: fix playback of 8-bit wavetable samples ALSA: emu10k1: make wavetable sample playback start position exact ALSA: emu10k1: shrink blank space in front of wavetable samples ALSA: emu10k1: merge conditions in patch loader ALSA: emu10k1: fix wavetable offset recalculation ALSA: emu10k1: de-duplicate size calculations for 16-bit samples ALSA: emu10k1: improve cache behavior documentation ALSA: emu10k1: fix playback of short wavetable samples ALSA: emux: simplify snd_sf_list.callback handling include/sound/emu10k1.h | 32 +++-- include/sound/soundfont.h | 2 +- sound/isa/sb/emu8000_patch.c | 13 -- sound/pci/emu10k1/emu10k1_callback.c | 10 +- sound/pci/emu10k1/emu10k1_patch.c | 207 +++++++++++---------------- sound/pci/emu10k1/memory.c | 55 +++++-- sound/synth/emux/emux.c | 6 +- sound/synth/emux/emux_hwdep.c | 3 +- sound/synth/emux/emux_oss.c | 3 +- sound/synth/emux/emux_proc.c | 1 + sound/synth/emux/emux_seq.c | 6 +- sound/synth/emux/soundfont.c | 73 +++++++--- 12 files changed, 216 insertions(+), 195 deletions(-) --- 2.42.0.419.g70bf8a5751