Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1346411ybt; Thu, 2 Jul 2020 03:11:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEUKWlsfNBASBYIEKL52zAPWTh13yq159sSehiHUH7rfU/DWCueJFbRBqLFwY+pWL6BBUk X-Received: by 2002:a17:906:fcb7:: with SMTP id qw23mr25337457ejb.229.1593684661457; Thu, 02 Jul 2020 03:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593684661; cv=none; d=google.com; s=arc-20160816; b=Zw33+7Y7+fjNTSNxtUQUOPVvWYSkqV59jnYZlpcdQdzQni1w0i53WpV54AMQMCqf13 3AO+D0/z09YxyfvIDOlnU1dve9JpwwxrApzTLbpenLZqZM/SkGsX0vl3meEvu7Qz5Ju5 xRc27PJFKkVqvjDIBJZzHu4nV1XFtLUOewIt2bAzXPj/47xyiFWqIAvLveAUVk3Gfqq2 hfZLDXZY5Pu5rk9Wzcvfz7vI7B/nok5QGIBfuo+ULs2XH5ME9EP8prpF5W5j02OU8BMf tUXn6uKEqKqKG81VqUshOMhhVFghI2cmiUFvtWgvTagvxBGxL6uTuSiuj0AidlrdE5in BJYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MNkwKZ84Zrawk816auciDQTYwDrs9ybRS0FVRLuLd9I=; b=zfwQyn9VN4/LkZXCfkPndA0sFac8hUDLhrsH1CDRw5iNbLgTYkdiHOEx1OT55afFex v73yeK9VYoXFjS9sf7QPowlveXlr7288JfnwFiJahKepx+ftIRIIh4PHj9gkJOuaYx/L uExLVaMPwsZbKTmY32WLa4ZxQtw5Oljoqap/SSIzT4XJjkNVY030HFycIwgxi1AkxHGC GMnC90TYhCmZg0h5ZsNL3Kv30kVFGdlIgWRurvQGow2tSpDdtICaa60rry0yEF3+7BtN faw+OvObQ9zH19+2VSMHZfuajJ+FNQgYpEDvRyR2psB8bTEXyxLBxY+2qE0V1C///aU+ W47A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=Ga4jYOuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si5566446edr.185.2020.07.02.03.10.37; Thu, 02 Jul 2020 03:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=Ga4jYOuv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbgGBKKL (ORCPT + 99 others); Thu, 2 Jul 2020 06:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbgGBKKL (ORCPT ); Thu, 2 Jul 2020 06:10:11 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20FDDC08C5C1 for ; Thu, 2 Jul 2020 03:10:11 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id b4so25028065qkn.11 for ; Thu, 02 Jul 2020 03:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MNkwKZ84Zrawk816auciDQTYwDrs9ybRS0FVRLuLd9I=; b=Ga4jYOuvR8MX3nF2I6L7nPH0rm/ZyxshqRb5F4+rL33+Dnnyb7FevBZZ90KDsvrHKV WgfFd92ZJh5hmBt1OEWYUt4vNpzYROC9C4LhqphBIgEmjRIuA2uLoAqnId7O9xEpBOUs Nla0Wih4ZFy2hHQ3+TBKtg2SY7KBhlFLwmoyxSWCgb0u9AhCwZrAPgE2nWZbdmGIRdHO Bn+d7Dg/YVemE9LvZSnqhR+jUeppn8wUwMia4TUXkC/w3ps8MVS8IgrrSDC0yol2L1RR 2t/1JL25f6Pb6bomI8yC4grazve3xpODK2cXQrPtDv5FgiCe0uQ6kj9ytlhs6OXRwq6F X/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MNkwKZ84Zrawk816auciDQTYwDrs9ybRS0FVRLuLd9I=; b=CKye+JRNarVNS1ecMl3M7YjPpl1irH53Rly4FIbO6xjNbrBfHotUZopzc4613290Wh lNkKLor1kr2XUB8ZKIxfFAv1IItPCj1Kev7+ctDXbthd9mNJ97K7Sbke9zj2DLgT9Eny nzy87QON4RqYY/nOl2N4N7zWt+V+0zbrgQE6h02clY9uitiBnqtbNqEDm1ML4aCBhDt0 vheASt58Qje3I7ALTThXy55oUsIhs2nXjgN4/dZ7qOaPgLNnoVday8r2Ywxq2QECrGCJ S/FDNjW4fluRvlMH1fuB6j/UeiKMQ7Nokhslyab8EzrOoOqf2iQEM8EI4yGPmstW8Nk3 r8Kw== X-Gm-Message-State: AOAM5308J09xWd2JLOVDL2jkTXqWWBERLy98f+8TY2mzeRKjn8q4soeA xNc5Y4ky3vd0znZAWx0zeKCQD+aBmApJ1y/UAoNyNg== X-Received: by 2002:a37:2781:: with SMTP id n123mr29703103qkn.106.1593684610371; Thu, 02 Jul 2020 03:10:10 -0700 (PDT) MIME-Version: 1.0 References: <20200521162518.1809995-1-lma@semihalf.com> <3c89e614-81f5-ba87-19a9-fbe9f5c73925@linux.intel.com> <475fb5c0-9b26-a8f6-c102-25c7775bc2ca@linux.intel.com> <268b11b6-9f4c-d769-a7f9-536d77198705@linux.intel.com> <7e38bb2e-2132-d305-e94d-043fa53bd836@linux.intel.com> In-Reply-To: From: =?UTF-8?Q?=C5=81ukasz_Majczak?= Date: Thu, 2 Jul 2020 12:09:59 +0200 Message-ID: Subject: Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function To: Pierre-Louis Bossart Cc: "N, Harshapriya" , "alsa-devel@alsa-project.org" , Jie Yang , Radoslaw Biernacki , Ross Zwisler , "linux-kernel@vger.kernel.org" , Liam Girdwood , "M R, Sathya Prakash" , Bob Brandt , Marcin Wojtas , Alex Levin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I am also ok with Harsha patch. I have checked it on my Eve and it looks ok= . Best regards, Lukasz =C5=9Br., 1 lip 2020 o 19:08 Pierre-Louis Bossart napisa=C5=82(a): > > > >>> Tested and the following is something we can use without creating a n= ew > >> dailink. > >>> struct snd_soc_dai *codec_dai =3D asoc_rtd_to_codec(rtd, = 0); > >>> if (!strcmp(codec_dai->name, KBL_REALTEK_DMIC_CODEC_DAI)) { > >>> if (params_channels(params) =3D=3D 2 || > >> DMIC_CH(dmic_constraints) =3D=3D 2) > >>> channels->min =3D channels->max =3D 2; > >>> else > >>> channels->min =3D channels->max =3D 4; > >>> } else { > >>> rate->min =3D rate->max =3D 48000; > >>> channels->min =3D channels->max =3D 2; > >>> snd_mask_none(fmt); > >>> snd_mask_set_format(fmt, pcm_fmt); > >>> } > >>> > >>> Pierre, thoughts? > >> > >> thanks Harsha, that looks like what I had in mind, but my earlier ques= tion was > >> why we deal with the rates and formats only in the last case? > > The speaker codec supported only 16 bit. (Vendor mentioned) > > For playback on this platform, only 48Khz was used. > > ok then, as long as Harsha and Lukasz are aligned I'm fine. Thanks! >