public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-2.6.32] sound dapm: fix checking for external widgets bug
@ 2009-07-08  6:11 Rongrong Cao
  2009-07-10 19:19 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Rongrong Cao @ 2009-07-08  6:11 UTC (permalink / raw)
  To: broonie; +Cc: alsa-devel, linux-kernel, trivial

From: Rongrong Cao rrcao@ambarella.com

This patch is based on for-2.6.32
In SOC DAPM layer of SOUND subsystem, when add signal route (in the function snd_soc_dapm_add_route() ), 
the original code has wrong logic when dapm layer check each widget whether an external one.

---------------------------------------------------------------------------------------------------------

--- for-2.6.32/sound/soc/soc-dapm.c.orig        2009-07-08 13:33:41.000000000 +0800
+++ for-2.6.32/sound/soc/soc-dapm.c     2009-07-08 13:34:50.000000000 +0800
@@ -1290,8 +1290,8 @@ static int snd_soc_dapm_add_route(struct
        if (wsink->id == snd_soc_dapm_input) {
                if (wsource->id == snd_soc_dapm_micbias ||
                        wsource->id == snd_soc_dapm_mic ||
-                       wsink->id == snd_soc_dapm_line ||
-                       wsink->id == snd_soc_dapm_output)
+                       wsource->id == snd_soc_dapm_line ||
+                       wsource->id == snd_soc_dapm_output)
                        wsink->ext = 1;
        }
        if (wsource->id == snd_soc_dapm_output) {

---------------------------------------------------------------------------------------------------------

Signed-off-by: Rongrong Cao <rrcao@ambarella.com>


********************
Best regards!
Allen (Rongrong) Cao
Ambarella Shanghai Ltd.
Tel:   (86-21) 50942311
Fax:  (86-21) 50942321




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

end of thread, other threads:[~2009-07-11  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08  6:11 [PATCH for-2.6.32] sound dapm: fix checking for external widgets bug Rongrong Cao
2009-07-10 19:19 ` Mark Brown
2009-07-10 20:39   ` Jiri Kosina
2009-07-11  5:51   ` 答复: " Rongrong Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox