Skip to contentSkip to conversation

ASoC: Extend range of supported sample rates for CS4271 CODEC.

PATCH In review Alexander Sverdlin 3 participants 3 messages Mar 5, 2011 – Mar 7, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: Extend range of supported sample rates for CS4271 CODEC.

From: Alexander Sverdlin <[email protected]>

Extend range of supported sample rates for CS4271 CODEC.

---
 sound/soc/codecs/cs4271.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs4271.c +3 -2
index 1791796..e5cc4da 100644
@@ -33,6 +33,7 @@
 #define CS4271_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
 			    SNDRV_PCM_FMTBIT_S24_LE | \
 			    SNDRV_PCM_FMTBIT_S32_LE)
+#define CS4271_PCM_RATES SNDRV_PCM_RATE_8000_192000
 
 /*
  * CS4271 registers
@@ -392,14 +393,14 @@ static struct snd_soc_dai_driver cs4271_dai = {
 		.stream_name	= "Playback",
 		.channels_min	= 2,
 		.channels_max	= 2,
-		.rates		= SNDRV_PCM_RATE_8000_96000,
+		.rates		= CS4271_PCM_RATES,
 		.formats	= CS4271_PCM_FORMATS,
 	},
 	.capture = {
 		.stream_name	= "Capture",
 		.channels_min	= 2,
 		.channels_max	= 2,
-		.rates		= SNDRV_PCM_RATE_8000_96000,
+		.rates		= CS4271_PCM_RATES,
 		.formats	= CS4271_PCM_FORMATS,
 	},
 	.ops = &cs4271_dai_ops,
#1 lore raw
Quoted 5 lines · Alexander Sverdlin

From: Alexander Sverdlin <[email protected]>

Extend range of supported sample rates for CS4271 CODEC.

As I've previously reminded you please *always* CC maintainers on patches. Patches not sent to the maintainers are very likely to get missed. This is also covered in SubmittingPatches. CCing Liam in on this one, there's a whole bunch of others.

Quoted 40 lines
---
 sound/soc/codecs/cs4271.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/cs4271.c +3 -2
index 1791796..e5cc4da 100644
@@ -33,6 +33,7 @@
 #define CS4271_PCM_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
 			    SNDRV_PCM_FMTBIT_S24_LE | \
 			    SNDRV_PCM_FMTBIT_S32_LE)
+#define CS4271_PCM_RATES SNDRV_PCM_RATE_8000_192000
 
 /*
  * CS4271 registers
@@ -392,14 +393,14 @@ static struct snd_soc_dai_driver cs4271_dai = {
 		.stream_name	= "Playback",
 		.channels_min	= 2,
 		.channels_max	= 2,
-		.rates		= SNDRV_PCM_RATE_8000_96000,
+		.rates		= CS4271_PCM_RATES,
 		.formats	= CS4271_PCM_FORMATS,
 	},
 	.capture = {
 		.stream_name	= "Capture",
 		.channels_min	= 2,
 		.channels_max	= 2,
-		.rates		= SNDRV_PCM_RATE_8000_96000,
+		.rates		= CS4271_PCM_RATES,
 		.formats	= CS4271_PCM_FORMATS,
 	},
 	.ops = &cs4271_dai_ops,

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 1 line
"You grabbed my hand and we fell into it, like a daydream - or a fever."
Acked-by
#2 lore raw
Quoted 12 lines · Mark Brown
Quoted 5 lines · Alexander Sverdlin

From: Alexander Sverdlin <[email protected]>

Extend range of supported sample rates for CS4271 CODEC.

As I've previously reminded you please *always* CC maintainers on patches. Patches not sent to the maintainers are very likely to get missed. This is also covered in SubmittingPatches. CCing Liam in on this one, there's a whole bunch of others.