Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5338427ybv; Tue, 11 Feb 2020 13:49:42 -0800 (PST) X-Google-Smtp-Source: APXvYqxM5MxfCN3Kzt2IFZslkwEMGVm1uuFUwAzxm1F9wB5zPv+Um0lHBnva9ks71wxTxObBhNQW X-Received: by 2002:a05:6830:1184:: with SMTP id u4mr6490775otq.221.1581457782285; Tue, 11 Feb 2020 13:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581457782; cv=none; d=google.com; s=arc-20160816; b=LP5Hk468mHAnD/OD46zQw/TB/D//yuQTbbT38bCmNxRNuBogopfl/cMw/kr2o9DA+0 dTEEv8EEPJpId8o/1ZyPRGTGcQUyTAYLd8vtL2YIboyTezGzvPoCNzeqUFhbp/Pfqnts t0+F3AZI8FudtaS/DV5sKYndk2I/XmZF8L43g9dPMW0CZcLt6nnLRtaYmtnZekmTxfJI D+wGR/fCoSlvVfQNA2ufA3To4quMLbIw2JuL/49RRBVuU/GQSjXLY9Owu9yXTsRiGPnY qOh7/cPdwEOavV4ZHUiYK43SjnuoTOx1LOKVLqwyrJlxUCKGoqNnBNNP5TpR0CqBDABj v4Pg== 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=Uu3JIGRh0M4xE9B8aEAyBwgu+K2WIMiLxaiOsqN/FUY=; b=SGPtJkbzf/zqXG6ryRyX7m7epMT69tDvjEzSXH8dECJILE20EL6udgzm/dbe6mcrxy zEnQYvqPJMtJMHZnFKRMbzq4FdAmGhCXC5haYeRLGYNH60sRbwfBgVixRnftcadPKoS5 aLZoKe1OjIjueYnUsVkLXKa9gmy2tjUGmTcADLjGW2tvmiU4ivMFo5GPQczr+6oYhHWu 6gMJYOlR8pC44ypGF2GILprb9iGPBPyI1/gTQcudMron5kwceFRtF/0TaLYuB8eVNY+K IVeTw/i9aTjPdjNDvyejByxRBfIOtBjpNKQTSju82UptukytPk656kQOVDFD8q4d5Owo tM5w== 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 a13si2722752otq.201.2020.02.11.13.49.30; Tue, 11 Feb 2020 13:49:42 -0800 (PST) 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 S1727566AbgBKVtK (ORCPT + 99 others); Tue, 11 Feb 2020 16:49:10 -0500 Received: from mga06.intel.com ([134.134.136.31]:21187 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgBKVtI (ORCPT ); Tue, 11 Feb 2020 16:49:08 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 13:49:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="256613513" Received: from lmgarret-mobl2.amr.corp.intel.com (HELO [10.251.152.253]) ([10.251.152.253]) by fmsmga004.fm.intel.com with ESMTP; 11 Feb 2020 13:49:06 -0800 Subject: Re: [alsa-devel] [PATCH] ASoC: da7219: check SRM lock in trigger callback To: "Sridharan, Ranjani" Cc: "alsa-devel@alsa-project.org" , Support Opensource , Takashi Iwai , Liam Girdwood , "linux-kernel@vger.kernel.org" , "Chiang, Mac" , Mark Brown , Ranjani Sridharan , Adam Thomson , "Lu, Brent" , "cychiang@google.com" References: <1581322611-25695-1-git-send-email-brent.lu@intel.com> <855c88fb-4438-aefb-ac9b-a9a5a2dc8caa@linux.intel.com> <2eeca7fe-aec9-c680-5d61-930de18b952b@linux.intel.com> From: Pierre-Louis Bossart Message-ID: Date: Tue, 11 Feb 2020 15:49:06 -0600 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 >>> Are you talking about the change in this commit acbf27746ecfa96b >>> "ASoC: pcm: update FE/BE trigger order based on the command"? >>> >>> We made this change to handle xruns during pause/release particularly on >>> the Intel HDA platforms. >> >> this change was just to mirror the behavior between start/stop, I >> thought there was a patch where we moved to TRIGGER_POST by default? >> >> What I am trying to figure out if whether using TRIGGER_PRE is ok or not >> for the SOF firmware. >> > > Ahh yes, it was part of the same series as this one. fd274c2b7267b "ASoC: > SOF: topology: set trigger order for FE DAI link" > > TRIGGER_PRE won't really work in the case of SOF. We need the BE DAI to be > triggered before the FE DAI during start to prevent the xruns during > pause/release. Thanks Ranjani. That information closes the door on the idea of playing with the trigger order suggested earlier in the thread, so my guess is that we really need to expose the MCLK/BCLK with the clk API and turn them on/off from the machine driver as needed. I hope is that we don't need the FSYNC as well, that would be rather painful to implement.