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=-8.7 required=3.0 tests=BAYES_00,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 E6EB5C4361B for ; Wed, 9 Dec 2020 12:01:15 +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 0A7FB23B79 for ; Wed, 9 Dec 2020 12:01:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A7FB23B79 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 372E216C9; Wed, 9 Dec 2020 13:00:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 372E216C9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1607515273; bh=HauAsl65F36xybUSiyYc41iyJ1rJlYBDMSgnrVPHack=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZrV1QBowS1HpuV2CPdxalzEHo82GbGzv45IssHbqtYT8onpeZJYANkAzxJlF7Ezk4 bnpLSM4Hefc8rLC45NZZOgDe/NlsCVkR4opOQe6h027j4wqQpqMSTLU46jDKYF8qU4 1Jp63M7MCUBPuRreuDLiT16MS6Tf4/JroZCUsgqA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 52A5DF801D8; Wed, 9 Dec 2020 13:00:22 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D6FA8F800E1; Wed, 9 Dec 2020 13:00:19 +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 B50F1F800E1 for ; Wed, 9 Dec 2020 13:00:08 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B50F1F800E1 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 06801ACF1; Wed, 9 Dec 2020 12:00:08 +0000 (UTC) Date: Wed, 09 Dec 2020 13:00:07 +0100 Message-ID: From: Takashi Iwai To: meschi@posteo.de Subject: Re: Steinberg UR22 Crackling and Clicks In-Reply-To: <5811c5724e831c38395d3e5b57439b4d@posteo.de> References: <61da73624ff3855867b8e65936fc2e1c@posteo.de> <987d1956f52ba49dc3b587c33e08bfb2@posteo.de> <4188489e2967b44e57653193cab9d1cb@posteo.de> <5811c5724e831c38395d3e5b57439b4d@posteo.de> 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 Wed, 09 Dec 2020 12:56:55 +0100, meschi@posteo.de wrote: > > >> >> >> >> > 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 > >> >> >> When I try to play a file now this happens: > >> >> >> $ aplay -D plughw:CARD=UR22 ./file.wav > >> >> >> Playing WAVE './file.wav' : Signed 16 bit Little Endian, Rate 44100 > >> >> >> Hz, Stereo > >> >> >> aplay: set_params:1407: Unable to install hw params: > >> >> > > >> >> > It's a known side-effect of the implicit feedback mode, and the latest > >> >> > patchset I mentioned earlier addresses the issue. > >> >> > > >> >> > > >> >> > Takashi > >> >> > >> >> I'm already running the kernel built from the linux-next tree... > >> >> I built next-20201208 from > >> >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > >> >> Is there another patch set that I'm missing? > >> > > >> > Hm, strange. > >> > > >> > Please check the contents of /proc/asound/card*/stream* file. With > >> > the latest patches and the implicit feedback mode, you should see the > >> > lines like "Sync Endpoint: 0x...." and "Implicit Feedback Mode: yes". > >> > > >> > > >> > Takashi > >> > >> Yes, I see this: > >> > >> Yamaha Corporation Steinberg UR22 at usb-0000:00:1a.7-3, high speed : > >> USB Audio > >> > >> Playback: > >> Status: Stop > >> Interface 1 > >> Altset 1 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x07 (7 OUT) (ASYNC) > >> Rates: 44100, 48000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > >> Sync Endpoint: 0x81 (1 IN) > >> Sync EP Interface: 2 > >> Sync EP Altset: 1 > >> Implicit Feedback Mode: Yes > >> Interface 1 > >> Altset 2 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x07 (7 OUT) (ASYNC) > >> Rates: 88200, 96000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > >> Sync Endpoint: 0x81 (1 IN) > >> Sync EP Interface: 2 > >> Sync EP Altset: 1 > >> Implicit Feedback Mode: Yes > >> Interface 1 > >> Altset 3 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x07 (7 OUT) (ASYNC) > >> Rates: 176400, 192000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > >> Sync Endpoint: 0x81 (1 IN) > >> Sync EP Interface: 2 > >> Sync EP Altset: 1 > >> Implicit Feedback Mode: Yes > >> > >> Capture: > >> Status: Stop > >> Interface 2 > >> Altset 1 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x86 (6 IN) (ASYNC) > >> Rates: 44100, 48000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > >> Interface 2 > >> Altset 2 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x86 (6 IN) (ASYNC) > >> Rates: 88200, 96000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > >> Interface 2 > >> Altset 3 > >> Format: S24_3LE > >> Channels: 2 > >> Endpoint: 0x86 (6 IN) (ASYNC) > >> Rates: 176400, 192000 > >> Data packet interval: 125 us > >> Bits: 24 > >> Channel map: FL FR > > > > OK, then it means that your device isn't compatible with UR22C. > > It has a different endpoint assignment. > > > > What happens if you run this kernel without quirk_alias option? > > Is the implicit feedback still set? > > > > > > Takashi > > When running it without the quirk_alias option implicit feedback isn't > set. Then try to pass implicit_fb=1 option to snd-usb-audio module. It's a new option that was added recently. Takashi