Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp418512pxa; Tue, 4 Aug 2020 08:37:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvHA77Z5OWT8bIsNLheOH9YoEnuDjq0XEOwMWBClAm5p107rsVTwV9lV9YiYH1Yykev5Tf X-Received: by 2002:a50:cf09:: with SMTP id c9mr21809810edk.90.1596555426919; Tue, 04 Aug 2020 08:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596555426; cv=none; d=google.com; s=arc-20160816; b=OcZKJ3zyRBIdlplHE/M2a8/2VIaIfgZzq+9teXHEKwTJxtrkzvOVGR3j4aFADeKQ+4 7PcOZi8GPh6ri4JdU1u0fOLMDCkZAUssi2AjliV6Fy5TyVl8F0LrEbZftJARyeCFghC+ 7zCtLjgJEhFMOiXc81r33/BPHunr/TBNGtzd82T7ZUX3F8tgML1O3Mz8IfStAeEvCYzR a+09M8SvEJWcagTtbUPb6QiGxz9w0MVmMgeSIl/EVhmJNGpV5SB43dGi+oCbTRw+uruB WBtdD029EBC8sx8GBxqQx/fcKdPg3pkQMz+1t9SVHgY8Ma/pDOwnsga5pPRr7l9Z8X4x RWLg== 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=qjM9Du4klDMgqe8Dxept++nMIkY4AV6Ebb1G685gHEE=; b=qU5V0+csE/c1L/6eHUX0HDZPCqVtBXqL8MRq60pAewRgRCO9vVhZN3ShZyi92NAIBS o9coTsYWiGLrkjY06f2IFTnv9YcbJOst2cqAjJbQV0VKLyqmV3cFs4KNH6+Qvx9wVysf TjCzsr6ZLVxDRlHNDoMurOx2f4v39uMBxUtis+YWGR3m8HLieFy4ri8ALRLwgyGZpLnH 3ylwcUrqZIi/fLpIR5Uyy1UgPrx2StTJBrUDttmqsgxCrV/hLO5r47V3Ld8zQHmx7H5K dIEsexsi6kvxHmtnNSO+Q5jJLwO8nGf7V47iFoKqErHx0Lm2P0jFAJxj07OaXE3U7tL8 FYcQ== 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 cb1si12793491edb.88.2020.08.04.08.36.43; Tue, 04 Aug 2020 08:37:06 -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 S1729699AbgHDPfq (ORCPT + 99 others); Tue, 4 Aug 2020 11:35:46 -0400 Received: from mga02.intel.com ([134.134.136.20]:32603 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729532AbgHDPfn (ORCPT ); Tue, 4 Aug 2020 11:35:43 -0400 IronPort-SDR: mpwZN6Xl5KDAcijaqCutLVCHH0yHeHoghHs5/BNexlg92SVYWwBTg24sO2ijzI8cUW5MCdWO4w fQBxdYFnawGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9703"; a="140251682" X-IronPort-AV: E=Sophos;i="5.75,434,1589266800"; d="scan'208";a="140251682" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2020 08:35:42 -0700 IronPort-SDR: JpDZzfp+0iIkXsi8g7rRgEZzjD9nahjbHNdVjADLj0+eMaV568fu/6U0GZlTecg4lcA9B0BwDU rRZdPfLw5rVg== X-IronPort-AV: E=Sophos;i="5.75,434,1589266800"; d="scan'208";a="288602863" Received: from gggmerek-mobl.amr.corp.intel.com (HELO [10.212.131.193]) ([10.212.131.193]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2020 08:35:40 -0700 Subject: Re: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board To: "Lu, Brent" , Takashi Iwai Cc: Guennadi Liakhovetski , "alsa-devel@alsa-project.org" , Kai Vehmanen , Kuninori Morimoto , "linux-kernel@vger.kernel.org" , "yuhsuan@google.com" , Takashi Iwai , Jie Yang , "Rojewski, Cezary" , 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> <1596198365-10105-1-git-send-email-brent.lu@intel.com> <1596198365-10105-3-git-send-email-brent.lu@intel.com> <63bca214-3434-16c6-1b60-adf323aec554@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <6466847a-8aae-24f7-d727-36ba75e95f98@linux.intel.com> Date: Tue, 4 Aug 2020 09:24:49 -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 8/3/20 11:33 PM, Lu, Brent wrote: >> >> For avoid further misunderstanding: it's fine that CRAS *uses* such a short >> period. It's often required for achieving a short latency. >> >> However, the question is whether the driver can set *only* this value for >> making it working. IOW, if we don't have this constraint, what actually >> happens? If the driver gives the period size alignment, wouldn't CRAS >> choose 240? > > It won't. Without the constraint it becomes 432. Actually CRAS does not set > period size specifically so the value depends on the constraint rules. I don't get this. If the platform driver already stated 240 and 960 samples why would 432 be chosen? Doesn't this mean the constraint is not applied? > [ 52.011146] sound pcmC1D0p: hw_param > [ 52.011152] sound pcmC1D0p: ACCESS 0x1 > [ 52.011155] sound pcmC1D0p: FORMAT 0x4 > [ 52.011158] sound pcmC1D0p: SUBFORMAT 0x1 > [ 52.011161] sound pcmC1D0p: SAMPLE_BITS [16:16] > [ 52.011164] sound pcmC1D0p: FRAME_BITS [32:32] > [ 52.011167] sound pcmC1D0p: CHANNELS [2:2] > [ 52.011170] sound pcmC1D0p: RATE [48000:48000] > [ 52.011173] sound pcmC1D0p: PERIOD_TIME [9000:9000] > [ 52.011176] sound pcmC1D0p: PERIOD_SIZE [432:432] > [ 52.011179] sound pcmC1D0p: PERIOD_BYTES [1728:1728] > [ 52.011182] sound pcmC1D0p: PERIODS [474:474] > [ 52.011185] sound pcmC1D0p: BUFFER_TIME [4266000:4266000] > [ 52.011188] sound pcmC1D0p: BUFFER_SIZE [204768:204768] > [ 52.011191] sound pcmC1D0p: BUFFER_BYTES [819072:819072] > [ 52.011194] sound pcmC1D0p: TICK_TIME [0:0] > > Regards, > Brent > >> >> >> Takashi > >