Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1600136ybk; Thu, 21 May 2020 10:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyefNrrKRCkc4FDFQaFOQPUHW2VJz90SmkOXJbSZKSlWG3WvgFDLaB/k7ORmZol5NfPIdij X-Received: by 2002:a17:906:3509:: with SMTP id r9mr4411749eja.382.1590082500160; Thu, 21 May 2020 10:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590082500; cv=none; d=google.com; s=arc-20160816; b=UqEuLbgWVEsp1LQFFQM7R+qu+M3eSA66d4Uz3V8Ba2rVDJgX4ZPdJjwD82NZRNOBYR rOFyrs4pO2jICpSqGX71/7ofUKUXlOzhUNXaoZz2xYuXBRzcr+plOuiW60Bvk9XCAjzU YSdxXDnvSwAff4b8j4j0F4L1zayjoD27xGcI/R/hXxnQFcHgCl8rTaNdUTukD+qnPQsX xNYqrA2jrvuamYmuq3ec6DsTJVfZDn9G0m5I0L3W1GWx6zsouDG8sctf39hcmiIceAhn LH0yfcpuB4wg42N+tndm5OpODFYqJ57+1LorXz6NaAVhmZvbg7zqKT5YWOTrO7TT37+T svCA== 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=oCCuryYDlFG9YsC0tOz8Jhkle66x4DRPsKGwzs4uWUY=; b=w8BC+CWJqEygq/SVYfDULm5wGca9Mii57Of2iRPbAb4RxPbIgKkZMQuJdTsGpAjUK6 CfTh+Vdtfm5TVcJcx5PmFtqLpx9RsnNkvzHf1l5wcAjSGWmk6peMGOSSABjq8oUYDOFh bImiR0T0Sad0QMheVEetQirjMJ8myPFiBzqVT/CNQLdACKKUTu7QXC8YI98NLKElYIye hB/oXvj4jPPqwsM5epdMqP7W+aMoIjALgMg1MA6zR8cPTQPruz4rUOvuPpCdWIBXFfkO jKI8kEYvJQERn/kXqdYVYLMNxVG7IQM3spJEwVoPhXBfDTd4jz2diluaEB6BjxewffQS zWvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=s+fpMnTF; 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 z7si3676935ejr.274.2020.05.21.10.34.37; Thu, 21 May 2020 10:35:00 -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=s+fpMnTF; 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 S1729011AbgEURbB (ORCPT + 99 others); Thu, 21 May 2020 13:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726821AbgEURbA (ORCPT ); Thu, 21 May 2020 13:31:00 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2A87C061A0E for ; Thu, 21 May 2020 10:30:59 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id e16so252359qtg.0 for ; Thu, 21 May 2020 10:30:59 -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=oCCuryYDlFG9YsC0tOz8Jhkle66x4DRPsKGwzs4uWUY=; b=s+fpMnTFFKbXedSk7ek0RZ/NmBP09zX/j/kZh3APCiqxD3VYd3tyNmjbY2ApPNIlGN VQuv8NzLXi/wf23hNmcDqwGwhxS4MW3dA2FFR6bMX0zhXU/Zo1C9FmqECPyrRzcoLFw/ sjyaScMHcTRYUj5k/d3WpxiCksLHpMmp7SsCMV3vFIR+L8F0ktzcm49jgxdjk2UMOS/T cOatk7DTmS2A9a7n6fi2V5CYbNy3vXKlqoy5sHvlpoq5ke0I1goOxpJ2gOmGqC4zWR5L 1XONoL1+2rx7Qp/aZxO/aVPdP9r4X4kQ4R1/5cQdiCqMxTaweZy9NSPCJXY6uSJgtvsp 2cmg== 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=oCCuryYDlFG9YsC0tOz8Jhkle66x4DRPsKGwzs4uWUY=; b=gBqx3IkE0bQ6O0uUfaRZ1HNLIKnqdNKGhXkxwReqC+eykTQ59cBNXpZxUQmX1LgKld FpBwcack5w6OgusSGFkJc6XKT+ixcF0vSBDoXxhQSl0+Yfzc2ZLc+puKcCyYv9rALVvy k+6/t5P0beuFW9F3NNIjy1tpzS/WDsM2RUB43OndPj4I8qVyxteBSbvUO8YPC3/XrtKy HJf91+LTIVRJpDs8OHuQtgpox34MVbHqDcgmX/YLq4YyqDAXVxaQCjXBhHkdbXIEUf/z Eu8I4u1hJ/GGV2IHllWJox+FBuF3Zzp1pWXMRlw9FCrQlVM+Niy5ElEO3tP7R6DNSWYK u62Q== X-Gm-Message-State: AOAM531Mgp0bGhQeSsKG/fM2/x/pofz8liud0hvvt4I7dOs7o5pNEpvq 0cUINXSt2Vu6wxw5ixy1ESJuBXctxhqoPritY29szQBRtMKOlQ== X-Received: by 2002:ac8:37a7:: with SMTP id d36mr12285965qtc.375.1590082259124; Thu, 21 May 2020 10:30:59 -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> In-Reply-To: <475fb5c0-9b26-a8f6-c102-25c7775bc2ca@linux.intel.com> From: =?UTF-8?Q?=C5=81ukasz_Majczak?= Date: Thu, 21 May 2020 19:30:48 +0200 Message-ID: Subject: Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, Jie Yang , Radoslaw Biernacki , Ross Zwisler , linux-kernel@vger.kernel.org, Liam Girdwood , 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 Pierre If you will take a look at the original kabylake_ssp_fixup() you will see that it is checking whether the related FE is "Kbl Audio Port", "Kbl Audio Headset Playback", "Kbl Audio Capture Port" or "Kbl Audio DMIC cap" - then for the first 3 cases it sets min/max channels to 2 while for the "Kbl DMIC cap" it can be 2 or 4, that's is why I'm trying to split this, but maybe I'm missing here something. Best regards, Lukasz czw., 21 maj 2020 o 19:17 Pierre-Louis Bossart napisa=C5=82(a): > > > > On 5/21/20 12:08 PM, =C5=81ukasz Majczak wrote: > >> > >> don't add a new dailink, this is not right. > >> > > Can you advise a better solution how to assign different fixup > > functions to mic and to speakers? I was looking at "dmic01" dailink in > > skl_nau88l25_max98357a.c as an example. > > I am not sure I follow. the DMICs are handled on a shared SSP, so how > would one set a different fixup? The word length have to be the same.