Skip to contentSkip to conversation

ASoC: mc13783: Remove mono support

PATCH Applied Gaëtan Carlier 2 participants 2 messages Sep 4, 2012 – Sep 6, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Gaëtan Carlier

author Tested-by
#1 lore raw

Hi,

Quoted 39 lines · Fabio Estevam

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.

---
  sound/soc/codecs/mc13783.c |    8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/mc13783.c +3 -3
index 8f726c0..115a403 100644
@@ -659,7 +659,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = {
  		.id = MC13783_ID_STEREO_DAC,
  		.playback = {
  			.stream_name = "Playback",
-			.channels_min = 1,
+			.channels_min = 2,
  			.channels_max = 2,
  			.rates = SNDRV_PCM_RATE_8000_96000,
  			.formats = MC13783_FORMATS,
@@ -670,7 +670,7 @@ static struct snd_soc_dai_driver mc13783_dai_async[] = {
  		.id = MC13783_ID_STEREO_CODEC,
  		.capture = {
  			.stream_name = "Capture",
-			.channels_min = 1,
+			.channels_min = 2,
  			.channels_max = 2,
  			.rates = MC13783_RATES_RECORD,
  			.formats = MC13783_FORMATS,
@@ -692,14 +692,14 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = {
  		.id = MC13783_ID_SYNC,
  		.playback = {
  			.stream_name = "Playback",
-			.channels_min = 1,
+			.channels_min = 2,
  			.channels_max = 2,

sound/soc/codecs/mc13783.c static struct snd_soc_dai_driver mc13783_dai_sync[] = { · line 705

Quoted 10 lines
sound/soc/codecs/mc13783.c +1 -1
  			.rates = SNDRV_PCM_RATE_8000_96000,
  			.formats = MC13783_FORMATS,
  		},
  		.capture = {
  			.stream_name = "Capture",
-			.channels_min = 1,
+			.channels_min = 2,
  			.channels_max = 2,
  			.rates = MC13783_RATES_RECORD,
  			.formats = MC13783_FORMATS,

On imx27_3ds board:

Regards,
Gaëtan Carlier
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel