|
@@ -758,6 +758,9 @@ static int au0828_analog_stream_enable(struct au0828_dev *d)
|
|
|
|
|
|
|
|
dprintk(1, "au0828_analog_stream_enable called\n");
|
|
dprintk(1, "au0828_analog_stream_enable called\n");
|
|
|
|
|
|
|
|
|
|
+ if (test_bit(DEV_DISCONNECTED, &d->dev_state))
|
|
|
|
|
+ return -ENODEV;
|
|
|
|
|
+
|
|
|
iface = usb_ifnum_to_if(d->usbdev, 0);
|
|
iface = usb_ifnum_to_if(d->usbdev, 0);
|
|
|
if (iface && iface->cur_altsetting->desc.bAlternateSetting != 5) {
|
|
if (iface && iface->cur_altsetting->desc.bAlternateSetting != 5) {
|
|
|
dprintk(1, "Changing intf#0 to alt 5\n");
|
|
dprintk(1, "Changing intf#0 to alt 5\n");
|