]> err.no Git - linux-2.6/blobdiff - sound/usb/usx2y/usx2yhwdeppcm.c
[PATCH] Remove non-arch consumers of asm/segment.h
[linux-2.6] / sound / usb / usx2y / usx2yhwdeppcm.c
index ef28061287f200c7a6c07d0f841443c9b3388eec..d0199c4e55514dad367e3c51d7b1543180392f40 100644 (file)
@@ -624,7 +624,7 @@ static int usX2Y_pcms_lock_check(snd_card_t *card)
                for (s = 0; s < 2; ++s) {
                        snd_pcm_substream_t *substream;
                        substream = pcm->streams[s].substream;
-                       if (substream && substream->open_flag)
+                       if (substream && substream->ffile != NULL)
                                err = -EBUSY;
                }
        }