From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5AD5C43142 for ; Tue, 31 Jul 2018 10:33:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86D2420857 for ; Tue, 31 Jul 2018 10:33:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86D2420857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731895AbeGaMMm (ORCPT ); Tue, 31 Jul 2018 08:12:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:39146 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730422AbeGaMMm (ORCPT ); Tue, 31 Jul 2018 08:12:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A4502AFE4; Tue, 31 Jul 2018 10:33:00 +0000 (UTC) Date: Tue, 31 Jul 2018 12:32:59 +0200 Message-ID: From: Takashi Iwai To: Mark Brown Cc: "Agrawal, Akshu" , Pierre-Louis Bossart , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Alexander.Deucher@amd.com, djkurtz@chromium.org, Liam Girdwood , open list Subject: Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function In-Reply-To: <20180731101943.GB5719@sirena.org.uk> References: <1532686422-1790-1-git-send-email-akshu.agrawal@amd.com> <66c8b8c4-bdd0-0129-5e5b-850890cfdb8d@linux.intel.com> <20180730155030.GP5789@sirena.org.uk> <7a88c7b4-d31d-b044-bb8e-a866d49d1256@amd.com> <5b3249cb-6212-6a14-b644-7548cf0ad00c@amd.com> <20180731101943.GB5719@sirena.org.uk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 31 Jul 2018 12:19:43 +0200, Mark Brown wrote: > > On Tue, Jul 31, 2018 at 11:25:11AM +0200, Takashi Iwai wrote: > > > It's not necessary that all CPU dais provide the pointer callback. > > My suggestion is that, if CPU dai *wants* to provide the base delay, > > it must be tied with the position value, hence it should provide the > > pointer callback. If CPU dai has a pointer callback, > > snd_soc_pcm_pointer() skips the component pointer callback but uses > > CPU dai pointer callback instead. > > However since it's not supposed to be providing any DMA a CPU DAI really > shouldn't be doing this... Well, if so, the CPU dai also cannot get the exact base delay corresponding to the reported position, either, no? Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [alsa-devel] [PATCH] ASoC: soc-pcm: Use delay set in pointer function Date: Tue, 31 Jul 2018 12:32:59 +0200 Message-ID: References: <1532686422-1790-1-git-send-email-akshu.agrawal@amd.com> <66c8b8c4-bdd0-0129-5e5b-850890cfdb8d@linux.intel.com> <20180730155030.GP5789@sirena.org.uk> <7a88c7b4-d31d-b044-bb8e-a866d49d1256@amd.com> <5b3249cb-6212-6a14-b644-7548cf0ad00c@amd.com> <20180731101943.GB5719@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20180731101943.GB5719@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: "Agrawal, Akshu" , Pierre-Louis Bossart , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Alexander.Deucher@amd.com, djkurtz@chromium.org, Liam Girdwood , open list List-Id: alsa-devel@alsa-project.org On Tue, 31 Jul 2018 12:19:43 +0200, Mark Brown wrote: > > On Tue, Jul 31, 2018 at 11:25:11AM +0200, Takashi Iwai wrote: > > > It's not necessary that all CPU dais provide the pointer callback. > > My suggestion is that, if CPU dai *wants* to provide the base delay, > > it must be tied with the position value, hence it should provide the > > pointer callback. If CPU dai has a pointer callback, > > snd_soc_pcm_pointer() skips the component pointer callback but uses > > CPU dai pointer callback instead. > > However since it's not supposed to be providing any DMA a CPU DAI really > shouldn't be doing this... Well, if so, the CPU dai also cannot get the exact base delay corresponding to the reported position, either, no? Takashi