atmel_ssc_dai, duplex audio support?

From: Peter Meerwald-Stadler
Date: Wed Aug 03 2016 - 11:12:01 EST


Hello,

it appears that atmel_ssc_dai does not support duplex audio, i.e. when
first starting a playback stream and then starting a record stream, the
playback stops

problem seems to be in atmel_ssc_startup():

/* Reset the SSC to keep it at a clean status */
ssc_writel(ssc_p->ssc->regs, CR, SSC_BIT(CR_SWRST));

which is performed unconditionally when a stream starts

code was introduced with
ASoC: atmel_ssc_dai: refactor the startup and shutdown, commit cbaadf0f90d6

tested with the 4.1 branch of linux-at91 git

thanks, regards, p.

--

Peter Meerwald-Stadler
+43-664-2444418 (mobile)