Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257621
b: refs/heads/master
c: 81b85b6
h: refs/heads/master
i:
  257619: d8f6562
v: v3
  • Loading branch information
Pavel Roskin authored and Takashi Iwai committed Jul 8, 2011
1 parent 49fe537 commit 2e6a1a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80b52490cdbfec7ea93d1158f13f0e49a1557423
refs/heads/master: 81b85b6bd91e58bf800cbb3047aa74e61aff7bd9
16 changes: 8 additions & 8 deletions trunk/sound/usb/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,10 @@ static int snd_usb_audio_create(struct usb_device *dev, int idx,
* only at the first time. the successive calls of this function will
* append the pcm interface to the corresponding card.
*/
static void *snd_usb_audio_probe(struct usb_device *dev,
struct usb_interface *intf,
const struct usb_device_id *usb_id)
static struct snd_usb_audio *
snd_usb_audio_probe(struct usb_device *dev,
struct usb_interface *intf,
const struct usb_device_id *usb_id)
{
const struct snd_usb_audio_quirk *quirk = (const struct snd_usb_audio_quirk *)usb_id->driver_info;
int i, err;
Expand Down Expand Up @@ -540,16 +541,15 @@ static void *snd_usb_audio_probe(struct usb_device *dev,
* we need to take care of counter, since disconnection can be called also
* many times as well as usb_audio_probe().
*/
static void snd_usb_audio_disconnect(struct usb_device *dev, void *ptr)
static void snd_usb_audio_disconnect(struct usb_device *dev,
struct snd_usb_audio *chip)
{
struct snd_usb_audio *chip;
struct snd_card *card;
struct list_head *p;

if (ptr == (void *)-1L)
if (chip == (void *)-1L)
return;

chip = ptr;
card = chip->card;
mutex_lock(&register_mutex);
mutex_lock(&chip->shutdown_mutex);
Expand Down Expand Up @@ -585,7 +585,7 @@ static void snd_usb_audio_disconnect(struct usb_device *dev, void *ptr)
static int usb_audio_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
void *chip;
struct snd_usb_audio *chip;
chip = snd_usb_audio_probe(interface_to_usbdev(intf), intf, id);
if (chip) {
usb_set_intfdata(intf, chip);
Expand Down

0 comments on commit 2e6a1a1

Please sign in to comment.