ALSA: usb-audio: use a format bitmask per alternate setting
In preparation for USB audio 2.0 support, change the audioformat structure so that it uses a bitmask to specify possible formats. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
e11b4e0e4f
commit
015eb0b081
@ -279,7 +279,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 0,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S16_LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
.channels = 4,
|
||||
.iface = 0,
|
||||
.altsetting = 1,
|
||||
@ -296,7 +296,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 1,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S16_LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S16_LE,
|
||||
.channels = 2,
|
||||
.iface = 1,
|
||||
.altsetting = 1,
|
||||
@ -580,7 +580,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 0,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S24_3LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
.channels = 2,
|
||||
.iface = 0,
|
||||
.altsetting = 1,
|
||||
@ -597,7 +597,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 1,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S24_3LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
.channels = 2,
|
||||
.iface = 1,
|
||||
.altsetting = 1,
|
||||
@ -793,7 +793,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 1,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S24_3LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
.channels = 2,
|
||||
.iface = 1,
|
||||
.altsetting = 1,
|
||||
@ -810,7 +810,7 @@ YAMAHA_DEVICE(0x7010, "UB99"),
|
||||
.ifnum = 2,
|
||||
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
|
||||
.data = & (const struct audioformat) {
|
||||
.format = SNDRV_PCM_FORMAT_S24_3LE,
|
||||
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
|
||||
.channels = 2,
|
||||
.iface = 2,
|
||||
.altsetting = 1,
|
||||
|
Reference in New Issue
Block a user