Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp597786ybz; Wed, 15 Apr 2020 14:51:17 -0700 (PDT) X-Google-Smtp-Source: APiQypI9FxAfq43x5d61C2YMbHN+MLckZ0kuzOXNNiC6Gpf33nSukqrpxguHi8OPYLhHXe3zOD8x X-Received: by 2002:a05:6402:17aa:: with SMTP id j10mr25979833edy.146.1586987477404; Wed, 15 Apr 2020 14:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987477; cv=none; d=google.com; s=arc-20160816; b=E3pHMdCgVv0JY+nNHgcol1uUCCK6Kf23bHQgnBb7nXWyP6sUJEuKit9iVu/Dljnro1 8hyupz0YWoUnuzw1uYzoLK6yOjNIgBIE4LTyWA8STLTl5FYG0VmVwiJPtKb7DEss99uT mEd+OGqOoxy0Ugvzc3NnwILbfmS4BkRreOXQFy0n64I4r4wAybzcSH8fnxd4aJeijF5R +qTbIrmDadYb44z6Dc2mWzey4r1x252FJVlB2wz8uo3jzX1zTDGaCYNBJBaPE9UmRabW 6Y00U6SobfmSXfDPWrEW+0w1vL0HDRYS+jhwZ/Jv4PjNUenkoyvhKh1QIVkDBDeR3Pba Rfbg== 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=uPGNCabSMOhyKKg+FDqJj1z5cYOTP9DKxGUg3ck1tg8=; b=iXu17BX43rgV+g5pAqPK6SfkY3tzGv2nWSSW3samFTdPsQYecI90oktyVyn8h+56O7 8oGgy62WUuSF/bHOcgOF1obz4jo0/Z8Rybj6ZPg9FUgle0zHC82Emerld/8KEfncxWKb zsoXX/VrZgYqBLDAH6nEL0mtzmVZssuScNTk0VJY0MvPV96lOSx3IVqHWicUd2Le6jeA O+CsMqO5OTr88Q0o0t9yMPhT1gOKJjr7b8CKa472thcSy6QH5RT0YxaNwOLT8CD6EMHh 9Eq6GRP6HswN5eliova/vqkvOI4xu6W3IFF1q+9a1xHxPybXYAvVRB0CqI5Er4yNZKTX kDKw== 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 b98si10542103edf.42.2020.04.15.14.50.53; Wed, 15 Apr 2020 14:51:17 -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 S2504486AbgDNSyF (ORCPT + 99 others); Tue, 14 Apr 2020 14:54:05 -0400 Received: from mga09.intel.com ([134.134.136.24]:25328 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504434AbgDNSyE (ORCPT ); Tue, 14 Apr 2020 14:54:04 -0400 IronPort-SDR: cLw27pjfhl03m3Z5KJ4KurPrcVHYPtVLSC9oxY5/UzjqD23GnSjHZ/Zs3wh3A8E1HE86sGxZxc xDERD+K7QDWg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 11:54:03 -0700 IronPort-SDR: hoN/JjJah2VUqWKnTwlrf7C3VPLIlSMNSn/PJq4GuJetvLLjSlJI+Hy1urbgwRtKxsxZSt2RKB y0j8foxGrwzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,383,1580803200"; d="scan'208";a="253280689" Received: from svarahab-mobl.amr.corp.intel.com (HELO [10.212.190.40]) ([10.212.190.40]) by orsmga003.jf.intel.com with ESMTP; 14 Apr 2020 11:54:00 -0700 Subject: Re: [PATCH v2] ASoC: bdw-rt5650: remove 3-channel capture support To: "Lu, Brent" , "alsa-devel@alsa-project.org" Cc: Guennadi Liakhovetski , "Rojewski, Cezary" , Kuninori Morimoto , "linux-kernel@vger.kernel.org" , Takashi Iwai , Jie Yang , Liam Girdwood , Ben Zhang , "Chiang, Mac" , Mark Brown References: <1586766533-18557-1-git-send-email-brent.lu@intel.com> <9a484795-ea4a-e559-4ea9-3de24417ec9b@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <4b9455cb-d0d2-f5d8-f04c-df6e5abb4441@linux.intel.com> Date: Tue, 14 Apr 2020 13:53:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/13/20 9:29 AM, Lu, Brent wrote: >> >> That looks like an error caught by the ALSA conformance tool? >> >> What are the odds that we have a similar issue with the other broadwell >> drivers which don't have a constraint on the number of channels either on >> their 'System PCM' dailink? >> >> Thanks >> -Pierre >> > > Yes. That's why I am sending patch for this old BDW platform... > > So far as I know only 'buddy' supports 2/4-channel recording while other BDW > Chrome products should support stereo recording only. Therefore, this defect > should only be triggered by the ALSA conformance tool. > > I am think about implementing the constraint in FE DAI's startup() callback > instead of DAI Link's callback. Since the channels_max is 4 for the capture > stream, ALSA conformance tool will always test 3-channel recording on any > platforms using this driver. Does it make sense to you? Looking back at previous threads, you indicated that the number of channels supported in propagated from BE to FE, so a similar patch to add 2ch constraints for bwd-rt5677 was dropped ("ASoC: bdw-rt5677: channel constraint support") Actually I am not sure it was dropped since later you submitted another patch ("ASoC: bdw-rt5677: enable runtime channel merge"), and my feedback was that it seemed simpler to add constraints on all machine drivers. And now this patch only addresses bdw-rt5650.c but with the initial solution suggested for bdw-rt5677.c It seems like a generic problem on all Broadwell devices so let's solve with one a single patchset. Shouldn't we just add the 2ch constraints for broadwell.c and bdw-rt5677.c, and the 2 or 4ch constraint for bdw-rt5650.c? Would this work for you? Thanks -Pierre