drivers: audio: Only start amp for HS in cxd56
Only enable the amplifier during playback to avoid clicks. Signed-off-by: Tobias Johansson <tobias.johansson@sony.com>
This commit is contained in:
parent
b36d08ef45
commit
3828dd2b11
@ -3266,12 +3266,15 @@ static int cxd56_start_dma(FAR struct cxd56_dev_s *dev)
|
|||||||
/* Start DMA, use workaround with first buffer */
|
/* Start DMA, use workaround with first buffer */
|
||||||
|
|
||||||
if (dev->state != CXD56_DEV_STATE_STARTED)
|
if (dev->state != CXD56_DEV_STATE_STARTED)
|
||||||
|
{
|
||||||
|
if (dev->dma_handle == CXD56_AUDIO_DMA_I2S0_DOWN)
|
||||||
{
|
{
|
||||||
/* Turn on amplifier */
|
/* Turn on amplifier */
|
||||||
|
|
||||||
spin_unlock_irqrestore(&dev->lock, flags);
|
spin_unlock_irqrestore(&dev->lock, flags);
|
||||||
board_external_amp_mute_control(false);
|
board_external_amp_mute_control(false);
|
||||||
flags = spin_lock_irqsave(&dev->lock);
|
flags = spin_lock_irqsave(&dev->lock);
|
||||||
|
}
|
||||||
|
|
||||||
/* Mask interrupts */
|
/* Mask interrupts */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user