Skip to content

Commit bdd2a85

Browse files
Akshu Agrawalbroonie
authored andcommitted
ASoC: amd: Make the driver name consistent across files
This fixes the issue of driver not getting auto loaded with MODULE_ALIAS. find /sys/devices -name modalias -print0 | xargs -0 grep 'audio' /sys/devices/pci0000:00/0000:00:01.0/acp_audio_dma.0.auto/modalias:platform:acp_audio_dma TEST=boot and check for device in lsmod [Removed yet more ChromeOS crap from the changelog -- broonie] Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> Tested-by: Jason Clinton <jclinton@chromium.org> Reviewed-by: Jason Clinton <jclinton@chromium.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 61add81 commit bdd2a85

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎sound/soc/amd/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
snd-soc-acp-pcm-objs := acp-pcm-dma.o
1+
acp_audio_dma-objs := acp-pcm-dma.o
22
snd-soc-acp-rt5645-mach-objs := acp-rt5645.o
33

4-
obj-$(CONFIG_SND_SOC_AMD_ACP) += snd-soc-acp-pcm.o
4+
obj-$(CONFIG_SND_SOC_AMD_ACP) += acp_audio_dma.o
55
obj-$(CONFIG_SND_SOC_AMD_CZ_RT5645_MACH) += snd-soc-acp-rt5645-mach.o

‎sound/soc/amd/acp-pcm-dma.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#define ST_MAX_BUFFER (ST_PLAYBACK_MAX_PERIOD_SIZE * PLAYBACK_MAX_NUM_PERIODS)
4141
#define ST_MIN_BUFFER ST_MAX_BUFFER
4242

43+
#define DRV_NAME "acp_audio_dma"
44+
4345
static const struct snd_pcm_hardware acp_pcm_hardware_playback = {
4446
.info = SNDRV_PCM_INFO_INTERLEAVED |
4547
SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
@@ -1189,7 +1191,7 @@ static struct platform_driver acp_dma_driver = {
11891191
.probe = acp_audio_probe,
11901192
.remove = acp_audio_remove,
11911193
.driver = {
1192-
.name = "acp_audio_dma",
1194+
.name = DRV_NAME,
11931195
.pm = &acp_pm_ops,
11941196
},
11951197
};
@@ -1200,4 +1202,4 @@ MODULE_AUTHOR("Vijendar.Mukunda@amd.com");
12001202
MODULE_AUTHOR("Maruthi.Bayyavarapu@amd.com");
12011203
MODULE_DESCRIPTION("AMD ACP PCM Driver");
12021204
MODULE_LICENSE("GPL v2");
1203-
MODULE_ALIAS("platform:acp-dma-audio");
1205+
MODULE_ALIAS("platform:"DRV_NAME);

0 commit comments

Comments
 (0)