qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster
@ 2018-06-27 11:19 Gerd Hoffmann
  2018-07-02  2:29 ` no-reply
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2018-06-27 11:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/audio/hda-codec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c
index fc4945086b..8a8214de74 100644
--- a/hw/audio/hda-codec.c
+++ b/hw/audio/hda-codec.c
@@ -204,6 +204,9 @@ static inline void hda_timer_sync_adjust(HDAAudioStream *st, int64_t target_pos)
     if (target_pos < -limit) {
         corr = -HDA_TIMER_TICKS;
     }
+    if (target_pos < -(2*limit)) {
+        corr = -(4*HDA_TIMER_TICKS);
+    }
     if (corr == 0) {
         return;
     }
-- 
2.9.3

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

* Re: [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster
  2018-06-27 11:19 [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster Gerd Hoffmann
@ 2018-07-02  2:29 ` no-reply
  0 siblings, 0 replies; 2+ messages in thread
From: no-reply @ 2018-07-02  2:29 UTC (permalink / raw)
  To: kraxel; +Cc: famz, qemu-devel

Hi,

This series seems to have some coding style problems. See output below for
more information:

Type: series
Message-id: 20180627111925.30292-1-kraxel@redhat.com
Subject: [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram

commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
    echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))
done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
d7dfd2f5e0 audio/hda: adjust larger gaps faster

=== OUTPUT BEGIN ===
Checking PATCH 1/1: audio/hda: adjust larger gaps faster...
ERROR: spaces required around that '*' (ctx:VxV)
#17: FILE: hw/audio/hda-codec.c:207:
+    if (target_pos < -(2*limit)) {
                         ^

ERROR: spaces required around that '*' (ctx:VxV)
#18: FILE: hw/audio/hda-codec.c:208:
+        corr = -(4*HDA_TIMER_TICKS);
                   ^

total: 2 errors, 0 warnings, 9 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

=== OUTPUT END ===

Test command exited with code: 1


---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@redhat.com

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

end of thread, other threads:[~2018-07-02  3:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27 11:19 [Qemu-devel] [PATCH] audio/hda: adjust larger gaps faster Gerd Hoffmann
2018-07-02  2:29 ` no-reply

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).