All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] CS4270: comments: slave mode is now supported
@ 2009-03-08 16:16 Daniel Mack
  2009-03-08 16:40 ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2009-03-08 16:16 UTC (permalink / raw)
  To: alsa-devel; +Cc: Timur Tabi

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

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Timur Tabi <timur@freescale.com>
---
 sound/soc/codecs/cs4270.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 4c7e546..0558674 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -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>
-- 
1.6.1.3

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

* Re: [PATCH] CS4270: comments: slave mode is now supported
  2009-03-08 16:16 [PATCH] CS4270: comments: slave mode is now supported Daniel Mack
@ 2009-03-08 16:40 ` Timur Tabi
  2009-03-08 16:51   ` Daniel Mack
  0 siblings, 1 reply; 5+ messages in thread
From: Timur Tabi @ 2009-03-08 16:40 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel

On Sun, Mar 8, 2009 at 11:16 AM, Daniel Mack <daniel@caiaq.de> wrote:

> - * 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.

> + * 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.

-- 
Timur Tabi
Linux kernel developer at Freescale

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

* Re: [PATCH] CS4270: comments: slave mode is now supported
  2009-03-08 16:40 ` Timur Tabi
@ 2009-03-08 16:51   ` Daniel Mack
  2009-03-08 17:25     ` Timur Tabi
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2009-03-08 16:51 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel

Hi Timur,

On Sun, Mar 08, 2009 at 11:40:30AM -0500, Timur Tabi wrote:
> On Sun, Mar 8, 2009 at 11:16 AM, Daniel Mack <daniel@caiaq.de> wrote:
> 
> > - * 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.

> 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


>From 5bf6359108726950c48f9f709eabc2c7e3a09eba Mon Sep 17 00:00:00 2001
From: Daniel Mack <daniel@caiaq.de>
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.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
---
 sound/soc/codecs/cs4270.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c
index 4c7e546..d16aa81 100644
--- a/sound/soc/codecs/cs4270.c
+++ b/sound/soc/codecs/cs4270.c
@@ -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>
-- 
1.6.1.3

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

* Re: [PATCH] CS4270: comments: slave mode is now supported
  2009-03-08 16:51   ` Daniel Mack
@ 2009-03-08 17:25     ` Timur Tabi
  2009-03-08 17:30       ` Daniel Mack
  0 siblings, 1 reply; 5+ messages in thread
From: Timur Tabi @ 2009-03-08 17:25 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel

On Sun, Mar 8, 2009 at 11:51 AM, Daniel Mack <daniel@caiaq.de> wrote:

> 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?

> From 5bf6359108726950c48f9f709eabc2c7e3a09eba Mon Sep 17 00:00:00 2001
> From: Daniel Mack <daniel@caiaq.de>
> 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.
>
> Signed-off-by: Daniel Mack <daniel@caiaq.de>

Acked-by: Timur Tabi <timur@freescale.com>


-- 
Timur Tabi
Linux kernel developer at Freescale

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

* Re: [PATCH] CS4270: comments: slave mode is now supported
  2009-03-08 17:25     ` Timur Tabi
@ 2009-03-08 17:30       ` Daniel Mack
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Mack @ 2009-03-08 17:30 UTC (permalink / raw)
  To: Timur Tabi; +Cc: alsa-devel

On Sun, Mar 08, 2009 at 12:25:43PM -0500, Timur Tabi wrote:
> > 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 ;)

> > Removes numbers from the list of features/limitations and makes it
> > reflect recent changes to the code.
> >
> > Signed-off-by: Daniel Mack <daniel@caiaq.de>
> 
> Acked-by: Timur Tabi <timur@freescale.com>

Thanks!

Daniel

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

end of thread, other threads:[~2009-03-08 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 16:16 [PATCH] CS4270: comments: slave mode is now supported Daniel Mack
2009-03-08 16:40 ` Timur Tabi
2009-03-08 16:51   ` Daniel Mack
2009-03-08 17:25     ` Timur Tabi
2009-03-08 17:30       ` Daniel Mack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.