From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=BAYES_00,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 84FBFC48BE5 for ; Tue, 15 Jun 2021 06:14:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DC20613FA for ; Tue, 15 Jun 2021 06:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230038AbhFOGQ2 (ORCPT ); Tue, 15 Jun 2021 02:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbhFOGQ1 (ORCPT ); Tue, 15 Jun 2021 02:16:27 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4DDC061767 for ; Mon, 14 Jun 2021 23:14:23 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id r19so635853qvw.5 for ; Mon, 14 Jun 2021 23:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=T2bnSnYNFfcwYBnxPxx2HOKCb0V6e+i0YyfI7rzyxiD5eF8+LeGZqMdv6Br3Mv6YDo jiWnTvbaLy8JONXsbpg4jTXZHgJTV9j5bLBjqNANfEHpjMLF4iPM1BYbz0WUj67zJejR kMz2QQBmzxq6o2c3yd/Ml2IIlFQCItgG9zEnxqwoA3fpfRznf1LY8KrcObSCH83Lavit WkRsAD7krZzpsBlSJFFStB+LWq3LxyDRA085FpTBfzcllEiYg4o7KPAJzXu8gldIkdUz pIh97MFFN1kNR95Yq7i5S91vj+2nRuAQ5PeR46FeHTAJXael3ddOt2Q4Q9BBpLg9pY4J 6fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=ZiIr1x2i+FyuL4UqxtromoImSCC/Oo8uWoH7DPFad6r4homLFU29Jnk20U8H4zfjsD Eqb/SNlPVFqDXia+jeeWMdKvHdI7YLwxI8VwCHa4FZYWgl3ElpIF769bqYnnVBKBtU1c cvshCqe0zVSG/oOknryIVfTArqLJQuFNSdk11b0vcchpEinZMX2OI1DKy/GsmyIqsA5h 6tqNOn6wsQQ/5WYKhUDhypB1Vw1ELX8Arfey0zSJ8F21jpxjDe3idr6MXGzvOUQXnH+O DqReK2F6y+8RdXfsbClm8AI/IH6IxFSBuw3jiHI2G14LdmVApJkUoKzHSEOWU1PZtS3S Bf8Q== X-Gm-Message-State: AOAM532MSgQxnE2e1KOu6RNltLog38BeNXUDBZ+gllOs8GN4i0Fcgerb 3apY7M59fSgiTn7Lfop9rjaVpQ== X-Google-Smtp-Source: ABdhPJxMAdHu3UVivt6CyjfIbsc13nvBGRaXL9cOxzuyGEdMnuynC8A7XlRVCPMCQBrHGUpWEqlprg== X-Received: by 2002:ad4:4513:: with SMTP id k19mr3455852qvu.10.1623737662368; Mon, 14 Jun 2021 23:14:22 -0700 (PDT) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id d10sm9126220qko.73.2021.06.14.23.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 23:14:21 -0700 (PDT) Sender: Valdis Kletnieks From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Muni Sekhar Cc: linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, alsa-devel , kernelnewbies Subject: Re: USB sound card issues In-Reply-To: References: <26698.1623455194@turing-police> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1623737660_27061P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 15 Jun 2021 02:14:20 -0400 Message-ID: <27987.1623737660@turing-police> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org --==_Exmh_1623737660_27061P Content-Type: text/plain; charset=us-ascii On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said: > > And if it's configurable for multiple formats, was it set for the correct one? > Is there a way to verify was it set for the correct one or not? arecord -v gives what it thinks the setup is. > > Does the record die immediately, or hang for a few seconds and timeout? > What is the difference between these two ways? An immediate failure is usually related to a "Can't do it" situation where the USB interaction to configure the device has failed, while a timeout usually indicates that the configuration at least *claimed* to succeed, but is failing to properly transfer valid data. > For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord: > pcm_read:2032: read error: Input/output error). Given that the usbmon output ran to several megabytes, that's tending to point at "the card was returning lots of packets, but they weren't actually the format/data that arecord was expecting. --==_Exmh_1623737660_27061P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYMhFPAdmEQWDXROgAQLflRAAs+j4NzJsZvDoYyONGr7oogKXJeN9xOeC MZ4TriWfaNZFsJjF4vZLASaJHchFooza6IVmfXyydw5eaDqiMjY29248qWt3Udcn pX0riM8ss4f1PZHJJ1wxXUB7xyWllk8B7rSUCQVQzleBa869EnUBL8scgZo4wfFR bLcIWoB6MOYzCWUCAH46qKVBlDfuF21vH3X/njcPoYVDFkBzrWBdtf7EZRNUD4eF OZECVvE6Wlf7FrAhMX7Z25MKEtvFk/5/3XO18vMvB+iI/4mcqgYhhTbL9T20kHxn X5Z4diY31QZNRitK7uQvBCv70moH0gyP5wmP1qaEV6NV3PojwBsC2UlvkKx0Rq8q Yj/+3BEhaJI3lmKnFzNKaAlxSoWLtkfaiYz3fq0s04kQg36j05eV+UuzvKMe6Nvi PiB/QPhDAqpnxWCEQ8vAi9CXV/pM46ZdPFJlZtLZZe0RcwCRKKUfGKFVK9i19cRX ifhZOMUtHdcQi8j7cDuauFQYd4j+M8wLsTEd7E4G0vEcp+hebC66s+cWMP0Ofg0f OVRT4jHovw4UQuimQ5M7dc0B+MAqLUYv8caoHgBI3/Wvy7de/b7tSGwoEt8uZbha opHBCfQ+5lxTwMn66g6GGMEarC1CCjD0D9DtaT4DaDHzx/ZUNg9w+rxS/sKJen+i Q40iY/MKlhU= =3wIB -----END PGP SIGNATURE----- --==_Exmh_1623737660_27061P-- From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=BAYES_00,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 26775C48BE5 for ; Tue, 15 Jun 2021 06:15:41 +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 9876C61410 for ; Tue, 15 Jun 2021 06:15:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9876C61410 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu 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 4D28E1689; Tue, 15 Jun 2021 08:14:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4D28E1689 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1623737737; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; h=From:To:Subject:In-Reply-To:References:Date:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kF1U3wBSE7kTiBxtN4+BeVXebA/NTjLn7RfH2avLP7sH5uT98297KJnUiSdS6+Xyj kWpvn3+ocVm+btJ2ehksvprHoPI29MmQoBlm/rs5wfjrXSz+uE7Jv4go9NSoW9zwT3 3mrXZ5Qg1xnK+bjuXXqjBXDRry22Qy53n6d3KPtw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D14F9F80164; Tue, 15 Jun 2021 08:14:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id F37CDF800F7; Tue, 15 Jun 2021 08:14:33 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 F35E1F800F7 for ; Tue, 15 Jun 2021 08:14:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F35E1F800F7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=vt-edu.20150623.gappssmtp.com header.i=@vt-edu.20150623.gappssmtp.com header.b="T2bnSnYN" Received: by mail-qv1-xf36.google.com with SMTP id im10so20944665qvb.3 for ; Mon, 14 Jun 2021 23:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=T2bnSnYNFfcwYBnxPxx2HOKCb0V6e+i0YyfI7rzyxiD5eF8+LeGZqMdv6Br3Mv6YDo jiWnTvbaLy8JONXsbpg4jTXZHgJTV9j5bLBjqNANfEHpjMLF4iPM1BYbz0WUj67zJejR kMz2QQBmzxq6o2c3yd/Ml2IIlFQCItgG9zEnxqwoA3fpfRznf1LY8KrcObSCH83Lavit WkRsAD7krZzpsBlSJFFStB+LWq3LxyDRA085FpTBfzcllEiYg4o7KPAJzXu8gldIkdUz pIh97MFFN1kNR95Yq7i5S91vj+2nRuAQ5PeR46FeHTAJXael3ddOt2Q4Q9BBpLg9pY4J 6fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=syZSAxUWECYpjyA8qleJZJUXnBWQv5vhtZFaNepaQfqMq1+lSSyxwGJ1KRSOBDAkme gD3jCuIiypKGj1QXzZ8jwOG8jQgsdcyjEBz3sp5Yq7naBrQ7JWniSyof7/35u8MoYX4C kpH8ghbCB03mDBXxiSuA9HUbPNnFnjCy9s44vb7PZ5peMBn0ciaBPiNn9DyeOffOXkah olMICF5+0/NkZxIjiTPw2scdTm0F375FFyieqIwjtn7D57zA1Z43Dds4DteJkzwMAMxa UCN17nwOvUC4ju1igVQ7pHVAJF/w8T7NaIwcOGIB/v6PDiEZMgpA14MbomqibpNqAzoU v+2g== X-Gm-Message-State: AOAM532jyzU7DJEoSpoll74S/ooloNLnTou8d5SnZvD9sI7nwcfDZa+F fZWklnnx/ib+6CTvr6qQM/Ug2Q== X-Google-Smtp-Source: ABdhPJxMAdHu3UVivt6CyjfIbsc13nvBGRaXL9cOxzuyGEdMnuynC8A7XlRVCPMCQBrHGUpWEqlprg== X-Received: by 2002:ad4:4513:: with SMTP id k19mr3455852qvu.10.1623737662368; Mon, 14 Jun 2021 23:14:22 -0700 (PDT) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id d10sm9126220qko.73.2021.06.14.23.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 23:14:21 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Muni Sekhar Subject: Re: USB sound card issues In-Reply-To: References: <26698.1623455194@turing-police> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1623737660_27061P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 15 Jun 2021 02:14:20 -0400 Message-ID: <27987.1623737660@turing-police> Cc: alsa-devel , linux-usb@vger.kernel.org, linux-sound@vger.kernel.org, kernelnewbies 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" --==_Exmh_1623737660_27061P Content-Type: text/plain; charset=us-ascii On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said: > > And if it's configurable for multiple formats, was it set for the correct one? > Is there a way to verify was it set for the correct one or not? arecord -v gives what it thinks the setup is. > > Does the record die immediately, or hang for a few seconds and timeout? > What is the difference between these two ways? An immediate failure is usually related to a "Can't do it" situation where the USB interaction to configure the device has failed, while a timeout usually indicates that the configuration at least *claimed* to succeed, but is failing to properly transfer valid data. > For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord: > pcm_read:2032: read error: Input/output error). Given that the usbmon output ran to several megabytes, that's tending to point at "the card was returning lots of packets, but they weren't actually the format/data that arecord was expecting. --==_Exmh_1623737660_27061P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYMhFPAdmEQWDXROgAQLflRAAs+j4NzJsZvDoYyONGr7oogKXJeN9xOeC MZ4TriWfaNZFsJjF4vZLASaJHchFooza6IVmfXyydw5eaDqiMjY29248qWt3Udcn pX0riM8ss4f1PZHJJ1wxXUB7xyWllk8B7rSUCQVQzleBa869EnUBL8scgZo4wfFR bLcIWoB6MOYzCWUCAH46qKVBlDfuF21vH3X/njcPoYVDFkBzrWBdtf7EZRNUD4eF OZECVvE6Wlf7FrAhMX7Z25MKEtvFk/5/3XO18vMvB+iI/4mcqgYhhTbL9T20kHxn X5Z4diY31QZNRitK7uQvBCv70moH0gyP5wmP1qaEV6NV3PojwBsC2UlvkKx0Rq8q Yj/+3BEhaJI3lmKnFzNKaAlxSoWLtkfaiYz3fq0s04kQg36j05eV+UuzvKMe6Nvi PiB/QPhDAqpnxWCEQ8vAi9CXV/pM46ZdPFJlZtLZZe0RcwCRKKUfGKFVK9i19cRX ifhZOMUtHdcQi8j7cDuauFQYd4j+M8wLsTEd7E4G0vEcp+hebC66s+cWMP0Ofg0f OVRT4jHovw4UQuimQ5M7dc0B+MAqLUYv8caoHgBI3/Wvy7de/b7tSGwoEt8uZbha opHBCfQ+5lxTwMn66g6GGMEarC1CCjD0D9DtaT4DaDHzx/ZUNg9w+rxS/sKJen+i Q40iY/MKlhU= =3wIB -----END PGP SIGNATURE----- --==_Exmh_1623737660_27061P-- From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 8DC63C48BDF for ; Tue, 15 Jun 2021 06:14:43 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 2BFA861059 for ; Tue, 15 Jun 2021 06:14:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BFA861059 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1lt2LD-0005R0-QZ; Tue, 15 Jun 2021 02:14:27 -0400 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lt2LA-0005QI-IY for kernelnewbies@kernelnewbies.org; Tue, 15 Jun 2021 02:14:24 -0400 Received: by mail-qv1-xf2a.google.com with SMTP id u13so21808016qvt.7 for ; Mon, 14 Jun 2021 23:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:mime-version :content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=T2bnSnYNFfcwYBnxPxx2HOKCb0V6e+i0YyfI7rzyxiD5eF8+LeGZqMdv6Br3Mv6YDo jiWnTvbaLy8JONXsbpg4jTXZHgJTV9j5bLBjqNANfEHpjMLF4iPM1BYbz0WUj67zJejR kMz2QQBmzxq6o2c3yd/Ml2IIlFQCItgG9zEnxqwoA3fpfRznf1LY8KrcObSCH83Lavit WkRsAD7krZzpsBlSJFFStB+LWq3LxyDRA085FpTBfzcllEiYg4o7KPAJzXu8gldIkdUz pIh97MFFN1kNR95Yq7i5S91vj+2nRuAQ5PeR46FeHTAJXael3ddOt2Q4Q9BBpLg9pY4J 6fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=5p6r7tT6JpnFVOCQc0t32V8ptgw1D+osB0n0nDQ9dZU=; b=F47Ow8lp3nrcdrKKPJqzHb7YFjfHuXKGbQYk5/4KEdYMR2C71I82oxCbE+fFpATcjW 8jiirw8t9iXSvkFXf8wtV27Q92O1dzVdtDHWxTvpX2B3gQjdBedDlfRrFyI6Z6D+FEHt kloiSQQvOTkkFdz1cMyfq41BGvVA8vdDvkRsRt7FN4htcWU50k89mqVygxufXmGCKQjQ pkp2takqr/q4zCnSHbhXj5YSAO3M/yKxSvkPICTwhnC+RxiCnzNzKODgMKfg5pbbBVwW /R/3cTSl3QsryPeR0pEImzFuiVpBQontt0ZhVUdLNDWkhYeGyTDSrqni/N8JNIrvqJuZ TlQw== X-Gm-Message-State: AOAM533po6wLexqpl09/kP3CR3ZLw+6/41ejtzjBn/42NHKtpbAggO+J FRKPAUcmt9MyKXbJgWbIOA+iSQ== X-Google-Smtp-Source: ABdhPJxMAdHu3UVivt6CyjfIbsc13nvBGRaXL9cOxzuyGEdMnuynC8A7XlRVCPMCQBrHGUpWEqlprg== X-Received: by 2002:ad4:4513:: with SMTP id k19mr3455852qvu.10.1623737662368; Mon, 14 Jun 2021 23:14:22 -0700 (PDT) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id d10sm9126220qko.73.2021.06.14.23.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 23:14:21 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Muni Sekhar Subject: Re: USB sound card issues In-Reply-To: References: <26698.1623455194@turing-police> Mime-Version: 1.0 Date: Tue, 15 Jun 2021 02:14:20 -0400 Message-ID: <27987.1623737660@turing-police> Cc: alsa-devel , linux-usb@vger.kernel.org, linux-sound@vger.kernel.org, kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7373212732449162801==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7373212732449162801== Content-Type: multipart/signed; boundary="==_Exmh_1623737660_27061P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1623737660_27061P Content-Type: text/plain; charset=us-ascii On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said: > > And if it's configurable for multiple formats, was it set for the correct one? > Is there a way to verify was it set for the correct one or not? arecord -v gives what it thinks the setup is. > > Does the record die immediately, or hang for a few seconds and timeout? > What is the difference between these two ways? An immediate failure is usually related to a "Can't do it" situation where the USB interaction to configure the device has failed, while a timeout usually indicates that the configuration at least *claimed* to succeed, but is failing to properly transfer valid data. > For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord: > pcm_read:2032: read error: Input/output error). Given that the usbmon output ran to several megabytes, that's tending to point at "the card was returning lots of packets, but they weren't actually the format/data that arecord was expecting. --==_Exmh_1623737660_27061P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYMhFPAdmEQWDXROgAQLflRAAs+j4NzJsZvDoYyONGr7oogKXJeN9xOeC MZ4TriWfaNZFsJjF4vZLASaJHchFooza6IVmfXyydw5eaDqiMjY29248qWt3Udcn pX0riM8ss4f1PZHJJ1wxXUB7xyWllk8B7rSUCQVQzleBa869EnUBL8scgZo4wfFR bLcIWoB6MOYzCWUCAH46qKVBlDfuF21vH3X/njcPoYVDFkBzrWBdtf7EZRNUD4eF OZECVvE6Wlf7FrAhMX7Z25MKEtvFk/5/3XO18vMvB+iI/4mcqgYhhTbL9T20kHxn X5Z4diY31QZNRitK7uQvBCv70moH0gyP5wmP1qaEV6NV3PojwBsC2UlvkKx0Rq8q Yj/+3BEhaJI3lmKnFzNKaAlxSoWLtkfaiYz3fq0s04kQg36j05eV+UuzvKMe6Nvi PiB/QPhDAqpnxWCEQ8vAi9CXV/pM46ZdPFJlZtLZZe0RcwCRKKUfGKFVK9i19cRX ifhZOMUtHdcQi8j7cDuauFQYd4j+M8wLsTEd7E4G0vEcp+hebC66s+cWMP0Ofg0f OVRT4jHovw4UQuimQ5M7dc0B+MAqLUYv8caoHgBI3/Wvy7de/b7tSGwoEt8uZbha opHBCfQ+5lxTwMn66g6GGMEarC1CCjD0D9DtaT4DaDHzx/ZUNg9w+rxS/sKJen+i Q40iY/MKlhU= =3wIB -----END PGP SIGNATURE----- --==_Exmh_1623737660_27061P-- --===============7373212732449162801== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7373212732449162801==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" Date: Tue, 15 Jun 2021 06:14:20 +0000 Subject: Re: USB sound card issues Message-Id: <27987.1623737660@turing-police> MIME-Version: 1 Content-Type: multipart/mixed; boundary="==_Exmh_1623737660_27061P" List-Id: References: <26698.1623455194@turing-police> In-Reply-To: To: Muni Sekhar Cc: linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, alsa-devel , kernelnewbies --==_Exmh_1623737660_27061P Content-Type: text/plain; charset=us-ascii On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said: > > And if it's configurable for multiple formats, was it set for the correct one? > Is there a way to verify was it set for the correct one or not? arecord -v gives what it thinks the setup is. > > Does the record die immediately, or hang for a few seconds and timeout? > What is the difference between these two ways? An immediate failure is usually related to a "Can't do it" situation where the USB interaction to configure the device has failed, while a timeout usually indicates that the configuration at least *claimed* to succeed, but is failing to properly transfer valid data. > For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord: > pcm_read:2032: read error: Input/output error). Given that the usbmon output ran to several megabytes, that's tending to point at "the card was returning lots of packets, but they weren't actually the format/data that arecord was expecting. --==_Exmh_1623737660_27061P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBYMhFPAdmEQWDXROgAQLflRAAs+j4NzJsZvDoYyONGr7oogKXJeN9xOeC MZ4TriWfaNZFsJjF4vZLASaJHchFooza6IVmfXyydw5eaDqiMjY29248qWt3Udcn pX0riM8ss4f1PZHJJ1wxXUB7xyWllk8B7rSUCQVQzleBa869EnUBL8scgZo4wfFR bLcIWoB6MOYzCWUCAH46qKVBlDfuF21vH3X/njcPoYVDFkBzrWBdtf7EZRNUD4eF OZECVvE6Wlf7FrAhMX7Z25MKEtvFk/5/3XO18vMvB+iI/4mcqgYhhTbL9T20kHxn X5Z4diY31QZNRitK7uQvBCv70moH0gyP5wmP1qaEV6NV3PojwBsC2UlvkKx0Rq8q Yj/+3BEhaJI3lmKnFzNKaAlxSoWLtkfaiYz3fq0s04kQg36j05eV+UuzvKMe6Nvi PiB/QPhDAqpnxWCEQ8vAi9CXV/pM46ZdPFJlZtLZZe0RcwCRKKUfGKFVK9i19cRX ifhZOMUtHdcQi8j7cDuauFQYd4j+M8wLsTEd7E4G0vEcp+hebC66s+cWMP0Ofg0f OVRT4jHovw4UQuimQ5M7dc0B+MAqLUYv8caoHgBI3/Wvy7de/b7tSGwoEt8uZbha opHBCfQ+5lxTwMn66g6GGMEarC1CCjD0D9DtaT4DaDHzx/ZUNg9w+rxS/sKJen+i Q40iY/MKlhU= =3wIB -----END PGP SIGNATURE----- --==_Exmh_1623737660_27061P--