Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2036318ybg; Thu, 30 Jul 2020 08:48:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk8YIc3X8JoTOnei6mk19+6VQ5++cKSFPpR7fcL0fDpSJXUhi5o8yll75lidzLiUm7ohYM X-Received: by 2002:a17:906:700f:: with SMTP id n15mr3336877ejj.390.1596124115489; Thu, 30 Jul 2020 08:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596124115; cv=none; d=google.com; s=arc-20160816; b=HQWNqIP3ErziVYWpwhIl5XG7JrgCg8ES17gLTgsAtb3igqBzgbg8uCX/sZcBnLPjAp CX+uC0F/AmHMAbwOjOSpA5tMb0R3d8/kbZBr1MLADDOjXwGqszWij6ZqDzBcPWa7gWLz 2nQsIiZJAZitJe5THTfNEwJKXBJoWL5F+wvYwEqJIlwZZf0BRM5SYqQ0FW7XVgAnpaN2 b+K0Eon//6psAtPEWt6m3SUJxA4MEis88pAbB9HkGDUMv0ZZ7V6zYwQOuVC6C5nAPO2h XHkMq+tsmIDrh/jN1LDUDmWLzKiniZGHnThoedj4nQJCI8BalzsYMyurWjVFwz59z/ad 8KtA== 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:references:cc:to:from:subject:ironport-sdr:ironport-sdr; bh=mXmYyI5H3m7+RoTY6RdOPM7tPTqaX+VnglaGTbr4e3Y=; b=vY0JE3tEX8EGO3pDHRr4iFg3Xx7gsPjC4WLRd4vuc4j4OEEGJWF9WO+DiCeK2RtSbb YeFO5c4uFeAB9jntdAqGGfzsvcFzb9uAKTmEhsk8M0TuoakVkeahADWj7kVsaVitK9xD ENSBucDi7FHgLppe1GXyCZ3x1GmmX8I65tsHejUI1Rdf4rGCNeJvywfyBnjAhengM+yT jKE4F/577O8UoVG6oo72EiaDacW7P+JtDc0YR4OYGuGKvdZlwGHP+Bdf+dgsUnpKypEk JyQ0RoWV4g98bfT+OZypS8SvrPu2OhE6xTszHNG5OXUUNUFytxkaY5aZroycGnKzA6CW kZRw== 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 mb9si3235034ejb.536.2020.07.30.08.48.12; Thu, 30 Jul 2020 08:48:35 -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 S1729863AbgG3Poy (ORCPT + 99 others); Thu, 30 Jul 2020 11:44:54 -0400 Received: from mga01.intel.com ([192.55.52.88]:64857 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729484AbgG3Pox (ORCPT ); Thu, 30 Jul 2020 11:44:53 -0400 IronPort-SDR: TIR6l2DGrofJF3PaleNR+Vt77Ae4qR4Cdp4TlpZruvf2aPV75wDaAgQoHvBoAr5eXt5bWYm4a2 uV6cgeXNVPQg== X-IronPort-AV: E=McAfee;i="6000,8403,9698"; a="169741992" X-IronPort-AV: E=Sophos;i="5.75,414,1589266800"; d="scan'208";a="169741992" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2020 08:44:52 -0700 IronPort-SDR: BaDDVqq1GqCh5P3//G0SQJkoDZ+wJwOxaBVXR86DpT6KgejRLnM2kmkD5ysie2SG0I1YNg4Dog CTWy6xxIrUcw== X-IronPort-AV: E=Sophos;i="5.75,414,1589266800"; d="scan'208";a="465284728" Received: from jrwang2-mobl.amr.corp.intel.com (HELO [10.212.82.25]) ([10.212.82.25]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jul 2020 08:44:49 -0700 Subject: Re: [PATCH 2/2] ASoC: Intel: Add period size constraint on strago board From: Pierre-Louis Bossart To: "Lu, Brent" , "alsa-devel@alsa-project.org" Cc: Guennadi Liakhovetski , "Rojewski, Cezary" , Kai Vehmanen , Kuninori Morimoto , Jie Yang , Takashi Iwai , "linux-kernel@vger.kernel.org" , Liam Girdwood , Sam McNally , Mark Brown , Ranjani Sridharan , Daniel Stuart , Andy Shevchenko , Yu-Hsuan Hsu , Damian van Soelen References: <1596020585-11517-1-git-send-email-brent.lu@intel.com> <1596020585-11517-3-git-send-email-brent.lu@intel.com> <4fe97f63-e552-3b2f-803c-53894b196bfd@linux.intel.com> Message-ID: Date: Thu, 30 Jul 2020 10:44:47 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.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 On 7/30/20 10:27 AM, Pierre-Louis Bossart wrote: > > >>> Is this patch required if you've already constrained the period sizes >>> for the >>> platform driver in patch1? >> >> Yes or alsa will select 320 as default period size for it. > > ok, then that's a miss in your patch1. 320 samples is a multiple of 1ms typo: is NOT > for 48kHz rates. I think it was valid only for the 16kHz VoIP paths used > in some versions of Android, but that we don't support in the upstream > code. > > To build on Takashi's answer, the real ask here is to require that the > period be a multiple of 1ms, because that's the fundamental > design/limitation of firmware. It doesn't matter if it's 48, 96, 192, > 240, 480, 960 samples.