linux/sound/soc/sunxi
Mylène Josserand bf14da7e55 ASoC: sun8i-codec-analog: Add amplifier event to fix first delay
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 <mylene.josserand@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-02-03 13:02:06 +01:00
..
Kconfig ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls 2016-11-22 17:59:27 +00:00
Makefile ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls 2016-11-22 17:59:27 +00:00
sun4i-codec.c ASoC: sun4i-codec: Add "Right Mixer" to "Line Out Mono Diff." route 2017-01-09 19:48:35 +00:00
sun4i-i2s.c ASoC: sunxi: i2s: Implement set_sysclk 2016-11-09 14:01:08 +00:00
sun4i-spdif.c ASoC: sun4i-spdif: Add support for the H3 SoC 2017-01-20 13:04:17 +00:00
sun8i-codec-analog.c ASoC: sun8i-codec-analog: Add amplifier event to fix first delay 2017-02-03 13:02:06 +01:00