Created attachment 255705 [details]
While the USB audio interface does seem to be detected. Trying to speaker-test or aplay to the interface produces no sound and times out with I/O errors.
aplay: pcm_write:1940: write error: Input/output error
The HW parameters detected under Linux also do not match up with the product description in the manual, or how it shows up with the official drivers under Windows 10.
Parameters under Windows 10:
- 3 Duplex MIDI ports (KATANA, KATANA DAW CTRL, KATANA CTRL)
- 2 Duplex PCM devices, 2 channels 44.1khz 16/24 bits (PRIMARY, SECONDARY)
Parameters under Linux:
- 3 Duplex MIDI ports (KATANA 1, KATANA 2, KATANA 3)
- 1 Duplex PCM device, 4 channels 44.1khz 32 bits (KATANA)
It's ID is 0582:01d8 and the specific model I have is the Boss Katana 100W 1x12" combo amp. The Boss Katanas (Roland corp) are a fairly new device series (released Q4 2016). So please let me know how I could help resolve this issue and/or contribute to it's driver support in general.
I will attach verbose device details and the failing playback attempts.
Created attachment 255707 [details]
aplay --dump-hw-params and arecord --dump-hw-params
Created attachment 255709 [details]
speaker-test with plughw: and hw: addressing
Created attachment 255711 [details]
Verbose aplay attempt of /dev/zero
Note that it takes 20s to time out with the error. While this should play back silence for 1s.
Created attachment 255713 [details]
lsusb -vvv of the device
EP 13 OUT and EP 14 IN are the PCM endpoints.
Created attachment 255715 [details]
Attempting to use the device to Jack
Created attachment 255717 [details]
KATANA-100 block diagram
The owners manual can be found at https://www.boss.info/global/support/by_product/katana-100/owners_manuals/
This screenshot is a block diagram from the manual that helps conceptualize why 2x stereo duplex makes sense and 1x 4 channel duplex doesn't.
Created attachment 255719 [details]
Since the v3 firmware was released, I tested again.
Boss KATANA 100 Firmware version: 3.01,
Linux Kernel version: 4.18 low latency.
The same issue still persists.
Might be a shot in the dark, but people (including myself) have gotten several Boss/Roland devices working after patching and compiling the kernel ourself.
It seems that many of the products from Boss/Roland use the exact same type of “IN/END points handling”. I don’t have the katana myself and aren’t able to test it. But I would start looking into it and read this thread. It’s full of useful information.
Thanks for the pointer! I was able to make my Katana work under Ubuntu 18.10 running the 4.18.0 kernel by adding this to sound/usb/pcm.c:355
> case USB_ID(0x0582, 0x01d8):
> return 0;
With these changes, I was able to record and play back through my amp with Jack. Thanks for the tip!
(In reply to szszoke from comment #10)
> Thanks for the pointer! I was able to make my Katana work under Ubuntu 18.10
> running the 4.18.0 kernel by adding this to sound/usb/pcm.c:355
> > case USB_ID(0x0582, 0x01d8):
> > return 0;
> With these changes, I was able to record and play back through my amp with
> Jack. Thanks for the tip!
You’re welcome. I suspected it was the same problem. We need more focus on this. Back at kernel 3.10 Roland/Boss devices was working perfectly fine out of the box. I know several people had tried reporting these errors, but apparently pro audio is not a high priority. I recommend compiling as module because it is much much faster than compiling full kernel every time you update. I use rolling release distros and update kernel often.
I ended up doing exactly that.
Could either of you just submit the fix patch? I'd happily apply the fix.
I can, but there are some things to consider:
1. This workaround works for multiple devices, but we need to hard-code the the USB identifiers.
2. According to the person who discovered this fix, it's a dirty hack that just hides the real problem
I will reach out to the original author and maybe he can explain this better.
Any new information on what could get this from a hack to a suitable patch?
I wrote in on the forum thread but I got no response so far.
I was thinking and hack or not, other devices are using this technique already, so I don't see why couldn't we use it for the Katana.
Takashi Iwai, if your offer still stands, I would like to help with submitting a fix.
I submitted a small patch with the fix.
(In reply to szszoke from comment #18)
> I submitted a small patch with the fix.
I have an issue with M-Audio C400, it's not recognized by JACK on Ubuntu(all versions) after this patch was submitted.
It's appear with no controls on ALSA mixer.
Can you post the output of lsusb? This patch should only affect devices that have this USB vendor and product ID: 0582:01d8.
(In reply to szszoke from comment #20)
> Can you post the output of lsusb? This patch should only affect devices that
> have this USB vendor and product ID: 0582:01d8.
This is my device:
Bus 001 Device 002: ID 0763:2030 Midiman
Your device should not be affected by the patch that was submitted to make the KATANA amps work, but you can try and undo this change: https://github.com/torvalds/linux/commit/7571b6a17fcc5e4f6903f065a82d0e38011346ed
This is the only change that was submitted.
Let me know if you need help with compiling the kernel.
(In reply to szszoke from comment #22)
> Your device should not be affected by the patch that was submitted to make
> the KATANA amps work, but you can try and undo this change:
> This is the only change that was submitted.
> Let me know if you need help with compiling the kernel.
I really don't know if this patch affected me, but after the release of the kernel with this patch, i'm getting this error, maybe something else has causing this.
I'm using XanMod kernel, version 5.3.8, in any version above, i'm getting this error.
I'm trying with Liquorix too, last version working is 5.3.0-10-1.
Even with last Ubuntu mainline kernel, 5.4.0, it happen.
Can you help-me anyway?
I recompiled the kernel without this patch for KATANA but still get the issue.
I had tried with XanMod 5.3.8.
Would it be possible to have the fix also applied for other Boss devices?
Mine is a GT-001 and on USB it reports ID 0582:01e5 Roland Corp.
So currently I keep on compiling the fix for snd-usb-audio myself to make it work.
Thank you in advance.
Yes, in fact I'm working on a patch that would make the SY-300 synth pedal work with this exact method.
Thanks again for your efforts and I am looking forward to it.
I just wanted to add that the Boss GT-1 (which is different from the GT-001) has this problem as well.
Boss GT-1 USB ID: 0582:01d6
Without the fix, recording and playback are not possible. With the fix, recording and playback work, although I'm getting frequent sample dropouts. Still, working with dropouts is better than not working at all.