alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int
@ 2012-03-08 12:48 Mark Brown
  2012-03-08 12:52 ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-03-08 12:48 UTC (permalink / raw)
  To: Liam Girdwood; +Cc: alsa-devel, patches, Mark Brown

Supports larger register maps.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 include/sound/soc-dapm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index a4ae018..ab3216b 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -488,7 +488,7 @@ struct snd_soc_dapm_widget {
 	void *priv;				/* widget specific data */
 
 	/* dapm control */
-	short reg;						/* negative reg = no direct dapm */
+	unsigned int reg;			/* negative reg = no direct dapm */
 	unsigned char shift;			/* bits to shift */
 	unsigned int saved_value;		/* widget saved value */
 	unsigned int value;				/* widget current value */
-- 
1.7.9.1

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

* Re: [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int
  2012-03-08 12:48 [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int Mark Brown
@ 2012-03-08 12:52 ` Fabio Estevam
  2012-03-08 13:10   ` Lars-Peter Clausen
  2012-03-08 13:21   ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-03-08 12:52 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, patches, Liam Girdwood

On Thu, Mar 8, 2012 at 9:48 AM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:

>        /* dapm control */
> -       short reg;                                              /* negative reg = no direct dapm */
> +       unsigned int reg;                       /* negative reg = no direct dapm */

Maybe you should update the comment now that this is unsigned int.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int
  2012-03-08 12:52 ` Fabio Estevam
@ 2012-03-08 13:10   ` Lars-Peter Clausen
  2012-03-08 13:21   ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2012-03-08 13:10 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: alsa-devel, Mark Brown, patches, Liam Girdwood

On 03/08/2012 01:52 PM, Fabio Estevam wrote:
> On Thu, Mar 8, 2012 at 9:48 AM, Mark Brown
> <broonie@opensource.wolfsonmicro.com> wrote:
> 
>>        /* dapm control */
>> -       short reg;                                              /* negative reg = no direct dapm */
>> +       unsigned int reg;                       /* negative reg = no direct dapm */
> 
> Maybe you should update the comment now that this is unsigned int.

There are also a few places in soc-dapm.c which check for reg >= 0 to handle
SND_SOC_NOPM, those need to be updated as well.

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

* Re: [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int
  2012-03-08 12:52 ` Fabio Estevam
  2012-03-08 13:10   ` Lars-Peter Clausen
@ 2012-03-08 13:21   ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-03-08 13:21 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: alsa-devel, patches, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 465 bytes --]

On Thu, Mar 08, 2012 at 09:52:20AM -0300, Fabio Estevam wrote:
> On Thu, Mar 8, 2012 at 9:48 AM, Mark Brown

> > -       short reg;                                              /* negative reg = no direct dapm */
> > +       unsigned int reg;                       /* negative reg = no direct dapm */

> Maybe you should update the comment now that this is unsigned int.

Bah, humbug - no, it needs to be signed int and we don't support the
full 32 bits.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2012-03-08 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 12:48 [PATCH] ASoC: dapm: Allow DAPM registers to be unsigned int Mark Brown
2012-03-08 12:52 ` Fabio Estevam
2012-03-08 13:10   ` Lars-Peter Clausen
2012-03-08 13:21   ` 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).