From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: "H. Nikolaus Schaller" <hns@goldelico.com>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
kernel@pyra-handheld.com, Andreas Kemnade <andreas@kemnade.info>,
linux-omap <linux-omap@vger.kernel.org>,
jarkko.nikula@bitmer.com
Subject: Re: [PATCH 0/3] ASoC: omap: Fix and add pm_qos configuration
Date: Thu, 15 Nov 2018 16:29:36 +0200 [thread overview]
Message-ID: <7c20517e-4021-e62f-a8ff-a380fe90495e@ti.com> (raw)
In-Reply-To: <6128350C-8801-492F-9FE6-B07CCAF56925@goldelico.com>
Hi,
On 2018-11-15 14:26, H. Nikolaus Schaller wrote:
> Hi,
>
>> Am 14.11.2018 um 13:45 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
>>
>> Hi Peter,
>>
>>> Am 14.11.2018 um 12:06 schrieb Peter Ujfalusi <peter.ujfalusi@ti.com>:
>>>
>>> Hi,
>>>
>>> The defconfig for OMAP2+ now have the CPU_IDLE enabled which can cause audio
>>> artifacts because we try to enter too low power state from where the wakeup
>>> takes longer than the FIFO can tolerate on the dai side.
>>>
>>> While adding pm_qos to McPDM and DMIC I have noticed that the McBSP calculation
>>> was not correct as we need usec for the latency value.
>>>
>>> Regards,
>>> Peter
>>> ---
>>> Peter Ujfalusi (3):
>>> ASoC: omap-mcbsp: Fix latency value calculation for pm_qos
>>> ASoC: omap-mcpdm: Add pm_qos handling to avoid under/overruns with
>>> CPU_IDLE
>>> ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE
>>>
>>> sound/soc/omap/omap-dmic.c | 9 ++++++++
>>> sound/soc/omap/omap-mcbsp.c | 6 +++---
>>> sound/soc/omap/omap-mcpdm.c | 43 ++++++++++++++++++++++++++++++++++++-
>>> 3 files changed, 54 insertions(+), 4 deletions(-)
>>
>> I will test asap.
>
> I have now:
>
> * v4.20-rc2
> * plus your new patches
> * plus letux-4.20-rc2 patches
> * including our private AESS patch set (mostly inactive, because it fails to load firmware)
> * CONFIG_CPU_IDLE=y
>
> and it works. I can use aplay and play to get handsfree audio as with CONFIG_CPU_IDLE=n
Thanks for testing!
> Sometimes, there is a scratchy tenth of a second (in handsfree and headset),
If you set CONFIG_CPU_IDLE=n, do you still have the scratchy sound? Or
with 4.19 kernel if you can cross check it?
> but the basic rhythm does not get interrupted any more and the play command does
> not get stuck.
>
> I have played an mp3 of 4 minutes and the play process did succeed and didn't report
> buffer underrun issues.
>
> So your patches seem to fix the issue. At least the basic problems. This scratchy
> thing needs further study, if it is a spurious thing on my Pyra protoype device.
> Or if it is still there if we disable CPU_IDLE again (I haven't tried that yet).
>
> BR and thanks for quick help,
> Nikolaus
>
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2018-11-15 14:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-14 11:06 [PATCH 0/3] ASoC: omap: Fix and add pm_qos configuration Peter Ujfalusi
2018-11-14 11:06 ` [PATCH 1/3] ASoC: omap-mcbsp: Fix latency value calculation for pm_qos Peter Ujfalusi
2018-11-18 17:04 ` Jarkko Nikula
2018-11-19 14:14 ` Peter Ujfalusi
2018-11-23 14:11 ` Applied "ASoC: omap-mcbsp: Fix latency value calculation for pm_qos" to the asoc tree Mark Brown
2018-11-14 11:06 ` [PATCH 2/3] ASoC: omap-mcpdm: Add pm_qos handling to avoid under/overruns with CPU_IDLE Peter Ujfalusi
2018-11-23 14:11 ` Applied "ASoC: omap-mcpdm: Add pm_qos handling to avoid under/overruns with CPU_IDLE" to the asoc tree Mark Brown
2018-11-14 11:06 ` [PATCH 3/3] ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE Peter Ujfalusi
2018-11-23 14:10 ` Applied "ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE" to the asoc tree Mark Brown
2018-11-14 12:45 ` [PATCH 0/3] ASoC: omap: Fix and add pm_qos configuration H. Nikolaus Schaller
2018-11-15 12:26 ` H. Nikolaus Schaller
2018-11-15 14:29 ` Peter Ujfalusi [this message]
2018-11-16 8:00 ` Peter Ujfalusi
2018-11-18 17:04 ` Jarkko Nikula
2018-11-19 14:17 ` Peter Ujfalusi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c20517e-4021-e62f-a8ff-a380fe90495e@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=alsa-devel@alsa-project.org \
--cc=andreas@kemnade.info \
--cc=broonie@kernel.org \
--cc=hns@goldelico.com \
--cc=jarkko.nikula@bitmer.com \
--cc=kernel@pyra-handheld.com \
--cc=lgirdwood@gmail.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox