Skip to content

Commit cc18b2f

Browse files
anarsoultiwai
authored andcommitted
ALSA: line6: Fix POD HD500 audio playback
Apparently interface 1 is control interface akin to HD500X, setting LINE6_CAP_CONTROL and choosing it as ctrl_if fixes audio playback on POD HD500. Signed-off-by: Vasily Khoruzhick <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 4b63340 commit cc18b2f

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

sound/usb/line6/podhd.c

+5-17
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
enum {
2222
LINE6_PODHD300,
2323
LINE6_PODHD400,
24-
LINE6_PODHD500_0,
25-
LINE6_PODHD500_1,
24+
LINE6_PODHD500,
2625
LINE6_PODX3,
2726
LINE6_PODX3LIVE,
2827
LINE6_PODHD500X,
@@ -318,8 +317,7 @@ static const struct usb_device_id podhd_id_table[] = {
318317
/* TODO: no need to alloc data interfaces when only audio is used */
319318
{ LINE6_DEVICE(0x5057), .driver_info = LINE6_PODHD300 },
320319
{ LINE6_DEVICE(0x5058), .driver_info = LINE6_PODHD400 },
321-
{ LINE6_IF_NUM(0x414D, 0), .driver_info = LINE6_PODHD500_0 },
322-
{ LINE6_IF_NUM(0x414D, 1), .driver_info = LINE6_PODHD500_1 },
320+
{ LINE6_IF_NUM(0x414D, 0), .driver_info = LINE6_PODHD500 },
323321
{ LINE6_IF_NUM(0x414A, 0), .driver_info = LINE6_PODX3 },
324322
{ LINE6_IF_NUM(0x414B, 0), .driver_info = LINE6_PODX3LIVE },
325323
{ LINE6_IF_NUM(0x4159, 0), .driver_info = LINE6_PODHD500X },
@@ -352,23 +350,13 @@ static const struct line6_properties podhd_properties_table[] = {
352350
.ep_audio_r = 0x82,
353351
.ep_audio_w = 0x01,
354352
},
355-
[LINE6_PODHD500_0] = {
353+
[LINE6_PODHD500] = {
356354
.id = "PODHD500",
357355
.name = "POD HD500",
358-
.capabilities = LINE6_CAP_PCM
356+
.capabilities = LINE6_CAP_PCM | LINE6_CAP_CONTROL
359357
| LINE6_CAP_HWMON,
360358
.altsetting = 1,
361-
.ep_ctrl_r = 0x81,
362-
.ep_ctrl_w = 0x01,
363-
.ep_audio_r = 0x86,
364-
.ep_audio_w = 0x02,
365-
},
366-
[LINE6_PODHD500_1] = {
367-
.id = "PODHD500",
368-
.name = "POD HD500",
369-
.capabilities = LINE6_CAP_PCM
370-
| LINE6_CAP_HWMON,
371-
.altsetting = 0,
359+
.ctrl_if = 1,
372360
.ep_ctrl_r = 0x81,
373361
.ep_ctrl_w = 0x01,
374362
.ep_audio_r = 0x86,

0 commit comments

Comments
 (0)