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.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 B8D02C10DCE for ; Fri, 13 Mar 2020 11:04:33 +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 4A37920752 for ; Fri, 13 Mar 2020 11:04:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="XEJNGlLr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A37920752 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com 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 8743917CB; Fri, 13 Mar 2020 12:03:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8743917CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1584097471; bh=+PT/Q/T8JKu1QcF7iIayF4O0sOvyGt/CZXoyQiR2wSA=; h=From:Subject:To:References:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XEJNGlLrGMO/W1BX5od0y+2QQkvGanUTGVOJLOUAaGl3Y0mXd0G5PH0U/eG/mVFFh 9vkKco9ztu/xzRpcgYuMAKnxaws3Vi8HDu84d3sRQtL/4Pq8F2ctQk/aaLUXxy0f4b dmfyVv03KY73ZrpzLlhX4MsuGHDqwSd2kgqeN/tU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DA099F801EB; Fri, 13 Mar 2020 12:03:40 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 186CAF801F8; Fri, 13 Mar 2020 12:02:10 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id CEF48F80090 for ; Fri, 13 Mar 2020 11:59:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz CEF48F80090 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2020 03:59:52 -0700 X-IronPort-AV: E=Sophos;i="5.70,548,1574150400"; d="scan'208";a="232385981" Received: from mgorski-mobl.ger.corp.intel.com (HELO [10.251.242.215]) ([10.251.242.215]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Mar 2020 03:59:50 -0700 From: "Gorski, Mateusz" Subject: Re: [PATCH] ucm2: hdadsp: add basic ucm config To: Jaroslav Kysela , alsa-devel@alsa-project.org References: <20200306113031.713-1-mateusz.gorski@linux.intel.com> <4e2e3345-81d0-c698-d589-d4db5faff288@perex.cz> Message-ID: <8cd9195d-6104-88ed-22ed-c3151334ee76@linux.intel.com> Date: Fri, 13 Mar 2020 11:59:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <4e2e3345-81d0-c698-d589-d4db5faff288@perex.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: pl Cc: cezary.rojewski@intel.com, tiwai@suse.com 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" >> Basic UCM configuration for HDA DSP generic enabling codec playback and >> capture on both HDA codec and DMIC ports. > > Could you describe for what Linux driver (source code) is this > configuration? This file is for Intel Skylake SST driver. Information added in v2. >> +ValueDefaults { >> +    PlaybackChannels "2" >> +    PlaybackPriority "1" >> +    CaptureChannels "2" >> +    CapturePriority "2" >> +} > > Remove PlaybackChannel and Priority defaults. The priorities should be > defined in the device section. Thanks, moved to device section in v2. >> + >> +SectionDefaults [ >> +    cdev "hw:hdadsp" > > It should be "hw:${CardId}" for ucm2. Thanks, applied in v2. >> +    cset "name='codec0_out mo media0_in mi Switch' 1" >> +    cset "name='media0_out mo codec0_in mi Switch' 1" >> +    cset "name='mch_cap_out mo mch_cap_in mi Switch' 1" >> +] > > This file does not define any devices. Does pulseaudio work with this > configuration? Devices added in v2. Regarding pulseaudio - are there any guidelines on how to test UCM files with it? These UCM files were writted mainly based on existing ones for other cards. Of course basic tests were made. Thanks, Mateusz