Skip to contentSkip to conversation

CS4270: comments: slave mode is now supported

PATCH In review Daniel Mack 2 participants 5 messages Mar 8, 2009

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

PATCH 1/1 CS4270: comments: slave mode is now supported

Just a minor thing: make the comments reflect the new slave mode feature.

---
 sound/soc/codecs/cs4270.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
sound/soc/codecs/cs4270.c +4 -5
index 4c7e546..0558674 100644
@@ -14,12 +14,11 @@
  *
  * 1) Software mode is supported.  Stand-alone mode is not supported.
  * 2) Only I2C is supported, not SPI
- * 3) Only Master mode is supported, not Slave.
- * 4) The machine driver's 'startup' function must call
+ * 3) The machine driver's 'startup' function must call
  *    cs4270_set_dai_sysclk() with the value of MCLK.
- * 5) Only I2S and left-justified modes are supported
- * 6) Power management is not supported
- * 7) The only supported control is volume and hardware mute (if enabled)
+ * 4) Only I2S and left-justified modes are supported
+ * 5) Power management is not supported
+ * 6) The only supported control is volume and hardware mute (if enabled)
  */
 
 #include <linux/module.h>
Signature · 1 line
1.6.1.3
#1 lore raw
Quoted 3 lines · Daniel Mack

- * 3) Only Master mode is supported, not Slave.
- * 4) The machine driver's 'startup' function must call
+ * 3) The machine driver's 'startup' function must call

I would have been simpler if you just said that both Master and Slave mode is supported. However, if you really want to delete #3, you may as well get rid of all the numbers, so that we don't have to renumber them again in the future.

Quoted 1 line

+ * 6) The only supported control is volume and hardware mute (if enabled)

This is no longer true. Pretty much all controls are now supported. I should have changed that in my prior patch, but for now could you just delete #6? Thanks.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#2 lore raw

Hi Timur,

Quoted 8 lines · Timur Tabi
Quoted 3 lines · Daniel Mack

- * 3) Only Master mode is supported, not Slave.
- * 4) The machine driver's 'startup' function must call
+ * 3) The machine driver's 'startup' function must call

I would have been simpler if you just said that both Master and Slave mode is supported.

Right, I mistakenly read the whole list as limitations, but the headline says 'features' as well.

Quoted 3 lines

However, if you really want to delete #3, you may
as well get rid of all the numbers, so that we don't have to renumber them again in the future.

Ok, that makes sense. What about the patch below?

Daniel

Quoted 1 line

From 5bf6359108726950c48f9f709eabc2c7e3a09eba Mon Sep 17 00:00:00 2001

From: Daniel Mack <[email protected]>
Date: Sun, 8 Mar 2009 17:48:12 +0100
Subject: [PATCH] CS4270: bring feature/limitations list in sync

Removes numbers from the list of features/limitations and makes it reflect recent changes to the code.

---
 sound/soc/codecs/cs4270.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
sound/soc/codecs/cs4270.c +7 -8
index 4c7e546..d16aa81 100644
@@ -12,14 +12,13 @@
  *
  * Current features/limitations:
  *
- * 1) Software mode is supported.  Stand-alone mode is not supported.
- * 2) Only I2C is supported, not SPI
- * 3) Only Master mode is supported, not Slave.
- * 4) The machine driver's 'startup' function must call
- *    cs4270_set_dai_sysclk() with the value of MCLK.
- * 5) Only I2S and left-justified modes are supported
- * 6) Power management is not supported
- * 7) The only supported control is volume and hardware mute (if enabled)
+ * - Software mode is supported.  Stand-alone mode is not supported.
+ * - Only I2C is supported, not SPI
+ * - Support for master and slave mode
+ * - The machine driver's 'startup' function must call
+ *   cs4270_set_dai_sysclk() with the value of MCLK.
+ * - Only I2S and left-justified modes are supported
+ * - Power management is not supported
  */
 
 #include <linux/module.h>
Signature · 1 line
1.6.1.3
Acked-by
#3 lore raw
Quoted 1 line · Daniel Mack

Ok, that makes sense. What about the patch below?

Looks great. I appreciate the work you're doing to improve the driver. What product will you be using this in?

Quoted 9 lines

From 5bf6359108726950c48f9f709eabc2c7e3a09eba Mon Sep 17 00:00:00 2001
From: Daniel Mack <[email protected]>
Date: Sun, 8 Mar 2009 17:48:12 +0100
Subject: [PATCH] CS4270: bring feature/limitations list in sync

Removes numbers from the list of features/limitations and makes it reflect recent changes to the code.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#4 lore raw
Quoted 4 lines · Timur Tabi
Quoted 1 line

Ok, that makes sense. What about the patch below?

Looks great. I appreciate the work you're doing to improve the driver. What product will you be using this in?

This will be used in a series of multi-room home audio devices. I'll let you know when there is something the marketing department releases ;)

Quoted 6 lines
Quoted 4 lines

Removes numbers from the list of features/limitations and makes it reflect recent changes to the code.

Thanks!

Daniel