Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=22d3a20030439420bf2795c60529ba0e89b4d82c
Commit:     22d3a20030439420bf2795c60529ba0e89b4d82c
Parent:     11370ee2c1c578a704f47d5513d57274c335db43
Author:     Giuliano Pochini <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 17 12:49:40 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 16:50:38 2007 +0200

    [ALSA] echoaudio - Add barrier() to prevent compiler optimization
    
    This patch adds a barrier() to prevent the compiler from
    moving the read outside of the loop. It also fixes a comment.
    
    Signed-off-by: Giuliano Pochini <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/echoaudio/echoaudio_dsp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/echoaudio/echoaudio_dsp.c 
b/sound/pci/echoaudio/echoaudio_dsp.c
index 42afa83..e6c1007 100644
--- a/sound/pci/echoaudio/echoaudio_dsp.c
+++ b/sound/pci/echoaudio/echoaudio_dsp.c
@@ -43,11 +43,11 @@ static int wait_handshake(struct echoaudio *chip)
 {
        int i;
 
-       /* Wait up to 10ms for the handshake from the DSP */
+       /* Wait up to 20ms for the handshake from the DSP */
        for (i = 0; i < HANDSHAKE_TIMEOUT; i++) {
                /* Look for the handshake value */
+               barrier();
                if (chip->comm_page->handshake) {
-                       /*if (i)  DE_ACT(("Handshake time: %d\n", i));*/
                        return 0;
                }
                udelay(1);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to