alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: fsl_ssi: Let it understand mono
@ 2012-09-18 16:03 Fabio Estevam
  2012-09-18 16:03 ` [PATCH 2/2] ASoC: cs4270: Remove mono support Fabio Estevam
  2012-09-18 16:14 ` [PATCH 1/2] ASoC: fsl_ssi: Let it understand mono Timur Tabi
  0 siblings, 2 replies; 11+ messages in thread
From: Fabio Estevam @ 2012-09-18 16:03 UTC (permalink / raw)
  To: broonie; +Cc: Fabio Estevam, alsa-devel, timur, javier.martin

Currently there are two variants for the FSL SSI driver:

- fsl_ssi.c is the device tree driver version for the FSL SSI driver
(used by PowerPC and i.MX)

- imx-ssi.c is the non device tree version that runs on some i.MX processors that
are not yet converted to dt.

Commit 0865a7 (ASoC: imx-ssi: Remove mono support) attempted to fix mono audio 
playback issue inside imx-ssi.c, which according to 104c22 
(ASoC: Revert 'ASoC: imx-ssi: Remove mono support' ) caused problem on another 
i.MX platform.

The original mono playback issue was later fixed inside the mc13783 codec driver.

As the long term goal is to move other platforms to dt, then fsl_ssi needs to 
have the same fix for channels_min as in imx-ssi.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Timur,

Can you please try to play a mono track on your PowerPC platform with these 
series applied?

 sound/soc/fsl/fsl_ssi.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 4ed2afd..7768b93 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -559,14 +559,13 @@ static const struct snd_soc_dai_ops fsl_ssi_dai_ops = {
 /* Template for the CPU dai driver structure */
 static struct snd_soc_dai_driver fsl_ssi_dai_template = {
 	.playback = {
-		/* The SSI does not support monaural audio. */
-		.channels_min = 2,
+		.channels_min = 1,
 		.channels_max = 2,
 		.rates = FSLSSI_I2S_RATES,
 		.formats = FSLSSI_I2S_FORMATS,
 	},
 	.capture = {
-		.channels_min = 2,
+		.channels_min = 1,
 		.channels_max = 2,
 		.rates = FSLSSI_I2S_RATES,
 		.formats = FSLSSI_I2S_FORMATS,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-25 17:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 16:03 [PATCH 1/2] ASoC: fsl_ssi: Let it understand mono Fabio Estevam
2012-09-18 16:03 ` [PATCH 2/2] ASoC: cs4270: Remove mono support Fabio Estevam
2012-09-24 13:49   ` Timur Tabi
2012-09-25 12:53   ` Mark Brown
2012-09-25 17:22     ` UAC2 device recognized during boot but won't output sound Joao Bonina
2012-09-18 16:14 ` [PATCH 1/2] ASoC: fsl_ssi: Let it understand mono Timur Tabi
2012-09-19 14:07   ` Fabio Estevam
2012-09-19 21:49     ` Timur Tabi
2012-09-22 14:56       ` Mark Brown
2012-09-24 13:50         ` Timur Tabi
2012-09-25 12:53           ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).