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.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 89556C4361B for ; Tue, 8 Dec 2020 10:35:38 +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 2AEC623436 for ; Tue, 8 Dec 2020 10:35:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2AEC623436 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de 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 15F7016E9; Tue, 8 Dec 2020 11:34:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15F7016E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1607423735; bh=bPVFATCcvf2hLLY1VBHRJMO8ZyJySgdg6Zop/kkdurc=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tSX4wiuH4nGuMEWc16QrNjQ4YT6TyV8ZDKQU2VUhNrmBa9US8XCUW0PUC0rwdlHGY 8WHhUMzg/JyG/sE4m5BTnOvzJcLSp78/h6xGnGCwokz4UyhELluYfTycFLjoSTywC/ EUszGlH2MteVRaQxcb0QYyfNWM3x89o9HGpJbg+M= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6B0B3F80164; Tue, 8 Dec 2020 11:34:44 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A2ADAF80130; Tue, 8 Dec 2020 11:34:42 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 21FB1F80130 for ; Tue, 8 Dec 2020 11:34:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 21FB1F80130 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 57C83AD07; Tue, 8 Dec 2020 10:34:36 +0000 (UTC) Date: Tue, 08 Dec 2020 11:34:36 +0100 Message-ID: From: Takashi Iwai To: meschi@posteo.de Subject: Re: Steinberg UR22 Crackling and Clicks In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org 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 Tue, 08 Dec 2020 11:15:08 +0100, meschi@posteo.de wrote: > > Hi, > > I am using a Steinberg UR22 audio interface. Since installing Ubuntu > 20.04 on my workstation I have slight crackling in audio playback. It > doesn't matter if the audio gets routed through pulse, jack or played > straight to alsa. When running jack, the crackling is not showing any > xruns. It's not possible to get any glitch-free playback in the > system. The onboard intel audio works fine. > > My system: > > alsa info: > alsa-project.org/db/?f=8b821b17a8c83fa5db866f34a5b4dfe74d640a32 > > Processor: Intel Xeon X5687 > > $ uname -a > > Linux WorkStation-T5500 5.4.0-56-lowlatency #62-Ubuntu SMP PREEMPT Mon > Nov 23 20:19:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux > > > > I have tried: > > 5.4.0-56-generic and -lowlatency > > 5.8.0-31-generic and -lowlatency > > setting cpu governor to performance > > using nouveau driver over nvidia > > > > When playing a file with aplay like this: > > systemctl --user stop pulseaudio.socket > systemctl --user stop pulseaudio.service > aplay -D plughw:CARD=UR22 ./test.wav > > > > slight crackling can be heard every 5-10 seconds. It also appears, > that the clicks heard are not always on both channels, sometimes the > left stereo channel clicks, sometimes the right, sometimes both. > > > > Plugging the Interface into different USB-ports doesn't help. The only > external devices connected via USB are my mouse and my keyboard. On > Wndows the same setup on the same machine works fine. > > To make things even weirder, using the same audio interface on my > Thinkpad x220 (Core i5-2540M) with ubuntu 20.04 and > 5.4.0.56-lowlatency does not show this problem. > > > > Running dmesg seems to show nothing audio driver related after: > > [ 22.425520] usbcore: registered new interface driver snd-usb-audio > > > > I have found a similar issue showcasing the problem on manjaro with a > differend soundcard. Therefore I suspect the problem is caused by ALSA > interacting with the hardware. > > https://forum.manjaro.org/t/pops-clicks-on-audio-interface/40129 > > > > Here is another occurence on ubuntu on yet another audio interface. > > https://askubuntu.com/questions/1256787/ubuntu-2004-novation-xiosynth-external-usb-audio-interface-producing-popping > > > > If I can supply more information I'm happy to help. I couldn't find a > similar issue in this mailing list, so if this is already fixed I > apologize in advance. It's likely the issues with the implicit feedback. The latest development tree (either linux-next tree or topic/usb-audio-refactoring branch of my sound.git tree) contains the improvements of the implicit feedback mode. Takashi