update hdmi drivers
authorkfx <kfx@rock-chips.com>
Thu, 21 Jul 2011 08:36:50 +0000 (16:36 +0800)
committerkfx <kfx@rock-chips.com>
Thu, 21 Jul 2011 08:36:50 +0000 (16:36 +0800)
drivers/video/hdmi/hdmi-backlight.c
drivers/video/hdmi/hdmi-codec.c

index 081ee53de648e5f0eb98f481b7b6d58bca925f07..707942ac1beb991ebffda29f9a2194f5b4e80565 100755 (executable)
@@ -1,6 +1,16 @@
 #include <linux/hdmi.h>
-
+#ifdef CONFIG_BACKLIGHT_RK29_BL
+/* drivers/video/backlight/rk29_backlight.c */
 extern void rk29_backlight_set(bool on);
+#else
+void rk29_backlight_set(bool on)
+{
+       /* please add backlight switching-related code here or on your backlight driver
+          parameter: on=1 ==> open spk 
+                                 on=0 ==> close spk
+       */
+}
+#endif
 void hdmi_set_backlight(int on)
 {
        rk29_backlight_set(on);
index 42a28b35527af16a63225ffd90a701dc3a11f4b8..8a8a09e6f91da13c27d18419001935899d76d4ad 100755 (executable)
@@ -1,6 +1,16 @@
 #include <linux/hdmi.h>
+#ifdef CONFIG_SND_SOC_WM8900
+/* sound/soc/codecs/wm8900.c */
 extern void codec_set_spk(bool on);
-
+#else
+void codec_set_spk(bool on) 
+{
+       /* please add sound switching-related code here or on your codec driver
+          parameter: on=1 ==> open spk 
+                                 on=0 ==> close spk
+       */
+}
+#endif
 void hdmi_set_spk(int on)
 {
        codec_set_spk(on);