Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252113
b: refs/heads/master
c: 014950b
h: refs/heads/master
i:
  252111: f05c947
v: v3
  • Loading branch information
Daniel Mack authored and Takashi Iwai committed May 25, 2011
1 parent 3192c58 commit feafa2c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 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: 9e38658f703732cb69936553cef4bdb4e5294f3f
refs/heads/master: 014950b013b7966b7e4a3ae6931c75e3c115296f
17 changes: 16 additions & 1 deletion trunk/sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,20 @@ static int create_uaxx_quirk(struct snd_usb_audio *chip,
return 0;
}

/*
* Create a standard mixer for the specified interface.
*/
static int create_standard_mixer_quirk(struct snd_usb_audio *chip,
struct usb_interface *iface,
struct usb_driver *driver,
const struct snd_usb_audio_quirk *quirk)
{
if (quirk->ifnum < 0)
return 0;

return snd_usb_create_mixer(chip, quirk->ifnum, 0);
}

/*
* audio-interface quirks
*
Expand Down Expand Up @@ -295,7 +309,8 @@ int snd_usb_create_quirk(struct snd_usb_audio *chip,
[QUIRK_AUDIO_STANDARD_INTERFACE] = create_standard_audio_quirk,
[QUIRK_AUDIO_FIXED_ENDPOINT] = create_fixed_stream_quirk,
[QUIRK_AUDIO_EDIROL_UAXX] = create_uaxx_quirk,
[QUIRK_AUDIO_ALIGN_TRANSFER] = create_align_transfer_quirk
[QUIRK_AUDIO_ALIGN_TRANSFER] = create_align_transfer_quirk,
[QUIRK_AUDIO_STANDARD_MIXER] = create_standard_mixer_quirk,
};

if (quirk->type < QUIRK_TYPE_COUNT) {
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/usb/usbaudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ enum quirk_type {
QUIRK_AUDIO_FIXED_ENDPOINT,
QUIRK_AUDIO_EDIROL_UAXX,
QUIRK_AUDIO_ALIGN_TRANSFER,
QUIRK_AUDIO_STANDARD_MIXER,

QUIRK_TYPE_COUNT
};
Expand Down

0 comments on commit feafa2c

Please sign in to comment.