Re: [PATCH v7 04/13] ASoC: qcom: q6apm-lpass-dai: Fix multiple graph opens

From: Mark Brown

Date: Tue Mar 24 2026 - 14:47:53 EST


On Tue, Mar 24, 2026 at 06:25:42PM +0000, Mark Brown wrote:
> On Mon, Mar 23, 2026 at 10:38:36PM +0000, Srinivas Kandagatla wrote:
> > As prepare can be called mulitple times, this can result in multiple
> > graph opens for playback path.

> > */
> > - if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
> > + if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && dai_data->graph[dai->id] == NULL) {

> This is an array of APM_PORT_MAX elements but we have DAI IDs in the DT
> bindings over that and now we're using the DAI ID to index into the
> array (I didn't check for existing instances...). This might be
> impossible due to system design though.

Ah, found an update later in the series so it's OK in the end. A
potential bisection issue but hopefully not the end of the world.

Attachment: signature.asc
Description: PGP signature