Skip to content
Commit ef4ef49f authored by Matthias Reichl's avatar Matthias Reichl Committed by popcornmix
Browse files

ASoC: bcm: add missing .owner fields in sound card drivers



If snd_soc_card.owner is not set the kernel won't do usage refcounting
and one can remove the card driver module while it's in use (eg playback
active) - which leads to a kernel crash.

The missing owner field also prevents ALSA slot ordering
(options snd slots=module-name1,module-name-2,...) from working with
the I2S cards as it has no module name to match against.

Fix these issues by setting the .owner field in the snd_soc_card structs.

Signed-off-by: default avatarMatthias Reichl <hias@horus.com>
parent cb5a6e22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment