* [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux
2009-01-16 6:14 [PATCH 0/1] ASoC patch on top of linux-omap 2.6.29-rc1 (TWL4030 related) Peter Ujfalusi
@ 2009-01-16 6:14 ` Peter Ujfalusi
0 siblings, 0 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2009-01-16 6:14 UTC (permalink / raw)
To: linux-omap; +Cc: Peter Ujfalusi
Modify the check for the mux type to also handle the
snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
---
sound/soc/soc-dapm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 493a4e8..a2f1da8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
struct snd_soc_dapm_path *path;
int found = 0;
- if (widget->id != snd_soc_dapm_mux)
+ if (widget->id != snd_soc_dapm_mux &&
+ widget->id != snd_soc_dapm_value_mux)
return -ENODEV;
if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
--
1.6.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 0/1] ASoC patch on top of linux-omap 2.6.29-rc1 (TWL4030 related) - try2
@ 2009-01-16 7:48 Peter Ujfalusi
2009-01-16 7:48 ` [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux Peter Ujfalusi
0 siblings, 1 reply; 6+ messages in thread
From: Peter Ujfalusi @ 2009-01-16 7:48 UTC (permalink / raw)
To: linux-omap; +Cc: Peter Ujfalusi
Hello,
This patch has been sent after 29-rc1 to ALSA devel, it is already in Takashi's
tree and will go upstream as soon as possible.
Somehow I have left out this from the soc_value_enum type merge to the soc_enum
series, which kind of renders the twl4030 codec driver to not to update the
value_enum types. In other words: without this patch the twl4030 codec is not
working.
The patch applies cleanly to the head of linux-omap tree.
BTW: the twl4030 codec driver has been changed dramatically, meaning that
most (shall I say all?) of the platforms using it need to be updated to define
the correct output and input pins.
The playback and capture path now implemented with DAPM, so without the correct
definitions the audio is most likely will not going to work.
On the bright side: all possible playback and capture routing combination can be
configured (except for the pre-DAC routing, but I can send a sample code,
which does it in the board file).
---
Peter Ujfalusi (1):
ASoC: Fix the power update function for snd_soc_dapm_value_mux
sound/soc/soc-dapm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux
2009-01-16 7:48 [PATCH 0/1] ASoC patch on top of linux-omap 2.6.29-rc1 (TWL4030 related) - try2 Peter Ujfalusi
@ 2009-01-16 7:48 ` Peter Ujfalusi
2009-01-16 7:51 ` Tony Lindgren
2009-01-16 9:15 ` Takashi Iwai
0 siblings, 2 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2009-01-16 7:48 UTC (permalink / raw)
To: linux-omap; +Cc: Peter Ujfalusi, Takashi Iwai
Modify the check for the mux type to also handle the
snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/soc/soc-dapm.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 493a4e8..a2f1da8 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
struct snd_soc_dapm_path *path;
int found = 0;
- if (widget->id != snd_soc_dapm_mux)
+ if (widget->id != snd_soc_dapm_mux &&
+ widget->id != snd_soc_dapm_value_mux)
return -ENODEV;
if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
--
1.6.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux
2009-01-16 7:48 ` [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux Peter Ujfalusi
@ 2009-01-16 7:51 ` Tony Lindgren
2009-01-16 9:15 ` Takashi Iwai
1 sibling, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2009-01-16 7:51 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: linux-omap, Takashi Iwai
* Peter Ujfalusi <peter.ujfalusi@nokia.com> [090116 09:49]:
> Modify the check for the mux type to also handle the
> snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux.
Thanks, pushed to l-o tree to wait for it to fall down from mainline.
Tony
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
> sound/soc/soc-dapm.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> index 493a4e8..a2f1da8 100644
> --- a/sound/soc/soc-dapm.c
> +++ b/sound/soc/soc-dapm.c
> @@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
> struct snd_soc_dapm_path *path;
> int found = 0;
>
> - if (widget->id != snd_soc_dapm_mux)
> + if (widget->id != snd_soc_dapm_mux &&
> + widget->id != snd_soc_dapm_value_mux)
> return -ENODEV;
>
> if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
> --
> 1.6.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux
2009-01-16 7:48 ` [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux Peter Ujfalusi
2009-01-16 7:51 ` Tony Lindgren
@ 2009-01-16 9:15 ` Takashi Iwai
2009-01-16 9:33 ` Tony Lindgren
1 sibling, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2009-01-16 9:15 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: linux-omap
At Fri, 16 Jan 2009 09:48:06 +0200,
Peter Ujfalusi wrote:
>
> Modify the check for the mux type to also handle the
> snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
FYI, it's already in Linus tree.
thanks,
Takashi
> ---
> sound/soc/soc-dapm.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> index 493a4e8..a2f1da8 100644
> --- a/sound/soc/soc-dapm.c
> +++ b/sound/soc/soc-dapm.c
> @@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
> struct snd_soc_dapm_path *path;
> int found = 0;
>
> - if (widget->id != snd_soc_dapm_mux)
> + if (widget->id != snd_soc_dapm_mux &&
> + widget->id != snd_soc_dapm_value_mux)
> return -ENODEV;
>
> if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
> --
> 1.6.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux
2009-01-16 9:15 ` Takashi Iwai
@ 2009-01-16 9:33 ` Tony Lindgren
0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2009-01-16 9:33 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Peter Ujfalusi, linux-omap
* Takashi Iwai <tiwai@suse.de> [090116 11:16]:
> At Fri, 16 Jan 2009 09:48:06 +0200,
> Peter Ujfalusi wrote:
> >
> > Modify the check for the mux type to also handle the
> > snd_soc_dapm_value_mux type in a same way as the snd_soc_dapm_mux.
> >
> > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> > Signed-off-by: Takashi Iwai <tiwai@suse.de>
>
> FYI, it's already in Linus tree.
Thanks, will get it on the next merge then.
Tony
>
>
> thanks,
>
> Takashi
>
> > ---
> > sound/soc/soc-dapm.c | 3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> >
> > diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> > index 493a4e8..a2f1da8 100644
> > --- a/sound/soc/soc-dapm.c
> > +++ b/sound/soc/soc-dapm.c
> > @@ -720,7 +720,8 @@ static int dapm_mux_update_power(struct snd_soc_dapm_widget *widget,
> > struct snd_soc_dapm_path *path;
> > int found = 0;
> >
> > - if (widget->id != snd_soc_dapm_mux)
> > + if (widget->id != snd_soc_dapm_mux &&
> > + widget->id != snd_soc_dapm_value_mux)
> > return -ENODEV;
> >
> > if (!snd_soc_test_bits(widget->codec, e->reg, mask, val))
> > --
> > 1.6.1
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-16 9:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 7:48 [PATCH 0/1] ASoC patch on top of linux-omap 2.6.29-rc1 (TWL4030 related) - try2 Peter Ujfalusi
2009-01-16 7:48 ` [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux Peter Ujfalusi
2009-01-16 7:51 ` Tony Lindgren
2009-01-16 9:15 ` Takashi Iwai
2009-01-16 9:33 ` Tony Lindgren
-- strict thread matches above, loose matches on Subject: below --
2009-01-16 6:14 [PATCH 0/1] ASoC patch on top of linux-omap 2.6.29-rc1 (TWL4030 related) Peter Ujfalusi
2009-01-16 6:14 ` [PATCH 1/1] ASoC: Fix the power update function for snd_soc_dapm_value_mux Peter Ujfalusi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox