ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
PATCH 1/1 ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
Add quirk to ensure a sync endpoint is properly configured. This patch is a fix for same symptoms on Behringer UFX1204 as patch from Albertto Aquirre on Dec 8 2016 for Axe-Fx II.
--- sound/usb/pcm.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/usb/pcm.c +9 -0
@@ -352,6 +352,15 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs, ep =0x86 ; iface =usb_ifnum_to_if (dev,2 ); +if (!iface || iface->num_altsetting ==0 ) +return -EINVAL ; + + alts = &iface->altsetting[1 ]; + goto add_sync_ep; +case USB_ID (0x1397 ,0x0002 ):/* Behringer UFX1204 */ + ep =0x81 ; + iface =usb_ifnum_to_if (dev,1 ); +if (!iface || iface->num_altsetting ==0 )return -EINVAL ;
Signature · 1 line
2.14.3
Quoted 6 lines · Lassi Ylikojola
Add quirk to ensure a sync endpoint is properly configured. This patch is a fix for same symptoms on Behringer UFX1204 as patch from Albertto Aquirre on Dec 8 2016 for Axe-Fx II.
Signed-off-by Lassi Ylikojola <[email protected]>
The patch doesn't seem applied cleanly to the latest tree. Could you check it and repost with the proper patch for the latest Linus tree?
thanks,
Takashi
Add quirk to ensure a sync endpoint is properly configured.
This patch is a fix for same symptoms on Behringer UFX1204 as patch
from Albertto Aquirre on Dec 8 2016 for Axe-Fx II.
Resending. Seems that there is a difference between git diff/commit versions 2.7.4 and 2.14.3. I had to insert a line break with 2.4.13 to align properly(hopefully).
--- sound/usb/pcm.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/usb/pcm.c +10 -0
@@ -357,6 +357,16 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs, alts = &iface->altsetting[1 ]; goto add_sync_ep; +case USB_ID (0x1397 ,0x0002 ): + ep =0x81 ; + iface =usb_ifnum_to_if (dev,1 ); + +if (!iface || iface->num_altsetting ==0 ) +return -EINVAL ; + + alts = &iface->altsetting[1 ]; + goto add_sync_ep; + } if (attr == USB_ENDPOINT_SYNC_ASYNC &&
Signature · 1 line
2.14.3
Quoted 6 lines · Lassi Ylikojola
Add quirk to ensure a sync endpoint is properly configured.
This patch is a fix for same symptoms on Behringer UFX1204 as patch
from Albertto Aquirre on Dec 8 2016 for Axe-Fx II.
Resending. Seems that there is a difference between git diff/commit versions 2.7.4 and 2.14.3. I had to insert a line break with 2.4.13 to align properly(hopefully).
Hrm, still some mess with the embedded patch, but never mind, I fixed manually and applied to my tree.
But at the next time if you resend a patch, please refresh completely, not continuing a thread with "Re:" to the subject. Maybe you can try git-send-email at the next time.
thanks,
Takashi
Quoted 30 lines
Signed-off-by Lassi Ylikojola <[email protected]>--- sound/usb/pcm.c | 10 ++++++++++ 1 file changed, 10 insertions(+)sound/usb/pcm.c +10
-0@@ -357,6 +357,16 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs, alts = &iface->altsetting[1 ]; goto add_sync_ep; +case USB_ID (0x1397 ,0x0002 ): + ep =0x81 ; + iface =usb_ifnum_to_if (dev,1 ); + +if (!iface || iface->num_altsetting ==0 ) +return -EINVAL ; + + alts = &iface->altsetting[1 ]; + goto add_sync_ep; + } if (attr == USB_ENDPOINT_SYNC_ASYNC &&Signature · 1 line
2.14.3