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=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 036A2C433DF for ; Mon, 10 Aug 2020 04:48:43 +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 744132073E for ; Mon, 10 Aug 2020 04:48:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="pPqwIdWV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 744132073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=marcan.st 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 E4C7211C; Mon, 10 Aug 2020 06:47:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E4C7211C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1597034921; bh=OfA6Z/SX0xy+bAFZPK2OH6pgCdIYlek7pLYWnisEeCA=; h=Subject:To:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pPqwIdWV0Vy8ANPWTsceq730iSwb07zJcMc5MtCevy/mUgvxar4h+csmiJrp+/zKl Q4OGfS03VofQ3NEJTUlE30oK1vKCGBqLXxBn/gJ+CveCKT3SZi9vBsNatnaQvE+0DG 5nm48qdKitbGLOBrjHGu21XyWxettU7gaWN12mMk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 85BE2F80085; Mon, 10 Aug 2020 06:47:50 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BD428F8022B; Mon, 10 Aug 2020 06:47:44 +0200 (CEST) Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 01099F800CE for ; Mon, 10 Aug 2020 06:47:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 01099F800CE Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 20FC241F5F; Mon, 10 Aug 2020 04:47:32 +0000 (UTC) Subject: Re: USB audio cuts 2-3 secs at start To: Stuart Naylor , "alsa-devel@alsa-project.org" References: From: Hector Martin 'marcan' Message-ID: Date: Mon, 10 Aug 2020 13:47:30 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 7bit 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" On 29/07/2020 02.08, Stuart Naylor wrote: > http://alsa-project.org/db/?f=6b107178c9939f235a390c07cb5c1f71d6a6e0c0 > > Its an Anker power conf and for some reason the first couple of seconds of aplay do not play via USB. > > Alsa-info above anyone and tips or ideas? I bet this is just the way the hardware behaves. It probably takes a few seconds to turn on its amplifiers and audio path when USB streaming starts. If it doesn't happen in other OSes, then most likely those OSes continuously stream audio to the device even when it is unused. The workaround would be to do the same, e.g. use pulseaudio and disable suspend-on-idle, or use JACK, or something along those lines that always keeps the device running (with silence when no app is using it). -- Hector Martin "marcan" (marcan@marcan.st) Public Key: https://mrcn.st/pub