Thread (22 messages) 22 messages, 5 authors, 2017-02-01

[PATCH v3 4/8] ASoC: sun8i-codec-analog: Add amplifier event to fix first delay

From: Maxime Ripard <hidden>
Date: 2017-01-31 10:35:42
Also in: alsa-devel, linux-devicetree, lkml

On Tue, Jan 31, 2017 at 11:05:48AM +0100, Myl?ne Josserand wrote:
When playing a sound for the first time, a short delay, where the audio
file is not played, can be noticed.
On a second play (right after), the sound is played correctly.
If we wait a short time (~5 sec which corresponds to the aplay
timeout), the delay is back.

This patch fixes it by using an event on headphone amplifier.
It allows to keep the amplifier enable while playing a sound.
A delay of 700ms allows to wait that the amplifier is powered-up
before playing the sound.

Signed-off-by: Myl?ne Josserand <redacted>
Acked-by: Maxime Ripard <redacted>

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170131/ae424bee/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help