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.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 8649BC2BB54 for ; Mon, 6 Apr 2020 07:40:56 +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 0DD3D20781 for ; Mon, 6 Apr 2020 07:40:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="kCV0RBKc"; dkim=pass (1024-bit key) header.d=perex.cz header.i=@perex.cz header.b="G3HWG01O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0DD3D20781 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=perex.cz 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 5B819822; Mon, 6 Apr 2020 09:40:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5B819822 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1586158854; bh=MzPnEkk6eq+2QYuE+6HLuekJyUbOuUVnYwInBPWZII8=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kCV0RBKcApTV3zvioDK7IwTyJQ/fySn3OPN3GAZF5ze9hjxfaqueIsL1w1N3PloXY PCRivQXpEFWSoR6024cMQcKtp8HwtXZvX2OFXTC5abXEIst1+OFd4NhaeWc2VvAGMa +GYZlPt3351EAuWcQtlcdrR+ohOdTsZEmhrGAtD0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D0938F80121; Mon, 6 Apr 2020 09:40:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7B5D8F80143; Mon, 6 Apr 2020 09:40:01 +0200 (CEST) Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D16C1F80140 for ; Mon, 6 Apr 2020 09:39:57 +0200 (CEST) Received: from mail1.perex.cz (localhost [127.0.0.1]) by smtp1.perex.cz (Perex's E-mail Delivery System) with ESMTP id A16B0A003F; Mon, 6 Apr 2020 09:39:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.perex.cz A16B0A003F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perex.cz; s=default; t=1586158794; bh=STkl02HnLxcPFpOGX8B4xuXasbsmLQtucRPgWYimGDU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=G3HWG01OjvcQSVZCySo/9liBw54ECN9eIjABo56OR9X36Q4Lpj1CerrJpUI3fPgYY po/wxVNbW8LUHcfEzWuovj0Kv70sI2XGXz/LFOLMKK+3QkxI92VArwi0QyfxYjQOed fwEJvqdNG2UdUHP4zB5YhN+wUOcEwFhwWU3JhC2I= Received: from p50.perex-int.cz (unknown [192.168.100.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: perex) by mail1.perex.cz (Perex's E-mail Delivery System) with ESMTPSA; Mon, 6 Apr 2020 09:39:52 +0200 (CEST) Subject: Re: [PATCH 1/5] bytcr-rt5651: Fix dmic check in HiFi-Components.conf To: Hans de Goede References: <20200405183454.34515-1-hdegoede@redhat.com> From: Jaroslav Kysela Message-ID: <06bd19cd-e1c0-4be3-4784-2a9bde6a9d2d@perex.cz> Date: Mon, 6 Apr 2020 09:39:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200405183454.34515-1-hdegoede@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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" Dne 05. 04. 20 v 20:34 Hans de Goede napsal(a): > The kernel sets cfg-mic:dmic not cfg-mic:dmic1 when a digital mic is > used. The wrong check for cfg-mic:dmic1 causes there to be no "Mic" > device at all, which causes the check for the ConflictingDevices section > of the HeadSet (mic) device to fail like e.g. so: > > [hans@localhost ~]$ alsaucm -c bytcr-rt5651 set _verb HiFi set _enadev Speaker > ALSA lib parser.c:1138:(verb_dev_list_add) error: unable to find device 'Mic' > ALSA lib parser.c:1433:(parse_verb_file) error: device management error in verb 'HiFi' > ALSA lib main.c:962:(snd_use_case_mgr_open) error: failed to import bytcr-rt5651 use case configuration -2 > alsaucm: error failed to open sound card bytcr-rt5651: No such file or directory > > This commit fixes this. > > Signed-off-by: Hans de Goede > --- > ucm2/bytcr-rt5651/HiFi-Components.conf | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/ucm2/bytcr-rt5651/HiFi-Components.conf b/ucm2/bytcr-rt5651/HiFi-Components.conf > index 53ebcbe..d0a573e 100644 > --- a/ucm2/bytcr-rt5651/HiFi-Components.conf > +++ b/ucm2/bytcr-rt5651/HiFi-Components.conf > @@ -34,11 +34,11 @@ If.headphones { > } > } > > -If.dmic1 { > +If.dmic { > Condition { > Type String > Haystack "${CardComponents}" > - Needle "cfg-mic:dmic1" > + Needle "cfg-mic:dmic" > } > True { > > Applied. Thanks. Jaroslav -- Jaroslav Kysela Linux Sound Maintainer; ALSA Project; Red Hat, Inc.