Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02B96C433DF for ; Fri, 12 Jun 2020 09:55:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 7FD6C2081A for ; Fri, 12 Jun 2020 09:55:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="m3Mv9A3g"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=pogo.org.uk header.i=@pogo.org.uk header.b="eWvwDkkG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FD6C2081A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xwax.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id EABFB1675; Fri, 12 Jun 2020 11:54:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EABFB1675 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1591955700; bh=zB8l6f6Ok1/khvPoMFyNdnzoqiLHebWqQX3OwL4KafQ=; h=Date:From:To:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=m3Mv9A3gXczbUIzMpRk7l0ZDRuP6d0+1xqnn0LXRg40EhZHb4RzaDz2cf2untxSpW 4TMMQ7TichMB0k7J2/Ob7q3/5Iel/Cv0/vReoYHE1jzNGdmk9BW+4RaZssZLoGOR1c xhJ7LhrdZUjIC7Ef83GXBJkacUWtbHnGqyUsdpDQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 82DEFF801F7; Fri, 12 Jun 2020 11:54:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8078DF8021C; Fri, 12 Jun 2020 11:54:08 +0200 (CEST) Received: from jazz.pogo.org.uk (jazz.pogo.org.uk [213.138.114.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5D4A8F800C7 for ; Fri, 12 Jun 2020 11:54:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5D4A8F800C7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=pogo.org.uk header.i=@pogo.org.uk header.b="eWvwDkkG" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pogo.org.uk ; s=a; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=E58ow2nZwiPaRjO+0d/w6qe4Ily5LL0d2B+2dX+/pi4=; b=eWvwDkkGAOEgsBTWVNUfr54Xr6 954MmVzk3hvFYpEgMgFkDCbtnRneu/gT2eP/9g/MwA5s43nOoLiGsDxjphoHVu0JzS9UkZV3bTCi5 qBiZFFi83TRei3WUd2eAoHXeiEBBC9LoOiMyQEJI7AxMpFkUQfe2s4aWVzch8wiRazVimJCTF/Hvg DPskRtnWTT2d/4HfJXwXkcrsy9Pfs6HKZhGh27yhMxZ4p85QlQNp6IdCkKL46CF5fWTbqZFV83i9D XweP5yWISevEaEtCJPLGo+Hzs4zYvq6APStRKxjBEEc3vT0NbyBdyh7NMySzzdimZ9yGDZRoubRhN S/h3aeWg==; Received: from cpc1-hari17-2-0-cust102.20-2.cable.virginm.net ([86.18.4.103] helo=stax.localdomain) by jazz.pogo.org.uk with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93.0.4 (FreeBSD)) (envelope-from ) id 1jjgNv-000ARz-8T; Fri, 12 Jun 2020 10:54:03 +0100 Received: from mark (helo=localhost) by stax.localdomain with local-esmtp (Exim 4.84) (envelope-from ) id 1jjgNu-0000AN-I9; Fri, 12 Jun 2020 10:54:02 +0100 Date: Fri, 12 Jun 2020 10:54:02 +0100 (BST) From: Mark Hills To: alsa-devel@alsa-project.org Subject: alsa-lib: Bug fixes to namehint, dsnoop and minor changes Message-ID: <2006121020220.23374@stax.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" I've been running these patches in some form for a while. Now tidied up for RFC. It's quite possible I misinterpreted something; the behaviours seem to be quite long-standing, hence a first pass for comments. This has taken me to the _avail() functions, which do not seem to be prepared for signed output, yet callers interpret as signed and ultimately end up in external API. Their handling of wraparound conditions etc. may not be as expected. I've already started to look at these. -- Mark