]> git.zerfleddert.de Git - ms2-kexec/blobdiff - hs_cons.c
serial seems to work, but produces no output on headphone jack
[ms2-kexec] / hs_cons.c
index 7983db446a6b430f4adeff52975f92fe415d93a2..8ca5b801ce23d42d4db9910f12f8d59a5bb0bf79 100644 (file)
--- a/hs_cons.c
+++ b/hs_cons.c
@@ -44,9 +44,8 @@ static int __init headphone_cons_init(void)
        if (hs_switch < 0)
                return -EINVAL;
 
-       printk(KERN_INFO "headset_uart_switch: %d\n", hs_switch);
+       printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
 
-       printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
        if (!gpio_get_value(hs_switch))
                return -ENODEV;
 
@@ -59,7 +58,7 @@ static int __init headphone_cons_init(void)
 
        /* route kernel uart out headset jack */
        gpio_direction_output(hs_switch, 0);
-       printk(KERN_INFO "value: %d\n", gpio_get_value(hs_switch));
+       printk(KERN_INFO "headset_uart_switch: %d, value: %d\n", hs_switch, gpio_get_value(hs_switch));
 
        //add_preferred_console("ttyS", 2, "115200");
        return 0;
Impressum, Datenschutz