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=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 86EB7C49ED9 for ; Thu, 12 Sep 2019 09:35:27 +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 0FD44208E4 for ; Thu, 12 Sep 2019 09:35:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="oCBR7ZJV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="hGRHc21S" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FD44208E4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=users.sourceforge.net 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 D70621725; Thu, 12 Sep 2019 11:34:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D70621725 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1568280924; bh=iouXHhrMYK7WmohIvTFV52sDEAP80sbHTYlwNLPFQI0=; h=Date:From:To:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:From; b=oCBR7ZJVP2NGyNvoEObh02w4iE8elJT7n1ds9L+VDJCS3tf6drWJnr65BEMBGOWqe Z2FC6W5znUChsEfDHX9zStkFMJcUNXeTXQzInOQ/6im5kwtCj3w7sqeMLPEjob7nBJ IS7hsRU7jU/H1F+9nbVzd3a8sMi4btUnFAEo/9a4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4A2C6F80321; Thu, 12 Sep 2019 11:34:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E38FBF80368; Thu, 12 Sep 2019 11:34:32 +0200 (CEST) Received: from sonic306-19.consmr.mail.ir2.yahoo.com (sonic306-19.consmr.mail.ir2.yahoo.com [77.238.176.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1540BF801ED for ; Thu, 12 Sep 2019 11:34:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1540BF801ED Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="hGRHc21S" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1568280868; bh=9sXSruA5nbXJecrNy/5t4onm6ado6rGc4p8jTIWO6lI=; h=Date:From:Reply-To:To:Subject:From:Subject; b=hGRHc21S7N8ZzG8Zoe2OxFuo3V2GJsNxeqHM/fO4tNDPEkGTKBzAIgrjp4h5Q00Z+ETdtwWh2rQm3BHo0WjD34msmOAAUe9ULTv9HcPFSVgN550gicMAPxfP7zJhL18Qz4ugbdQgu9+jUnxUchZt25wt9A0CeR1TpI2El8WOcF2WtgPbwz5THIN47HEV/66UhnIFon5H4fJQoXi3YnGdgf+WStDHL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x1Q7y6P8Ys5nz376X1fZCkc8GuyamLQ4XZM Cq5h0DYLYNIFAHJxmvWhkmfa0CTU.IQ2oZwCwKvbWdT0TWrc7VHn9Uemhg1wfen9ThcSo3Ikl4x9 nxQOh0sLo4pGc1TUzZRBAYACTRX13zbXCCfT5PNtR0.mMH7KSm4yOitEa_5zhf7PoebVDOEok5cD kWNHsKi1bTg3e8ss9_Akd3X3CSGMOCaTdcoFENmggXC7B6fVc5t5lp8im6bctxkFHv9tBcWVprHN k_8kCP8jnIzhqS7x4Un7hk05yDenQBF9KOc1xm2NFuIn1TYGujFEZPMAnNknE55ZcJm0BL727Gfd 81dCvjl_iFOfhu1uudW0dATBfdLAH6CzyFd_TRXW0okdVakU_hzTglKDstTiyp9RtWvrGlWEMWt1 vT4_l8BrC3X01rFJLxlQ- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Thu, 12 Sep 2019 09:34:28 +0000 Date: Thu, 12 Sep 2019 09:34:28 +0000 (UTC) From: Hin-Tak Leung To: yuhsuan@chromium.org, alsa-devel@alsa-project.org Message-ID: <1000767908.8406503.1568280868516@mail.yahoo.com> MIME-Version: 1.0 Subject: [alsa-devel] alsa compliance test: H340 (USB audio) playback / capture rate asymmetry bug? 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: , Reply-To: htl10@users.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" I am using Takashi Iwai's tree grafted onto mainline as DKMS ( as in https://github.com/HinTak/sound-usb-dkms ). Running the alsa compliance test commit f6167eb77d038b5b7a0d39645e7f2ae7fee6fdc0 (origin/stabilize-12464.B, origin/release-R78-12499.B) Capture all passed, but play back failed a couple, regarding the sample rate. It is a small head set with stereo head phone and a mic. ID 046d:0a38 Logitech, Inc. Headset H340 The question is, for such a cheap headset, why would the playback rate and the capture rate to be different? For many applications/ usages, with a device that's most capture and playback capable, we would like the rates to agree - both pass, or both fail in the same direction? Is this a hardware or software issue? Or, somebody suggested, I haven't looked, issue with the alsa compliance test itself, possibly regarding frame counts of usb devices? detail below. 5 passed, 0 failed Device Information Name: hw:CARD=H340 Stream: CAPTURE Format: ['S16_LE'] Channels range: [2, 2] Rate: [44100] Period_size range: [45, 131072] Buffer_size range: [90, 262144] Test Params Set channels 2: pass Set format S16_LE: pass Set rate 44100: pass Test Rates Set rate 44100: pass Test All Pairs Set channels 2, format S16_LE, rate 44100: pass 3 passed, 2 failed Device Information Name: hw:CARD=H340 Stream: PLAYBACK Format: ['S16_LE'] Channels range: [2, 2] Rate: [44100] Period_size range: [45, 131072] Buffer_size range: [90, 262144] Test Params Set channels 2: pass Set format S16_LE: pass Set rate 44100: pass Test Rates Set rate 44100: fail - Expected rate is 44100.000000, measure 44092.918362, difference 7.081638 > threshold 4.410000 Test All Pairs Set channels 2, format S16_LE, rate 44100: fail - Expected rate is 44100.000000, measure 44093.049192, difference 6.950808 > threshold 4.410000 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel