diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-05-02 07:24:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-05-02 07:32:09 -0400 |
commit | 33f503c96c976fd585dedb76514ca6cb286e60d9 (patch) | |
tree | cdd4bb7dbc19a090f9f7ae09695a542ca2b19973 /sound/soc/codecs/wm9713.c | |
parent | 71437552f2564c0d0c5cc4995045683051c5fe62 (diff) |
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>
Diffstat (limited to 'sound/soc/codecs/wm9713.c')
-rw-r--r-- | sound/soc/codecs/wm9713.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index a6feb7842314..d1744e96f303 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c | |||
@@ -1040,13 +1040,13 @@ struct snd_soc_dai wm9713_dai[] = { | |||
1040 | .channels_min = 1, | 1040 | .channels_min = 1, |
1041 | .channels_max = 2, | 1041 | .channels_max = 2, |
1042 | .rates = WM9713_RATES, | 1042 | .rates = WM9713_RATES, |
1043 | .formats = SNDRV_PCM_FMTBIT_S16_LE,}, | 1043 | .formats = SND_SOC_STD_AC97_FMTS,}, |
1044 | .capture = { | 1044 | .capture = { |
1045 | .stream_name = "HiFi Capture", | 1045 | .stream_name = "HiFi Capture", |
1046 | .channels_min = 1, | 1046 | .channels_min = 1, |
1047 | .channels_max = 2, | 1047 | .channels_max = 2, |
1048 | .rates = WM9713_RATES, | 1048 | .rates = WM9713_RATES, |
1049 | .formats = SNDRV_PCM_FMTBIT_S16_LE,}, | 1049 | .formats = SND_SOC_STD_AC97_FMTS,}, |
1050 | .ops = &wm9713_dai_ops_hifi, | 1050 | .ops = &wm9713_dai_ops_hifi, |
1051 | }, | 1051 | }, |
1052 | { | 1052 | { |
@@ -1056,7 +1056,7 @@ struct snd_soc_dai wm9713_dai[] = { | |||
1056 | .channels_min = 1, | 1056 | .channels_min = 1, |
1057 | .channels_max = 1, | 1057 | .channels_max = 1, |
1058 | .rates = WM9713_RATES, | 1058 | .rates = WM9713_RATES, |
1059 | .formats = SNDRV_PCM_FMTBIT_S16_LE,}, | 1059 | .formats = SND_SOC_STD_AC97_FMTS,}, |
1060 | .ops = &wm9713_dai_ops_aux, | 1060 | .ops = &wm9713_dai_ops_aux, |
1061 | }, | 1061 | }, |
1062 | { | 1062 | { |