Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb631eae authored by Lu Guanqun's avatar Lu Guanqun Committed by Mark Brown
Browse files

ASoC: sst_platform: unregister sst card when being closed

parent 0ed625b2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ static int sst_platform_close(struct snd_pcm_substream *substream)
	str_id = stream->stream_info.str_id;
	if (str_id)
		ret_val = stream->sstdrv_ops->pcm_control->close(str_id);
	unregister_sst_card(stream->sstdrv_ops);
	kfree(stream->sstdrv_ops);
	kfree(stream);
	return ret_val;