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=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 5439FC3A5A8 for ; Wed, 4 Sep 2019 16:48:11 +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 4EE042087E for ; Wed, 4 Sep 2019 16:48:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="A1W1xCEJ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ofb.net header.i=@ofb.net header.b="cf+kKm8D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EE042087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ofb.net 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 1E0EF166E; Wed, 4 Sep 2019 18:47:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1E0EF166E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1567615687; bh=/pA49+hPxpGpLpX50TcxNRMorsqpH/eAKTv18RUkrzM=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Reply-To:From; b=A1W1xCEJDyYZcajNbpokKKcpM4VBJ0MILOei89+0p6jnOKW5QYWHf5jv+D5hWcIsi LBV03v26iUQ8Hkoy1OLMFs3wFeGCH7BNdAcMcfBZeTXU1kBxU0CxhGWWvY+NxA5FFv jV/kVutDdJtsfe2swiVWBzg3nfR1g0aaU3cerDbg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7643AF80394; Wed, 4 Sep 2019 18:47:16 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D400AF803A6; Wed, 4 Sep 2019 18:47:14 +0200 (CEST) Received: from egnor-li.ofb.net (egnor-li.ofb.net [IPv6:2600:3c01:e000:283::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B5B39F80228 for ; Wed, 4 Sep 2019 18:47:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B5B39F80228 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=ofb.net header.i=@ofb.net header.b="cf+kKm8D" Received: from ofb.net (163.242.197.104.bc.googleusercontent.com [104.197.242.163]) by egnor-li.ofb.net (Postfix) with ESMTP id 1D73B117FC8; Wed, 4 Sep 2019 16:47:08 +0000 (UTC) Received: from localhost.localdomain (unknown [173.239.75.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ofb.net (Postfix) with ESMTPSA id D24873E883; Wed, 4 Sep 2019 09:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ofb.net; s=ofb; t=1567615627; bh=2Da5mp1UzPtaC7ERWpHqOYdabdeauRvroz5AeUur6eI=; h=Date:From:To:Cc:Subject:Reply-To:From; b=cf+kKm8DwuIMq3xz4hE2dFsKtfjY3xXxG6E/3WNwtpLgF9hS8BQrWtCwsLjC3NeRG FF27ImfbGQD7seGntI9bQ5TH1JLgFdWwuK2602IkPYJi/6IezFi47dXsnAbyO5CFSA 42YqA5RXXRnYCbwQrGhhsawZe4vsfao2kNUdSyNW1/AeG6HRDOTkuuutAEaBVLH2iC T5as3OV8bVFL5FZQ0pP9Q4AewAjeT+eUJomg24QlFYot7YofCMrkvMici629utjGuJ 5sYgjhY/nzh2whi2R/QcXuOeoT9L8euQTk9d65HfV1pQAaI25pkIE2xEOOsgCjA5AN Cv9sl8d9miHoQ== Received: from frederik by localhost.localdomain with local (Exim 4.92.1) (envelope-from ) id 1i5YR0-0001ek-Sc; Wed, 04 Sep 2019 09:47:06 -0700 Date: Wed, 4 Sep 2019 09:47:06 -0700 From: frederik@ofb.net To: alsa-devel@alsa-project.org Message-ID: <20190904164706.gwjbcywbj7emnwvr@localhost> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 Cc: alsa-user@lists.sourceforge.net Subject: [alsa-devel] parameter for pulse device? 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: , Reply-To: frederik@ofb.net Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Dear ALSA, In my ~/.asoundrc, I have lines like this: pcm.mic { type pulse; device "mic" } pcm.monitor { type pulse; device "monitor"; } pcm.music { type pulse; device "music"; } to make it easier for ALSA-aware programs to input and output via PulseAudio, e.g.: ecasound -i alsa,mic -o alsa,monitor -etd:... However, I would like to simplify this and not have to update ~/.asoundrc every time I create a new PulseAudio device. Since ALSA has the ability for PCMs to take a parameter, I thought this might work with the "pulse" PCM and the PulseAudio device name. But I get an "error: Invalid argument" when trying to pass the device name as an argument to the "pulse" PCM: $ ecasound -o alsa,pulse:music -i some.wav ... ALSA lib conf.c:5014:(snd_config_expand) Unknown parameters music ALSA lib pcm.c:2564:(snd_pcm_open_noupdate) Unknown PCM pulse:music ERROR: Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-ALSA: ... Unable to open ALSA-device for playback; error: Invalid argument" Is there some magic with macros that I can use to accomplish this syntax, or can we add the ability for the "pulse" PCM to take a parameter naming the device? Thanks, Frederick _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel