ALSA: oxfw: fix a condition and return code in start_stream()
[deliverable/linux.git] / sound / firewire / oxfw / oxfw-stream.c
index 29ccb3637164f82846022c37b2818e1a6ad4989e..e6757cd8572422813b1627f3c5718ec4c53f2aac 100644 (file)
@@ -171,9 +171,10 @@ static int start_stream(struct snd_oxfw *oxfw, struct amdtp_stream *stream,
        }
 
        /* Wait first packet */
-       err = amdtp_stream_wait_callback(stream, CALLBACK_TIMEOUT);
-       if (err < 0)
+       if (!amdtp_stream_wait_callback(stream, CALLBACK_TIMEOUT)) {
                stop_stream(oxfw, stream);
+               err = -ETIMEDOUT;
+       }
 end:
        return err;
 }
This page took 0.026016 seconds and 5 git commands to generate.