[alsa-devel] snd-usb endpoint rework
Hello everyone,
I compiled today the Kernel 3.4.0-rc7 from the git and used this git to add the FTU support: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Unfortunately, all my USB sound card simply stopped working.
The FTU doesn't produce any sound, nor through Alsa or Jack. I tried playing a simple song through mplayer and nothing. I double checked the mixer, all volumes are set as they should. I checked dmesg, no error that could help. I'm running Ubuntu, and the only thing I can hear is the welcoming sound of ubuntu being cut-off almost instantly.
I tested my Edirol UA-25Ex, it is working all ok.
Let me know if there is any other info I could provide that would help,
Thanks in advance, Aurélien
Hello everyone,
I compiled today the Kernel 3.4.0-rc7 from the git and used this git to add the FTU support: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Unfortunately, all my USB sound card simply stopped working.
The FTU doesn't produce any sound, nor through Alsa or Jack. I tried playing a simple song through mplayer and nothing. I double checked the mixer, all volumes are set as they should. I checked dmesg, no error that could help. I'm running Ubuntu, and the only thing I can hear is the welcoming sound of ubuntu being cut-off almost instantly.
I tested my Edirol UA-25Ex, it is working all ok.
Correction, the UA-25Ex doesn't work either. The sound dies out after a few minutes being used.
When the sound dies out, dmesg prints:
[ 550.114621] urb status -32 [ 551.601237] urb status -32 [ 551.681206] urb status -32 [ 553.563336] urb status -32 [ 565.588044] urb status -32 [ 566.786965] urb status -32 [ 625.130221] cannot submit urb 0, error -28: not enough bandwidth
If there is any other info I can provide, let me know,
Aurélien
Hi Aurélien,
On 20.05.2012 16:13, Aurélien Leblond wrote:
Hello everyone,
I compiled today the Kernel 3.4.0-rc7 from the git and used this git to add the FTU support: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Unfortunately, all my USB sound card simply stopped working.
The FTU doesn't produce any sound, nor through Alsa or Jack. I tried playing a simple song through mplayer and nothing. I double checked the mixer, all volumes are set as they should. I checked dmesg, no error that could help. I'm running Ubuntu, and the only thing I can hear is the welcoming sound of ubuntu being cut-off almost instantly.
I tested my Edirol UA-25Ex, it is working all ok.
Correction, the UA-25Ex doesn't work either. The sound dies out after a few minutes being used.
Odd. I did just that - built a kernel from Takashi's master branch - and cannot reproduce the effect you're seeing. I'm testing with both the FTU and a NI Traktor Audio 6 (which is a class compliant device) and both stream reliable.
Are you totally sure that your hardware setup is ok? Did you change the USB cables or anything? Does running an older kernel, while leaving everthing else the same, solve the problem?
When the sound dies out, dmesg prints:
[ 550.114621] urb status -32 [ 551.601237] urb status -32 [ 551.681206] urb status -32 [ 553.563336] urb status -32 [ 565.588044] urb status -32 [ 566.786965] urb status -32 [ 625.130221] cannot submit urb 0, error -28: not enough bandwidth
If there is any other info I can provide, let me know,
Can you provide more context of the logs?
Thanks, Daniel
On 20.05.2012 16:13, Aurélien Leblond wrote:
Hello everyone,
I compiled today the Kernel 3.4.0-rc7 from the git and used this git to add the FTU support: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Unfortunately, all my USB sound card simply stopped working.
The FTU doesn't produce any sound, nor through Alsa or Jack. I tried playing a simple song through mplayer and nothing. I double checked the mixer, all volumes are set as they should. I checked dmesg, no error that could help. I'm running Ubuntu, and the only thing I can hear is the welcoming sound of ubuntu being cut-off almost instantly.
I tested my Edirol UA-25Ex, it is working all ok.
Correction, the UA-25Ex doesn't work either. The sound dies out after a few minutes being used.
Odd. I did just that - built a kernel from Takashi's master branch - and cannot reproduce the effect you're seeing. I'm testing with both the FTU and a NI Traktor Audio 6 (which is a class compliant device) and both stream reliable.
Are you totally sure that your hardware setup is ok? Did you change the USB cables or anything? Does running an older kernel, while leaving everthing else the same, solve the problem?
Yes, I checked running the standard Ubuntu Kernel, and the FTU/UA25-Ex are running ok. But it is a 3.2 Kernel, so the stream logic is not available.
Yesterday, I compiled alsa-driver from the alsa-driver.git and alsa-kmirror.git (I'm actually not sure what is the difference between this gits and the one from Takashi) and installed it on the kernel 3.2 coming with Ubuntu. I get the exact same results: - the FTU doesn't produce any sound BUT the Ubuntu welcome one. Although the mixers are ok, I'm starting to wonder if they might still be muted. (on that note, the "internal" sound of the FTU is ok, I can play my guitar plugged on the soundcard and hear it properly). - I haven't tested the UA-25Ex with that setup, I'll try that this evening.
When the sound dies out, dmesg prints:
[ 550.114621] urb status -32 [ 551.601237] urb status -32 [ 551.681206] urb status -32 [ 553.563336] urb status -32 [ 565.588044] urb status -32 [ 566.786965] urb status -32 [ 625.130221] cannot submit urb 0, error -28: not enough bandwidth
If there is any other info I can provide, let me know,
Can you provide more context of the logs?
I'll provide a fuller log this evening.
Regards, Aurélien
On 21.05.2012 12:19, Aurélien Leblond wrote:
On 20.05.2012 16:13, Aurélien Leblond wrote:
Hello everyone,
I compiled today the Kernel 3.4.0-rc7 from the git and used this git to add the FTU support: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
Unfortunately, all my USB sound card simply stopped working.
The FTU doesn't produce any sound, nor through Alsa or Jack. I tried playing a simple song through mplayer and nothing. I double checked the mixer, all volumes are set as they should. I checked dmesg, no error that could help. I'm running Ubuntu, and the only thing I can hear is the welcoming sound of ubuntu being cut-off almost instantly.
I tested my Edirol UA-25Ex, it is working all ok.
Correction, the UA-25Ex doesn't work either. The sound dies out after a few minutes being used.
Odd. I did just that - built a kernel from Takashi's master branch - and cannot reproduce the effect you're seeing. I'm testing with both the FTU and a NI Traktor Audio 6 (which is a class compliant device) and both stream reliable.
Are you totally sure that your hardware setup is ok? Did you change the USB cables or anything? Does running an older kernel, while leaving everthing else the same, solve the problem?
Yes, I checked running the standard Ubuntu Kernel, and the FTU/UA25-Ex are running ok. But it is a 3.2 Kernel, so the stream logic is not available.
Yesterday, I compiled alsa-driver from the alsa-driver.git and alsa-kmirror.git (I'm actually not sure what is the difference between this gits and the one from Takashi) and installed it on the kernel 3.2 coming with Ubuntu. I get the exact same results:
- the FTU doesn't produce any sound BUT the Ubuntu welcome one.
Can you try using something like xmms maybe? I'm interested whether the audio interface does consume any data or if the whole thing is stuck.
Although the mixers are ok, I'm starting to wonder if they might still be muted.
There were some other patches to augment the mixer routing possibilities. Not sure if that has any relation to your issues, but I doubt it.
(on that note, the "internal" sound of the FTU is ok, I can play my guitar plugged on the soundcard and hear it properly).
That doesn't include any streaming to the host and back, so that doesn't help much unfortunately.
- I haven't tested the UA-25Ex with that setup, I'll try that this evening.
When the sound dies out, dmesg prints:
[ 550.114621] urb status -32 [ 551.601237] urb status -32 [ 551.681206] urb status -32 [ 553.563336] urb status -32 [ 565.588044] urb status -32 [ 566.786965] urb status -32 [ 625.130221] cannot submit urb 0, error -28: not enough bandwidth
If there is any other info I can provide, let me know,
Can you provide more context of the logs?
I'll provide a fuller log this evening.
Please do and also include the lines that are produced when you plug in the device.
Felix, Grant - can you try booting a kernel built from Takashi's master branch and check with the FTU and other cards?
Thanks, Daniel
Can you try using something like xmms maybe? I'm interested whether the audio interface does consume any data or if the whole thing is stuck.
This is now getting weirder and weirder, but here are the results of today's testing.
Yesterday and today, I have been running the Kernel 3.2.16 with the Alsa git. Yesterday I couldn't play any sound whatsoever with the FTU, and the UA25-Ex was dying out after a few minutes.
Today: (the testing is done using VLC connecting directly to ALSA, I removed pulseaudio from Ubuntu a few days ago to eliminate that as a possible cause) The first time I started my laptop with the FTU plugged - no sound, VLC is not hanging (I can see playing time move along). Unplugged the FTU, plugged back - VLC is now playing sound, but the sound quality is very "low-def" (I'm not sure how to explain that properly). Restarting my laptop, FTU plugged in - VLC is now playins sound, still with very poor sound quality.
Restarting my laptop with the UA-25Ex plugged in - VLC is working ok, sound quality is good, been running it for 10 minutes without a problem.
Im both cases, starting Jack results in an immediate freeze of my laptop with CPU going 100% (I guess, as the laptop fan is going crazy), and I guess it is related as running Jack on the previous driver/original Ubuntu kernel is ok.
Although the mixers are ok, I'm starting to wonder if they might still be muted.
There were some other patches to augment the mixer routing possibilities. Not sure if that has any relation to your issues, but I doubt it.
- I haven't tested the UA-25Ex with that setup, I'll try that this evening.
When the sound dies out, dmesg prints:
[ 550.114621] urb status -32 [ 551.601237] urb status -32 [ 551.681206] urb status -32 [ 553.563336] urb status -32 [ 565.588044] urb status -32 [ 566.786965] urb status -32 [ 625.130221] cannot submit urb 0, error -28: not enough bandwidth
If there is any other info I can provide, let me know,
Can you provide more context of the logs?
I cannot reproduce this problem anymore. If I encounter it again, I'll save a trace of the dmesg.
It's quite hard to provide you with proper info as it almost looks like everyday produce a new scenario.
If there is anything I can provide to help, let me know,
Aurélien
On 21.05.2012 20:45, Aurélien Leblond wrote:
Can you try using something like xmms maybe? I'm interested whether the audio interface does consume any data or if the whole thing is stuck.
This is now getting weirder and weirder, but here are the results of today's testing.
Yesterday and today, I have been running the Kernel 3.2.16 with the Alsa git. Yesterday I couldn't play any sound whatsoever with the FTU, and the UA25-Ex was dying out after a few minutes.
Today: (the testing is done using VLC connecting directly to ALSA, I removed pulseaudio from Ubuntu a few days ago to eliminate that as a possible cause) The first time I started my laptop with the FTU plugged - no sound, VLC is not hanging (I can see playing time move along). Unplugged the FTU, plugged back - VLC is now playing sound, but the sound quality is very "low-def" (I'm not sure how to explain that properly).
I think I ran into the same thing today. The reason for me was that the new mixer controls that were added now allow setting the effect unit. Actually, if you hear what I heared, this is just a simple reverb effect that is overlayed. And yes, it sounds cheap :) I ran "alsamixer -Dhw:Ultra" and switched all related controls off, and the the sound came back again as expected.
Restarting my laptop, FTU plugged in - VLC is now playins sound, still with very poor sound quality.
Restarting my laptop with the UA-25Ex plugged in - VLC is working ok, sound quality is good, been running it for 10 minutes without a problem.
Might be the controls are not yet properly initialized, and the hardware comes up in an undefined state. That would be easy to solve.
Im both cases, starting Jack results in an immediate freeze of my laptop with CPU going 100% (I guess, as the laptop fan is going crazy), and I guess it is related as running Jack on the previous driver/original Ubuntu kernel is ok.
That is another issue then, but certainly something I need to look into.
I cannot reproduce this problem anymore. If I encounter it again, I'll save a trace of the dmesg.
It's quite hard to provide you with proper info as it almost looks like everyday produce a new scenario.
Usually the reason for loosing the overview is too many factors that are involved when testing. Try to minimize the things you change from one test run to the other as much as possible, and test extensively with one configuration.
If there is anything I can provide to help, let me know,
Every bit and piece of empiric information is valuable and might help finding the issue :)
Thanks for your help, Daniel
Hello Daniel,
Here are the results of today's testing. I don't know if they'll help in anyway, but here we go.
BOOT WITH THE UA-25EX
Trying to use aplay:
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
blablack@igorito:~$ aplay -D default:CARD=UA25EX 10\ -\ Track\ 10-L.wav
Second one work ok... Let it play for several minutes and it's all fine.
BOOT WITH THE FTU
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
blablack@igorito:~$ aplay -D default:CARD=Ultra 10\ -\ Track\ 10-L.wav
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
Using mplayer...well I don't know if I'm just an idiot or if there is a deeper problem, but I can't get the alsa parameter to connect to the sound card. And if I don't specify the -ao parameter, I get the same error as aplay "cannot find card 0".
Using VLC, I can see that VLC doesn't get stuck but plays something, unfortunately, still no sound.
In dmesg, I get: [ 3.031270] usb 2-1.2: new high-speed USB device number 3 using ehci_hcd [ 3.118175] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x7 has invalid maxpacket 8 [ 3.118185] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x87 has invalid maxpacket 8 ... [ 18.090854] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume [ 18.107831] ALSA mixer.c:787 usb-audio: set quirk for FTU Effect Duration [ 18.109496] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume
The first error message is "ok" I far as I remember, and the second message shows the detection of the FTU - all look fine to me...
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
If there is anything else I can provide to you, let me know. Hope all this help somehow!
Aurélien
Sorry, I can't help testing at the moment. I'm extremely busy preparing a couple of shows I'll be playing in the next few weeks.
But Aurélien's problems remind me of an issue I had some weeks ago. The issue was caused by a jackd process that was unintentionally launched via D-Bus on start up.
Regards, Felix Am 22.05.2012 20:22 schrieb "Aurélien Leblond" blablack@gmail.com:
Hello Daniel,
Here are the results of today's testing. I don't know if they'll help in anyway, but here we go.
BOOT WITH THE UA-25EX
Trying to use aplay:
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
blablack@igorito:~$ aplay -D default:CARD=UA25EX 10\ -\ Track\ 10-L.wav
Second one work ok... Let it play for several minutes and it's all fine.
BOOT WITH THE FTU
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
blablack@igorito:~$ aplay -D default:CARD=Ultra 10\ -\ Track\ 10-L.wav
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
Using mplayer...well I don't know if I'm just an idiot or if there is a deeper problem, but I can't get the alsa parameter to connect to the sound card. And if I don't specify the -ao parameter, I get the same error as aplay "cannot find card 0".
Using VLC, I can see that VLC doesn't get stuck but plays something, unfortunately, still no sound.
In dmesg, I get: [ 3.031270] usb 2-1.2: new high-speed USB device number 3 using ehci_hcd [ 3.118175] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x7 has invalid maxpacket 8 [ 3.118185] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x87 has invalid maxpacket 8 ... [ 18.090854] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume [ 18.107831] ALSA mixer.c:787 usb-audio: set quirk for FTU Effect Duration [ 18.109496] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume
The first error message is "ok" I far as I remember, and the second message shows the detection of the FTU - all look fine to me...
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
If there is anything else I can provide to you, let me know. Hope all this help somehow!
Aurélien
Hey Aurélien,
On 22.05.2012 20:22, Aurélien Leblond wrote:
Hello Daniel,
Here are the results of today's testing. I don't know if they'll help in anyway, but here we go.
Thanks! Which version of your kernel is this? The one with the new driver?
BOOT WITH THE UA-25EX
Trying to use aplay:
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
What does "aplay -l" show? Also, what does it show on the older Ubuntu kernel? Is there any difference?
blablack@igorito:~$ aplay -D default:CARD=UA25EX 10\ -\ Track\ 10-L.wav
Second one work ok... Let it play for several minutes and it's all fine.
Ok, fine.
BOOT WITH THE FTU
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
blablack@igorito:~$ aplay -D default:CARD=Ultra 10\ -\ Track\ 10-L.wav
Try "aplay -D hw:CARD=Ultra 10\ -\ Track\ 10-L.wav"
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
The 4 front LEDs on the FTU signal input level activity, not output. Is there anything connected to those inputs?
Using mplayer...well I don't know if I'm just an idiot or if there is a deeper problem, but I can't get the alsa parameter to connect to the sound card. And if I don't specify the -ao parameter, I get the same error as aplay "cannot find card 0".
Try "mplayer -ao alsa:device=plughw=Ultra file.wav"
Using VLC, I can see that VLC doesn't get stuck but plays something, unfortunately, still no sound.
I have to try VLC later today.
In dmesg, I get: [ 3.031270] usb 2-1.2: new high-speed USB device number 3 using ehci_hcd [ 3.118175] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x7 has invalid maxpacket 8 [ 3.118185] usb 2-1.2: config 1 interface 3 altsetting 0 bulk endpoint 0x87 has invalid maxpacket 8 ... [ 18.090854] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume [ 18.107831] ALSA mixer.c:787 usb-audio: set quirk for FTU Effect Duration [ 18.109496] ALSA mixer.c:796 usb-audio: set quirks for FTU Effect Feedback/Volume
The first error message is "ok" I far as I remember, and the second message shows the detection of the FTU - all look fine to me...
Yes, to me, too.
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
I really fail to see any of these issues on my system. I tried with both jackd and jackd2 and set them to real time priorities and chose 64 bytes sample frames in PureData. All good, no lockups. Can you describe your jackd setup? How do you start it?
If there is anything else I can provide to you, let me know. Hope all this help somehow!
I need to be able to see the issues you describe. Once I do, I'll work fixing them!
Daniel
[SNIP]
(sorry daniel you get two copies because I forgot to cc list and others
If there is anything else I can provide to you, let me know. Hope all this help somehow!
I need to be able to see the issues you describe. Once I do, I'll work fixing them!
Daniel
ok I just built a new kernel.
I started with 3.4 then applied the rt7 patches then merged the topic/misc tree from sound (to get the ftu fixes from felix and daniel
so I have 3.4-rt7+sound/topic/misc
checkout v3.4 tag then apply the -rt patches using quiltapply then merge sound/topic/misc
This all seems to be working ok. if I start jack with anything less that 128 samples It starts but I get no audio and lots of xruns (this is the same as on previous kernel 3.4-rc4-rt5)
i've run jack_iodelay through a loopback (TRS from output 3 to input 3 on the back of the FTU) for several hours without any problems
Felix,
the effects controls are not obvious to me I thought there were independent fx sends for each output so expected 16x4 new controls plus the returns but maybe that's not howitis.
also has anyone looked at how metering is reported on the wire?
Grant.
2012/5/26 Grant Diffey gdiffey@gmail.com:
Felix,
the effects controls are not obvious to me I thought there were independent fx sends for each output so expected 16x4 new controls plus the returns but maybe that's not howitis.
I have been confused about it, too. But that's just how the FTU works. There are only 16 sends.
also has anyone looked at how metering is reported on the wire?
At least I have not.
Regards, Felix
Hi Daniel,
I have tried to do a bit more thorough testing, find the details below. Hope this helps!
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
What does "aplay -l" show? Also, what does it show on the older Ubuntu kernel? Is there any difference?
That is just me being an idiot. Ubuntu never mounts a USB sound card on the first slot. Compiling with the original Alsa coming from Ubuntu, I get the same error.
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
The 4 front LEDs on the FTU signal input level activity, not output. Is there anything connected to those inputs?
There are stuff plugged on the 3 first inputs (2 for my guitar, 1 for my mic), bit they are all turned off during testing. This click and the 4 leds flash is very similar to the one you have when the FTU is plugged in to the USB port after being turned on. Somehow, when I want to play something, it makes the 4 leds flash + a click/crackle in the speakers.
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
I really fail to see any of these issues on my system. I tried with both jackd and jackd2 and set them to real time priorities and chose 64 bytes sample frames in PureData. All good, no lockups. Can you describe your jackd setup? How do you start it?
jackd -dalsa -dhw:1 -r48000 -p256 -n3 -Xseq
Normal Ubuntu Kernel: - Compiled with low latency settings - 3.2.18 - Original Alsa
* FTU - mplayer: OK - jack: OK
* UA-25Ex - mplayer: OK - jack: OK
Ubuntu Kernel + Alsa Git: - Compiled with low latency settings - 3.2.18 - Alsa from git alsa-kmirror and alsa-driver - git alsa-kmirror and alsa-driver fetched today (25th May)
* FTU - mplayer: plays but no sound - jack: freezes the whole system
* UA-25Ex - mplayer: Ok - jack: freezes the whole system
"Pig" Kernel: - Original Ubuntu Kernel - 3.2.18 - Compiled with low latency settings - sound/usb directory from Kernel replaced by sound/usb directory from Takashi's Kernel - thus the name of this setup, "Pig" :) :)
* FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: freezes the whole system
Takashi's Kernel: - Compiled with low latency settings - 3.4.0 - Alsa from Takashi's kernel - Fetched today (26th May) * FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: OK
I hope this will help you find out where the problem is. At least for now I can use the 3.4.0 kernel with the UA-25Ex
Let me know if I can provide you with any more details.
Regards, Aurélien
Hello Daniel,
As I told you in my previous mail, after few hours of frustration and testing, I decided to do a fresh install of Ubuntu 12.04 64bit.
After reinstalling Ubuntu, my first step was to compile Takashi's kernel. And it worked! I could play a song on the FTU, run Jackd, etc.
Unfortunately, after re-installing all my music software and updating Ubuntu, I'm now back to the scenarios I presented to you previously...
What I will do now is: - Keep the .deb of the different kernel I compiled. - Re-install once again my laptop. - Not do any update nor install anything but the kernels - Do my testings.
If this works, I guess we can conclude that something in Ubuntu is messing with the sound-usb modules.
I'll keep you updated.
If you have any updates, let me know,
Aurélien
On Sat, May 26, 2012 at 5:48 PM, Aurélien Leblond blablack@gmail.com wrote:
Hi Daniel,
I have tried to do a bit more thorough testing, find the details below. Hope this helps!
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
What does "aplay -l" show? Also, what does it show on the older Ubuntu kernel? Is there any difference?
That is just me being an idiot. Ubuntu never mounts a USB sound card on the first slot. Compiling with the original Alsa coming from Ubuntu, I get the same error.
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
The 4 front LEDs on the FTU signal input level activity, not output. Is there anything connected to those inputs?
There are stuff plugged on the 3 first inputs (2 for my guitar, 1 for my mic), bit they are all turned off during testing. This click and the 4 leds flash is very similar to the one you have when the FTU is plugged in to the USB port after being turned on. Somehow, when I want to play something, it makes the 4 leds flash + a click/crackle in the speakers.
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
I really fail to see any of these issues on my system. I tried with both jackd and jackd2 and set them to real time priorities and chose 64 bytes sample frames in PureData. All good, no lockups. Can you describe your jackd setup? How do you start it?
jackd -dalsa -dhw:1 -r48000 -p256 -n3 -Xseq
Normal Ubuntu Kernel: - Compiled with low latency settings - 3.2.18 - Original Alsa
* FTU - mplayer: OK - jack: OK
* UA-25Ex - mplayer: OK - jack: OK
Ubuntu Kernel + Alsa Git: - Compiled with low latency settings - 3.2.18 - Alsa from git alsa-kmirror and alsa-driver - git alsa-kmirror and alsa-driver fetched today (25th May)
* FTU - mplayer: plays but no sound - jack: freezes the whole system
* UA-25Ex - mplayer: Ok - jack: freezes the whole system
"Pig" Kernel: - Original Ubuntu Kernel - 3.2.18 - Compiled with low latency settings - sound/usb directory from Kernel replaced by sound/usb directory from Takashi's Kernel - thus the name of this setup, "Pig" :) :)
* FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: freezes the whole system
Takashi's Kernel: - Compiled with low latency settings - 3.4.0 - Alsa from Takashi's kernel - Fetched today (26th May)
* FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: OK
I hope this will help you find out where the problem is. At least for now I can use the 3.4.0 kernel with the UA-25Ex
Let me know if I can provide you with any more details.
Regards, Aurélien
Hi Daniel,
After the last reinstalling my laptop one last time, I cannot reproduce the issue anymore. Kernel 3.2.16 from Ubuntu compile with the Alsa drivers from GIT and Kernel 3.4 RC7. I have been playing music all day today without any issues.
The 3 big differences I have compared to my previous install are: - I used to have the RT_GROUP_SCHED option deactivated in my kernel to be able to run jack with runtime. I don't seem to need it now in Ubuntu 12.04. - I used to install the Ubuntu Proposed Updates (those are untested packages), I didn't this time for sake of stability. - I used to use the kernel .config file from the Ubuntu LowLatency kernel as my base. This time I used the .config of the generic kernel.
To be honest, now that my pc is working, I wouldn't change a thing :) But if you would like me to test the 3 points above and to try and find what the problem was in the first place, let me know,
Regards, Aurélien
On Thu, May 31, 2012 at 9:32 PM, Aurélien Leblond blablack@gmail.com wrote:
Hello Daniel,
As I told you in my previous mail, after few hours of frustration and testing, I decided to do a fresh install of Ubuntu 12.04 64bit.
After reinstalling Ubuntu, my first step was to compile Takashi's kernel. And it worked! I could play a song on the FTU, run Jackd, etc.
Unfortunately, after re-installing all my music software and updating Ubuntu, I'm now back to the scenarios I presented to you previously...
What I will do now is:
- Keep the .deb of the different kernel I compiled.
- Re-install once again my laptop.
- Not do any update nor install anything but the kernels
- Do my testings.
If this works, I guess we can conclude that something in Ubuntu is messing with the sound-usb modules.
I'll keep you updated.
If you have any updates, let me know,
Aurélien
On Sat, May 26, 2012 at 5:48 PM, Aurélien Leblond blablack@gmail.com wrote:
Hi Daniel,
I have tried to do a bit more thorough testing, find the details below. Hope this helps!
blablack@igorito:~$ aplay 10\ -\ Track\ 10-L.wav ALSA lib confmisc.c:768:(parse_card) cannot find card '0' ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default aplay: main:682: audio open error: No such file or directory
What does "aplay -l" show? Also, what does it show on the older Ubuntu kernel? Is there any difference?
That is just me being an idiot. Ubuntu never mounts a USB sound card on the first slot. Compiling with the original Alsa coming from Ubuntu, I get the same error.
No sound... I tried to reboot several times, unplug/replug, checked alsamixer: all look fine to me but still no sound. Actually, it is not "exactly" no sound: I can see the 4 front leds flash very quickly, and I can hear a click in the speakers (with the FX, the click is longer due to the reverb, handy to notice it!).
The 4 front LEDs on the FTU signal input level activity, not output. Is there anything connected to those inputs?
There are stuff plugged on the 3 first inputs (2 for my guitar, 1 for my mic), bit they are all turned off during testing. This click and the 4 leds flash is very similar to the one you have when the FTU is plugged in to the USB port after being turned on. Somehow, when I want to play something, it makes the 4 leds flash + a click/crackle in the speakers.
IN BOTH CASES, FTU AND UA-25EX
Starting jack result in an immediate freeze of the system.
I really fail to see any of these issues on my system. I tried with both jackd and jackd2 and set them to real time priorities and chose 64 bytes sample frames in PureData. All good, no lockups. Can you describe your jackd setup? How do you start it?
jackd -dalsa -dhw:1 -r48000 -p256 -n3 -Xseq
Normal Ubuntu Kernel: - Compiled with low latency settings - 3.2.18 - Original Alsa
* FTU - mplayer: OK - jack: OK
* UA-25Ex - mplayer: OK - jack: OK
Ubuntu Kernel + Alsa Git: - Compiled with low latency settings - 3.2.18 - Alsa from git alsa-kmirror and alsa-driver - git alsa-kmirror and alsa-driver fetched today (25th May)
* FTU - mplayer: plays but no sound - jack: freezes the whole system
* UA-25Ex - mplayer: Ok - jack: freezes the whole system
"Pig" Kernel: - Original Ubuntu Kernel - 3.2.18 - Compiled with low latency settings - sound/usb directory from Kernel replaced by sound/usb directory from Takashi's Kernel - thus the name of this setup, "Pig" :) :)
* FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: freezes the whole system
Takashi's Kernel: - Compiled with low latency settings - 3.4.0 - Alsa from Takashi's kernel - Fetched today (26th May)
* FTU - mplayer: I get click + 4 led flash, and then just got half a second of the song before it goes mute. Unplug/Replug, same results (except the sound goes mute after 5/10 sec, tried several times, I couldn't to 15 seconds). Mplayer keeps reading, but there is no sound. - jack: Works ok, but I have no sound! (was after unplug/replug)
* UA-25Ex - mplayer: OK - jack: OK
I hope this will help you find out where the problem is. At least for now I can use the 3.4.0 kernel with the UA-25Ex
Let me know if I can provide you with any more details.
Regards, Aurélien
participants (4)
-
Aurélien Leblond
-
Daniel Mack
-
Felix Homann
-
Grant Diffey