[PATCH] ASoC: rsnd: add interrupt support for SSI BUSIF buffer

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Mon May 11 03:30:15 CEST 2020


Hi Yongbo

Thank you for the patch

> SSI BUSIF buffer is possible to overflow or underflow, especially in a
> hypervisor environment. If there is no interrupt support, it will eventually
> lead to errors in pcm data.
> This patch adds overflow and underflow interrupt support for SSI BUSIF buffer.
> 
> Cc: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> Reported-by: Chen Li <licheng0822 at thundersoft.com>
> Signed-off-by: Yongbo Zhang <giraffesnn123 at gmail.com>
> Tested-by: Chen Li <licheng0822 at thundersoft.com>
> ---
(snip)
> @@ -635,6 +713,19 @@ static int rsnd_ssi_irq(struct rsnd_mod *mod,
>  	if (enable)
>  		val = rsnd_ssi_is_dma_mode(mod) ? 0x0e000000 : 0x0f000000;
>  
> +	if (is_tdm || is_tdm_split) {
> +		switch (id) {
> +		case 0:
> +		case 1:
> +		case 2:
> +		case 3:
> +		case 4:
> +		case 9:
> +			val |= 0xff00;
> +			break;
> +		}
> +	}

This is small things, but we like to have
	- val |= 0xff00;
	+ val |= 0x0000ff00;

Except above

	Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

Thank you for your help !!

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list