openwrt/target/linux/bcm27xx/patches-6.6/950-1034-ASoC-bcm-Add-owner-info-for-more-soundcards.patch

56 lines
2.1 KiB
Diff
Raw Normal View History

From fe027c6c6cb299f17db69d04087b2ca973f78510 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Thu, 18 Apr 2024 22:13:58 +0100
Subject: [PATCH 1034/1085] ASoC: bcm: Add "owner" info for more soundcards
See: https://github.com/raspberrypi/linux/issues/5697
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
sound/soc/bcm/audioinjector-isolated-soundcard.c | 1 +
sound/soc/bcm/audioinjector-pi-soundcard.c | 1 +
sound/soc/bcm/dionaudio_loco-v2.c | 1 +
sound/soc/bcm/dionaudio_loco.c | 1 +
4 files changed, 4 insertions(+)
--- a/sound/soc/bcm/audioinjector-isolated-soundcard.c
+++ b/sound/soc/bcm/audioinjector-isolated-soundcard.c
@@ -116,6 +116,7 @@ static const struct snd_soc_dapm_route a
static struct snd_soc_card snd_soc_audioinjector_isolated = {
.name = "audioinjector-isolated-soundcard",
+ .owner = THIS_MODULE,
.dai_link = audioinjector_isolated_dai,
.num_links = ARRAY_SIZE(audioinjector_isolated_dai),
--- a/sound/soc/bcm/audioinjector-pi-soundcard.c
+++ b/sound/soc/bcm/audioinjector-pi-soundcard.c
@@ -125,6 +125,7 @@ static const struct snd_soc_dapm_route a
static struct snd_soc_card snd_soc_audioinjector = {
.name = "audioinjector-pi-soundcard",
+ .owner = THIS_MODULE,
.dai_link = audioinjector_pi_soundcard_dai,
.num_links = ARRAY_SIZE(audioinjector_pi_soundcard_dai),
--- a/sound/soc/bcm/dionaudio_loco-v2.c
+++ b/sound/soc/bcm/dionaudio_loco-v2.c
@@ -59,6 +59,7 @@ static struct snd_soc_dai_link snd_rpi_d
/* audio machine driver */
static struct snd_soc_card snd_rpi_dionaudio_loco_v2 = {
.name = "Dion Audio LOCO-V2",
+ .owner = THIS_MODULE,
.dai_link = snd_rpi_dionaudio_loco_v2_dai,
.num_links = ARRAY_SIZE(snd_rpi_dionaudio_loco_v2_dai),
};
--- a/sound/soc/bcm/dionaudio_loco.c
+++ b/sound/soc/bcm/dionaudio_loco.c
@@ -65,6 +65,7 @@ static struct snd_soc_dai_link snd_rpi_d
/* audio machine driver */
static struct snd_soc_card snd_rpi_dionaudio_loco = {
.name = "snd_rpi_dionaudio_loco",
+ .owner = THIS_MODULE,
.dai_link = snd_rpi_dionaudio_loco_dai,
.num_links = ARRAY_SIZE(snd_rpi_dionaudio_loco_dai),
};