All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: usb audio callback questions.
Date: Sun, 06 Jul 2003 14:21:52 +0100	[thread overview]
Message-ID: <3F082270.8030605@superbug.demon.co.uk> (raw)

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

             reply	other threads:[~2003-07-06 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-06 13:21 James Courtier-Dutton [this message]
2003-07-07 10:26 ` usb audio callback questions Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F082270.8030605@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.