Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5694446ybe; Tue, 10 Sep 2019 07:32:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxePEBxZzMjY3C7CGoikMKwRWEKnHmQE8KMtar//ZMqVN6Oplyqx5CXTKX7v7cUxb+sPh1g X-Received: by 2002:a17:906:1d45:: with SMTP id o5mr25644112ejh.251.1568125933974; Tue, 10 Sep 2019 07:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568125933; cv=none; d=google.com; s=arc-20160816; b=rnVppg5LJ5Yf3tY0uB3ljSPiihWiGh9utYUX88OMyPqPX6mf5S8iGrFtQC1n2ybBAB llxvJL8igfgh9/CPhAHJEyWo5rCjeY5f56R7TRJprRVzLwoXxncY4lH1X7m9cmdzIFx5 3FpZUKjBgfchV/9/xUb8BHbJdwW1cD1JMazaDVH4hawXzZ6WW6dixB4s2b76Q6SCG2EA Fuh4Jayw2zpjRaSdHH7/CUHIf80/j657qJsZIR9iR3/s1HwnYjO1MFVG5Jauy8eCre9h fkz4rHKu9GJO2vorAsW3KI1wMoibtDANBR7nFVbaOGo9l233+2iVdjEe0ncxULiRtcO+ 6SDQ== 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; bh=48b8pguP2cpcwfrzajo4XpeUz6Z99qYDakp0apBqSHs=; b=W/P6rG6tobVVaOYQSo5Esc68rRpPx/2+Uyzo2X9IqiHDvegfQKwlXWbOJ6pCz7Q6zk 2P3rl8+7a0dSlqJ3cMZeTCQ7/8hHT5OcXVXDCXwODTaPYv7Iyr4kAMWxVr7P0DvQhkUf 5PuF31Ouo8B3kCbQjUp5c1NQxiHL7qDY3e+iJFes1pKUU2Jj9ylYJiPW2Tr9tUchgFwp WvSduHwYi0K/QLEE1zvrROA9SCQdP2kTnRBydPHtqOasPurSebdBHJ6vXEDk60xLyRbg lx1evSyAoSmBlAv6jPO/SSla0OOrCAxywGLpn5/VWdDjyZsWGMjJBMIhmFTcCBDK2cmf 7wKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f17si13575971edf.328.2019.09.10.07.31.48; Tue, 10 Sep 2019 07:32:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387910AbfIJOM0 (ORCPT + 99 others); Tue, 10 Sep 2019 10:12:26 -0400 Received: from mga17.intel.com ([192.55.52.151]:44204 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbfIJOMZ (ORCPT ); Tue, 10 Sep 2019 10:12:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2019 07:12:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,489,1559545200"; d="scan'208";a="186862805" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP; 10 Sep 2019 07:12:25 -0700 Received: from wkhong-mobl2.amr.corp.intel.com (unknown [10.255.34.248]) by linux.intel.com (Postfix) with ESMTP id EA9DE58044E; Tue, 10 Sep 2019 07:12:23 -0700 (PDT) Subject: Re: [alsa-devel] [PATCH] ASoC: bdw-rt5677: channel constraint support To: "Lu, Brent" , "alsa-devel@alsa-project.org" Cc: "Rojewski, Cezary" , "kuninori.morimoto.gx@renesas.com" , "linux-kernel@vger.kernel.org" , "yang.jie@linux.intel.com" , "tiwai@suse.com" , "liam.r.girdwood@linux.intel.com" , "broonie@kernel.org" , "tglx@linutronix.de" , Ranjani Sridharan References: <1567733058-9561-1-git-send-email-brent.lu@intel.com> <391e8f6c-7e35-deb4-4f4d-c39396b778ba@linux.intel.com> <29b9fd4e-3d78-b4a3-e61a-c066bf24995a@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <99769525-779a-59aa-96da-da96f8f09a8a@linux.intel.com> Date: Tue, 10 Sep 2019 09:12:15 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 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 >> I also don't see any case where we support 4 channels in any broadwell >> machine driver? > It's the bdw-rt5650.c which only exists in chrome's 3.14 branch supporting Buddy > project. They submitted the machine driver but not yet merged. > > https://patchwork.kernel.org/patch/11050985/ > >> >> So again can you point me to an issue or existing backport that requires the >> patch below. Not trying to be obtuse but we should only change older >> platforms when there is evidence that a change is needed. > The story is Chrome has a tool called alsa_conformance_test which runs capture or > playback against a PCM port with all possible configurations (channel, format, rate) > then measure if the sample rate is correct. Since the channel max number reported > is 4, it tests the 4-channel 48K capture and reports the actual sample rate is 24000 > instead of 48000. That's the reason we want to add a constraint in machine driver to > avoid user space programs trying to do 4 channel recording since this machine does > not support it in the beginning. ok, that helps get context, thanks for the details. I would have expected some error to be returned if there's a front-end opened with 4 channels and the back-end only supports two. Adding the constraint seems like a work-around to avoid dealing with the mismatch between FE and BE. I don't understand DPCM enough to suggest an alternative though. Ranjani, can you help on this one? And even if we agree with this solution, it'd be nice to apply it for the Broadwell machine driver for consistency.