[lvc-project] [PATCH] ASoC: q6apm: fix potential overflow in q6hdmi_hw_params

Fedor Pchelkin pchelkin at ispras.ru
Sat Oct 11 14:53:56 MSK 2025


Hi,

On Wed, 01. Oct 13:13, Nikita Zhandarovich wrote:
> --- a/sound/soc/qcom/qdsp6/q6apm.h
> +++ b/sound/soc/qcom/qdsp6/q6apm.h
> @@ -14,9 +14,10 @@
>  #include <linux/of_platform.h>
>  #include <linux/jiffies.h>
>  #include <linux/soc/qcom/apr.h>
> +#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
>  #include "audioreach.h"
>  
> -#define APM_PORT_MAX		127
> +#define APM_PORT_MAX		DISPLAY_PORT_RX_7

(DISPLAY_PORT_RX_7 + 1), to be precise?

>  #define APM_PORT_MAX_AUDIO_CHAN_CNT 8
>  #define PCM_CHANNEL_NULL 0
>  #define PCM_CHANNEL_FL    1	/* Front left channel. */



More information about the lvc-project mailing list