ASoC: Use a shared define for AC97 CODEC data formats
The AC97 wire format is completely fixed so CODECs don't have any choice about the formats they accept but controllers accept a variety of data formats and render them down onto the bus. Have a shared define so all the CODEC drivers will interoperate with any of our controller drivers. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@ -534,13 +534,13 @@ struct snd_soc_dai wm9712_dai[] = {
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rates = WM9712_AC97_RATES,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,},
|
||||
.formats = SND_SOC_STD_AC97_FMTS,},
|
||||
.capture = {
|
||||
.stream_name = "HiFi Capture",
|
||||
.channels_min = 1,
|
||||
.channels_max = 2,
|
||||
.rates = WM9712_AC97_RATES,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,},
|
||||
.formats = SND_SOC_STD_AC97_FMTS,},
|
||||
.ops = &wm9712_dai_ops_hifi,
|
||||
},
|
||||
{
|
||||
@ -550,7 +550,7 @@ struct snd_soc_dai wm9712_dai[] = {
|
||||
.channels_min = 1,
|
||||
.channels_max = 1,
|
||||
.rates = WM9712_AC97_RATES,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,},
|
||||
.formats = SND_SOC_STD_AC97_FMTS,},
|
||||
.ops = &wm9712_dai_ops_aux,
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user