mirror of https://github.com/thesofproject/sof.git
ssp: irq: fix handler comment and remove FIFO empty loop
Comment is wrong and FIFO empty not needed in IRQ handler. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
c00e48f22c
commit
90880bd287
|
@ -370,19 +370,14 @@ static int ssp_trigger(struct dai *dai, int cmd, int direction)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* The IRQ handler allows the SSP port to drain the playback FIFO to make sure
|
||||
* every sample has been played */
|
||||
/* clear IRQ sources atm */
|
||||
static void ssp_irq_handler(void *data)
|
||||
{
|
||||
struct dai *dai = data;
|
||||
int i;
|
||||
|
||||
trace_ssp("irq");
|
||||
trace_value(ssp_read(dai, SSSR));
|
||||
|
||||
/* empty Rx FIFO */
|
||||
for (i = 0; i < 16; i++)
|
||||
ssp_read(dai, SSDR);
|
||||
|
||||
/* clear IRQ */
|
||||
ssp_write(dai, SSSR, ssp_read(dai, SSSR));
|
||||
platform_interrupt_clear(ssp_irq(dai), 1);
|
||||
|
|
Loading…
Reference in New Issue