Skip to content

Commit 6073cde

Browse files
committed
ASoC: clsic-alg: Allow shutdown cmd to be sent whilst compressed stream is open
Change-Id: Iaa73857efc123c41a14365ad8ef8429baa224f3b Signed-off-by: aford <[email protected]>
1 parent c85bece commit 6073cde

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sound/soc/codecs/clsic-alg.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,12 +1034,6 @@ static int clsic_alg_compr_open(struct snd_compr_stream *stream)
10341034
return -EBUSY;
10351035
}
10361036

1037-
/*
1038-
* Mark the msgproc as in use whilst the compressed stream is open
1039-
* to prevent the shutdown cmd being issued.
1040-
*/
1041-
clsic_msgproc_use(alg->clsic, alg->service->service_instance);
1042-
10431037
clsic_dbg(clsic, "%s\n", rtd->codec_dai->name);
10441038

10451039
pm_runtime_get_sync(clsic->dev);
@@ -1055,9 +1049,6 @@ static int clsic_alg_compr_open(struct snd_compr_stream *stream)
10551049
"Open compr stream for DAI '%s' failed %d\n",
10561050
rtd->codec_dai->name, ret);
10571051

1058-
clsic_msgproc_release(alg->clsic,
1059-
alg->service->service_instance);
1060-
10611052
module_put(clsic->dev->driver->owner);
10621053
module_put(alg->codec->component.card->owner);
10631054
pm_runtime_put_autosuspend(clsic->dev);
@@ -1143,9 +1134,6 @@ static int clsic_alg_compr_free(struct snd_compr_stream *stream)
11431134
ret, rtd->codec_dai->name);
11441135
}
11451136

1146-
/* Release the msgproc when the compressed stream is freed. */
1147-
clsic_msgproc_release(alg->clsic, alg->service->service_instance);
1148-
11491137
module_put(clsic->dev->driver->owner);
11501138
module_put(alg->codec->component.card->owner);
11511139
pm_runtime_put_autosuspend(clsic->dev);

0 commit comments

Comments
 (0)