]> git.proxmox.com Git - qemu.git/blobdiff - hw/exynos4210_mct.c
audio: Make pcspk card selectable again
[qemu.git] / hw / exynos4210_mct.c
index 01e3fb8a3bc79f5f513e776820c6265ae816b074..7a22b1f900a99848d1d3c9505921660b02327974 100644 (file)
@@ -376,10 +376,6 @@ static uint64_t exynos4210_gfrc_get_count(Exynos4210MCTGT *s)
 {
     uint64_t count = 0;
     count = ptimer_get_count(s->ptimer_frc);
-    if (!count) {
-        /* Timer event was generated and s->reg.cnt holds adequate value */
-        return s->reg.cnt;
-    }
     count = s->count - count;
     return s->reg.cnt + count;
 }
@@ -888,7 +884,7 @@ static void exynos4210_ltick_event(void *opaque)
     static uint64_t time2[2] = {0};
 #endif
 
-    /* Call tick_timer event handler, it will update it's tcntb and icntb */
+    /* Call tick_timer event handler, it will update its tcntb and icntb. */
     exynos4210_ltick_timer_event(&s->tick_timer);
 
     /* get tick_timer cnt */