Skip to content

Commit 8c6a42b

Browse files
committed
ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC
The SSI driver calls the AC'97 playback and transmit streams "AC97 Playback" and "AC97 Capture" respectively. This is the same name used by the generic AC'97 CODEC driver in ASoC, creating confusion for the Freescale ASoC card when it attempts to use these widgets in routing. Add a "CPU" in the name like the regular DAIs registered by the driver to disambiguate. Acked-by: Shengjiu Wang <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c9fb35f commit 8c6a42b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sound/soc/fsl/fsl-asoc-card.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
121121

122122
static const struct snd_soc_dapm_route audio_map_ac97[] = {
123123
/* 1st half -- Normal DAPM routes */
124-
{"Playback", NULL, "AC97 Playback"},
125-
{"AC97 Capture", NULL, "Capture"},
124+
{"Playback", NULL, "CPU AC97 Playback"},
125+
{"CPU AC97 Capture", NULL, "Capture"},
126126
/* 2nd half -- ASRC DAPM routes */
127-
{"AC97 Playback", NULL, "ASRC-Playback"},
128-
{"ASRC-Capture", NULL, "AC97 Capture"},
127+
{"CPU AC97 Playback", NULL, "ASRC-Playback"},
128+
{"ASRC-Capture", NULL, "CPU AC97 Capture"},
129129
};
130130

131131
static const struct snd_soc_dapm_route audio_map_tx[] = {

sound/soc/fsl/fsl_ssi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,14 +1189,14 @@ static struct snd_soc_dai_driver fsl_ssi_ac97_dai = {
11891189
.symmetric_channels = 1,
11901190
.probe = fsl_ssi_dai_probe,
11911191
.playback = {
1192-
.stream_name = "AC97 Playback",
1192+
.stream_name = "CPU AC97 Playback",
11931193
.channels_min = 2,
11941194
.channels_max = 2,
11951195
.rates = SNDRV_PCM_RATE_8000_48000,
11961196
.formats = SNDRV_PCM_FMTBIT_S16 | SNDRV_PCM_FMTBIT_S20,
11971197
},
11981198
.capture = {
1199-
.stream_name = "AC97 Capture",
1199+
.stream_name = "CPU AC97 Capture",
12001200
.channels_min = 2,
12011201
.channels_max = 2,
12021202
.rates = SNDRV_PCM_RATE_48000,

0 commit comments

Comments
 (0)