Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3BF6C433F5 for ; Fri, 5 Nov 2021 18:59:09 +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 BC3B461242 for ; Fri, 5 Nov 2021 18:59:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BC3B461242 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=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 019DB166D; Fri, 5 Nov 2021 19:58:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 019DB166D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1636138747; bh=sej3V1eRy6IrZybZz7+fs6v5xIzi/i76juQz5KrBo2I=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=em42UWsUKfnCzuhDOsKWysbI6eONf0cnpK9evSWRk8oxhoU8qZ3Sen+pl1GpLANOP iRjDnYOdEUIJ69e3S3iSURdPHu41fMnddhVF3CIQJOygUZLcDRiK94ld2FyRs1XG2G Ghj4/WqsLXNXq/NmmaEX4AlNwQB0RKyIO8pdzuJM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A3323F80269; Fri, 5 Nov 2021 19:58:16 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 30600F8026A; Fri, 5 Nov 2021 19:58:15 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 1CBD7F80148 for ; Fri, 5 Nov 2021 19:58:08 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1CBD7F80148 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="dpdKGdA7"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="tNTd5uiw" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 68B88218A9; Fri, 5 Nov 2021 18:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1636138688; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZQQbp4iVPwtDis/qFFW8EuNS1RkpwNN/kl+X3VUeZY8=; b=dpdKGdA7feY4+fETOQMXlfkrqS0xLWbiDjv+5BVx9zUUrIOBfctaJ7yERsLYEZTG04S2oI wGm5yVYk2qbAcNckcvwPmzpou16arvyCHFWF8pYW/IyMCmV43zDh/w1eBaRpVh/W/vugfQ wOIIC85IGZYjKC4NbN76VfELLFXrO1g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1636138688; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZQQbp4iVPwtDis/qFFW8EuNS1RkpwNN/kl+X3VUeZY8=; b=tNTd5uiwL0DtjFPJ0Juv4e+wWydW9QH7t18oY/1x2G5CWBEURUmaojcSnM6C1bFv+/WBmi Uz5C8Cxtl8anVDCg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 60D9D2C14A; Fri, 5 Nov 2021 18:58:08 +0000 (UTC) Date: Fri, 05 Nov 2021 19:58:08 +0100 Message-ID: From: Takashi Iwai To: Kip Warner Subject: Re: [Alsa-user] USB audio on riscv64 In-Reply-To: <3832054fd315605b19bd9d74977f83078a95ee08.camel@thevertigo.com> References: <3832054fd315605b19bd9d74977f83078a95ee08.camel@thevertigo.com> 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=UTF-8 Content-Transfer-Encoding: 8bit Cc: Alsa-user@lists.sourceforge.net, alsa-devel@alsa-project.org, Dmitri Seletski 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 Fri, 05 Nov 2021 19:47:16 +0100, Kip Warner wrote: > > On Fri, 2021-11-05 at 11:17 +0100, Takashi Iwai wrote: > > Check the contents in /proc/asound/cards.  Is that empty as well? > > Thanks for getting back to me, Takashi. Looks like it's empty: No, it contains the card entry. You can see it in alsa-info.sh output you attached, which is: > !!Soundcards recognised by ALSA > !!----------------------------- > > 1 [Device ]: USB-Audio - USB2.0 Device > Generic USB2.0 Device at usb-0000:04:00.0-2.1, full speed > > If the card is recognized there, check the /sys/class/sound/*. > > This is what I see in that directory: > > $ sudo tree /sys/class/sound/ > /sys/class/sound/ > ├── card1 -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1 > ├── controlC1 -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/controlC1 > ├── pcmC1D0p -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0p > ├── seq -> ../../devices/virtual/sound/seq > └── timer -> ../../devices/virtual/sound/timer So all files look fine. > > If a PCM device is found there, it must be the lack of the > > corresponding device in /dev/snd/* that is usually created via udev. > > And this is what I see there: > > $ sudo tree /dev/snd/ > /dev/snd/ > ├── by-id > │   └── usb-Generic_USB2.0_Device_20130100ph0-00 -> ../controlC1 > ├── by-path > │   └── platform-e00000000.pcie-pci-0000:04:00.0-usb-0:2.1:1.0 -> ../controlC1 > ├── controlC1 > ├── pcmC1D0p > ├── seq > └── timer Here, too. > I've also attached the output of the alsa-info(1) generated log. ... and this looks also fine. Try to run like % aplay -Dplughw:1 -vv foo.wav If this works, the problem is rather the access via PulseAudio. Takashi