]> git.karo-electronics.de Git - linux-beck.git/blobdiff - sound/firewire/amdtp-stream.c
ALSA: firewire-lib: continue packet processing at detecting wrong CIP headers
[linux-beck.git] / sound / firewire / amdtp-stream.c
index fa10b58a0957bd660c78752423478364c9f58de9..ed2902609a4c6cd0fd854e6ee29f6eaa866499c0 100644 (file)
@@ -468,10 +468,12 @@ static int handle_in_packet(struct amdtp_stream *s,
        /* Check valid protocol or not. */
        fmt = (cip_header[1] & CIP_FMT_MASK) >> CIP_FMT_SHIFT;
        if (fmt != s->fmt) {
-               dev_err(&s->unit->device,
-                       "Detect unexpected protocol: %08x %08x\n",
-                       cip_header[0], cip_header[1]);
-               return -EIO;
+               dev_info_ratelimited(&s->unit->device,
+                                    "Detect unexpected protocol: %08x %08x\n",
+                                    cip_header[0], cip_header[1]);
+               *data_blocks = 0;
+               pcm_frames = 0;
+               goto end;
        }
 
        /* Calculate data blocks */