[media] em28xx: display the isoc/bulk mode
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Dec 2012 15:15:47 +0000 (13:15 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Dec 2012 16:35:25 +0000 (14:35 -0200)
As both bulk and isoc modes can be available, display what it
was found for both DVB and analog.

While here, also displays if audio is provided via USB Audio
Class or via vendor's extension.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c

index 2129560a78239443ac25484e6af066f519f721a3..9a2cb6136728f5c312785cd1d4c1c23e03d8f32c 100644 (file)
@@ -3310,19 +3310,6 @@ static int em28xx_usb_probe(struct usb_interface *interface,
                ifnum,
                interface->altsetting->desc.bInterfaceNumber);
 
-       if (has_audio)
-               printk(KERN_INFO DRIVER_NAME
-                      ": Audio Vendor Class interface %i found\n",
-                      ifnum);
-       if (has_video)
-               printk(KERN_INFO DRIVER_NAME
-                      ": Video interface %i found\n",
-                      ifnum);
-       if (has_dvb)
-               printk(KERN_INFO DRIVER_NAME
-                      ": DVB interface %i found\n",
-                      ifnum);
-
        /*
         * Make sure we have 480 Mbps of bandwidth, otherwise things like
         * video stream wouldn't likely work, since 12 Mbps is generally
@@ -3361,6 +3348,24 @@ static int em28xx_usb_probe(struct usb_interface *interface,
                }
        }
 
+       if (has_audio)
+               printk(KERN_INFO DRIVER_NAME
+                      ": Audio interface %i found %s\n",
+                      ifnum,
+                      dev->has_audio_class ? "(USB Audio Class)" : "(Vendor Class)");
+       if (has_video)
+               printk(KERN_INFO DRIVER_NAME
+                      ": Video interface %i found:%s%s\n",
+                      ifnum,
+                      dev->analog_ep_bulk ? " bulk" : "",
+                      dev->analog_ep_isoc ? " isoc" : "");
+       if (has_dvb)
+               printk(KERN_INFO DRIVER_NAME
+                      ": DVB interface %i found:%s%s\n",
+                      ifnum,
+                      dev->dvb_ep_bulk ? " bulk" : "",
+                      dev->dvb_ep_isoc ? " isoc" : "");
+
        dev->num_alt = interface->num_altsetting;
 
        if ((unsigned)card[nr] < em28xx_bcount)