I have a question regarding the callbacks in the usbaudio.c driver.
The callback is defined as: -

/*
 * complete callback from data urb
 */
static void snd_complete_urb(struct urb *urb, struct pt_regs *regs)


The callback is set up with: - u->urb->complete = snd_usb_complete_callback(snd_complete_urb);

The issue I have is that urb->complete is of type: -
struct urb;
typedef void (*usb_complete_t)(struct urb *);

struct urb
{
<snip>
        usb_complete_t complete;        // pointer to completion routine
<snip>
};

So, why is the "struct pt_regs *regs" there ?
I would think that
static void snd_complete_urb(struct urb *urb, struct pt_regs *regs)
should change to
static void snd_complete_urb(struct urb *urb)

Cheers
James



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to