Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1625405ybk; Thu, 21 May 2020 11:12:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBVFP5JEBgKhTpukaDTI3DhYc3tXTv45aVImQlERRV1Id9xGVE59QiOE1qeN+NWluM29ZB X-Received: by 2002:a17:907:447c:: with SMTP id oo20mr4646912ejb.385.1590084772444; Thu, 21 May 2020 11:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590084772; cv=none; d=google.com; s=arc-20160816; b=nuRDllfTcOqGvte6qNW+r+ri3V/PVsYMKAkixptmLEJbzlG6yFWj452z53/v0HdIxJ B+qcN32fPy+TMz7b4mCaMqPOPnegpmwLmm4QE+rvOwUvqLPdru+3cPCaJRzNf1gPS+G8 b5Ndym27kPyBw2RL5wCW5K6dxrDElbJLj3/dEdYRERBm10waMo8hdISZbJd0jLlLyYvM fdaKi2jzCVcekwvyV3Dqnwn2cak4chmDRQX485EC3qYtH5BBJ4/D+VgG/kNIwnZ882Z+ HnXf7D7greOTlQg6e6+w+EiEiLFAzgslsy/ltqJfjwVDR8sFCFdNN/6Sj3ZWsSz2zttH /OSg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=vho4HHwtMeJkv6dr8Su0zFmi83vt0jpnpyunNIWrhjM=; b=uNyyXArMPlreBWhbtlX+5QqZg+864CyrSS8MgZPhL4c9lzCGsp50km4lGbFlodCTI4 RKKikrV09mc8eL+opE9934R8db4PjBAb/exb8y4V00iKX1tBQGPF7FQXZdddmbUFs3Tu /XJyg8rqT24xhlQQXkwInoLm8WNi5azBtuP006I8m6fwByfHqoOAA2X+gWC7SHgelC93 qK6s8y4YuL8rE+LMRreC9FCVbKFqbZqdvJzTf5Ci86QFr5vjwC9Bkzx/aJKbcalgG0zC uXnvaES2pynAsQaYnCUBHpa3yeKAhGLUCccqJr+YRSPvOBV7RXByJRkkshSFnlSlbYaB 9okA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si3717101eju.743.2020.05.21.11.12.29; Thu, 21 May 2020 11:12:52 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729183AbgEUSK4 (ORCPT + 99 others); Thu, 21 May 2020 14:10:56 -0400 Received: from mga06.intel.com ([134.134.136.31]:21653 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbgEUSK4 (ORCPT ); Thu, 21 May 2020 14:10:56 -0400 IronPort-SDR: 3zziwMNeLeZykRN5RmtUL7C+ztk1ZPBnV/xR+8QlotFFZ2Nhrt+9z6OtxJ/hB8DDn6+mYbtbo6 K0UiSVun8SEA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 11:10:55 -0700 IronPort-SDR: JCuh9H/hp4YFzm3n4ukF0/9cPkRoVB2FWwSZl79U6XjFPyn3ZlfO784xWpxfyjmANOsbTNVHqS zGY1qBPYO/7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,418,1583222400"; d="scan'208";a="254062243" Received: from dsrao-mobl.amr.corp.intel.com (HELO [10.255.229.80]) ([10.255.229.80]) by orsmga007.jf.intel.com with ESMTP; 21 May 2020 11:10:54 -0700 Subject: Re: [PATCH v3] ASoC: Intel: kbl_rt5663_rt5514_max98927: Split be_hw_params_fixup function To: =?UTF-8?Q?=c5=81ukasz_Majczak?= 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 , Harsha Priya References: <20200521162518.1809995-1-lma@semihalf.com> <3c89e614-81f5-ba87-19a9-fbe9f5c73925@linux.intel.com> <475fb5c0-9b26-a8f6-c102-25c7775bc2ca@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <268b11b6-9f4c-d769-a7f9-536d77198705@linux.intel.com> Date: Thu, 21 May 2020 13:10:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/21/20 12:30 PM, Łukasz Majczak wrote: > 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. I don't understand this code either. I believe the intent is that for all SSP1-RT5663 usages, we should use rate->min = rate->max = 48000; chan->min = chan->max = 2; snd_mask_none(fmt); snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S24_LE); That is pretty easy to move to a dedicated ssp1 fixup. for SSP0, we have RT5514 for capture and max98927 for playback, but the existing code does not explicitly deal with rate/channels/format for all cases, so it's not clear what should happen. Harsha, can you help here? > > Best regards, > Lukasz > > czw., 21 maj 2020 o 19:17 Pierre-Louis Bossart > napisał(a): >> >> >> >> On 5/21/20 12:08 PM, Łukasz 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.