From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH] ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches Date: Wed, 7 Sep 2016 20:53:56 -0700 Message-ID: <20160908035356.mkk35s5gpcemifcg@atomide.com> References: <20160831194107.wijnbmdns2jjvzkv@atomide.com> <5af44090-6902-2ade-be78-378843757a0a@ti.com> <20160901145006.xr3ux63cg6f5bh7p@atomide.com> <20160902145604.nlixopwza76kfgbz@atomide.com> <20160902204049.uhp4oosu3oc4k5v6@atomide.com> <7d1c9a2f-60ae-2d83-f7dc-55fe476dbccb@ti.com> <20160906201649.fx4vhuqmnziwshoe@atomide.com> <1b82e33a-7db5-81ed-de4f-75847f840088@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from muru.com (muru.com [72.249.23.125]) by alsa0.perex.cz (Postfix) with ESMTP id 66F592664B3 for ; Thu, 8 Sep 2016 05:54:01 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1b82e33a-7db5-81ed-de4f-75847f840088@ti.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Peter Ujfalusi Cc: alsa-devel@alsa-project.org, Ivaylo Dimitrov , Aaro Koskinen , Liam Girdwood , Sebastian Reichel , "Kristo, Tero" , Mark Brown , Jarkko Nikula , Pavel Machel , Pali =?utf-8?B?Um9ow6Fy?= , linux-omap@vger.kernel.org List-Id: alsa-devel@alsa-project.org * Peter Ujfalusi [160907 07:32]: > On 09/06/2016 11:16 PM, Tony Lindgren wrote: > > Makes sense. Do you have a formula or updated patch I can test here? > > Then we can add comments about the possible unaccounted latencies that > > can be worked out as needed. > > Not yet, but I'll try to come up with something in the coming days. OK > btw: I have tried the idle off on beagbeboard-xm with audio, but even w/o the > qos it is not triggering. w/o audio I hit off but if audio is running, not. OK yeah figured it out you need to comment out the watch -n5 command as that keeps the serial console busy :) I was doing it over ssh earlier on the torpedo board. > btw2: if you set the qos to 30ms and set the mcbsp2 threshold to 1024 (or > leave it as default) do you have audio glitches? I think if we hit C6 we > should not be able to wake up in time... Not that I've noticed at least with the default fifo size. How can I force the threshold to 1024? I tried changing pkt_size for omap_mcbsp_set_threshold but not getting any audio. Regards, Tony