Commit 37f45cc5 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: mc13783: Remove mono support

Playing a mono track on a mc13783 codec results in incorrect playback rate.

Remove mono support so that a mono track can be played correctly.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Tested-by: default avatarGaëtan Carlier <gcembed@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4758be37
...@@ -659,7 +659,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = { ...@@ -659,7 +659,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = {
.id = MC13783_ID_STEREO_DAC, .id = MC13783_ID_STEREO_DAC,
.playback = { .playback = {
.stream_name = "Playback", .stream_name = "Playback",
.channels_min = 1, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_96000, .rates = SNDRV_PCM_RATE_8000_96000,
.formats = MC13783_FORMATS, .formats = MC13783_FORMATS,
...@@ -670,7 +670,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = { ...@@ -670,7 +670,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = {
.id = MC13783_ID_STEREO_CODEC, .id = MC13783_ID_STEREO_CODEC,
.capture = { .capture = {
.stream_name = "Capture", .stream_name = "Capture",
.channels_min = 1, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = MC13783_RATES_RECORD, .rates = MC13783_RATES_RECORD,
.formats = MC13783_FORMATS, .formats = MC13783_FORMATS,
...@@ -692,14 +692,14 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = { ...@@ -692,14 +692,14 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = {
.id = MC13783_ID_SYNC, .id = MC13783_ID_SYNC,
.playback = { .playback = {
.stream_name = "Playback", .stream_name = "Playback",
.channels_min = 1, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = SNDRV_PCM_RATE_8000_96000, .rates = SNDRV_PCM_RATE_8000_96000,
.formats = MC13783_FORMATS, .formats = MC13783_FORMATS,
}, },
.capture = { .capture = {
.stream_name = "Capture", .stream_name = "Capture",
.channels_min = 1, .channels_min = 2,
.channels_max = 2, .channels_max = 2,
.rates = MC13783_RATES_RECORD, .rates = MC13783_RATES_RECORD,
.formats = MC13783_FORMATS, .formats = MC13783_FORMATS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment