Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Equipment & Tools From test equipment to hand tools

E-MU 0404 and Linux (also issues with REW at 96 kHz)
E-MU 0404 and Linux (also issues with REW at 96 kHz)
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 13th June 2019, 07:42 PM   #21
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Quote:
Originally Posted by Interference View Post
This is a known issue, due to some sub-optimal routing of some lines.
THanks for the hint, I will try the left-channel rewiring fix.
  Reply With Quote
Old 15th June 2019, 04:17 AM   #22
1audio is offline 1audio  United States
diyAudio Member
 
Join Date: Mar 2004
Location: SF Bay Area
E-MU 0404 and Linux (also issues with REW at 96 kHz)
Here is a link to a full thread on the rework. E-MU 0404 usb 2.0 and some "artifacts peaks" on left channel It should help.
__________________
Demian Martin
Product Design Services
  Reply With Quote
Old 15th June 2019, 09:19 AM   #23
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Thanks a lot.

The simple fix seems to work (I really wonder how they could route balanced signals that way). Both channels have basically same performance now (screenshots of joint-sides compensation at 1211Hz). It would have been better without the 1kHz USB artefact :-)
Attached Images
File Type: png EMU-left-fixed.png (16.6 KB, 75 views)
File Type: png EMU-right2.png (16.8 KB, 75 views)
File Type: jpg 20190615_102000.jpg (284.3 KB, 51 views)
  Reply With Quote
Old 15th June 2019, 04:09 PM   #24
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
The 4ch capture at > 48kHz is corrupted indeed. It looks like the CA0188 processor in E-MU sends samples in some incorrect byte order/position. Drivers for the old PCI E-MU cards had to take care of the FPGA firmware (sending programming commands), but the USB soundcard driver does not have to handle the firmware anymore (fortunately). IMO the windows E-MU driver fixes the stream received over USB.

I sent a question to the alsa-devel mailing list, hopefully it will reach some of the older E-MU PCI driver authors who could perhaps help with more info.

[alsa-devel] E-MU 0404 USB - 4ch capture at > 48kHz -> corrupted data

Fortunately I do not need the SPDIF input for my purpose but it would be nice to have the driver fixed.
  Reply With Quote
Old 15th June 2019, 05:12 PM   #25
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
I think the REW <-> E-MU 0404 USB issue is this:

E-MU
---------
* E-MU alsa driver does not work correctly with 4ch capture at > 48kHz
* but in .asoundrc you can configure a 2ch PCM device which always uses the 2ch altsetting, thus working OK for all freqs with analog in/out

Code:
pcm.emu2ch {
  type hw
  card "USB"
  device 0
  format S24_3LE
  channels 2
}
REW
-------
* REW offers sound devices it gets from java audio layer.
* It always opens the device at maximum channel count it finds
* Therefore it forces the non-working 4ch altsetting + no support for > 96kHz with E-MU

Java
-------

* Java can only enumerate audio cards (using alsa API snd_card_next), not individual PCM devices:

jdk11u/PLATFORM_API_LinuxOS_ALSA_PCMUtils.c at 737d8437886ad97c6ed21a25b9911c10b3886f61 * openjdk/jdk11u * GitHub

ubuntu - Use ALSA pcm outputs via the Java SoundSystem - Stack Overflow

E.g. portaudio enumerates over cards the same way as java does Source | Git | Assembla but then iterates over all plugin-defined PCM devices Source | Git | Assembla .

Available solutions
-------------------------

A) Fixing the USB driver. Still the 4-chans will not support 192kHz (by E-MU design)

B) Adding PCM enumeration to JDK - would be very useful but rather complicated

C) Having REW open the soundcard with configurable number of channels. I have not tried but REW authors should be able to at least test if they can do it (I saw the recent discussion about this issue on their forum).

D) Setting-up the CAPTURE chain like this: REW -> alsa looback device (creates a card, will be avaiable in java/REW) -> alsaloop utility -> emu2ch PCM device -> E-MU in 2ch mode.

Only option D makes it with configuration/setup only, all other options need coding.

I would love option B as user-defined alsa PCM devices can do magic and java software needs access to them.

Last edited by phofman; 15th June 2019 at 05:33 PM.
  Reply With Quote
Old 15th June 2019, 09:23 PM   #26
JohnPM is offline JohnPM  United Kingdom
diyAudio Member
 
Join Date: Oct 2008
Quote:
Originally Posted by phofman View Post
C) Having REW open the soundcard with configurable number of channels. I have not tried but REW authors should be able to at least test if they can do it (I saw the recent discussion about this issue on their forum).
I have added an option to limit access to the soundcard to stereo for the next beta build (V5.20 beta 13). Which channels are offered is something I can't influence, JavaSound will request a stereo line and will take whatever line or lines are returned.
  Reply With Quote
Old 15th June 2019, 09:35 PM   #27
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Thanks a lot for your fast response :-) I will check the altsetting used when the new beta is out.
  Reply With Quote
Old 16th June 2019, 08:51 AM   #28
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
I have proposed the change at the java sound mailing list, we will see the response.

<Sound Dev> Support for linux alsa PCM devices
  Reply With Quote
Old 16th June 2019, 12:56 PM   #29
Interference is offline Interference  Italy
diyAudio Member
 
Join Date: Jan 2013
Location: Padua
Thank you Pavel for the debug and all the actions taken, and thank you John for the workaround in the application.



It would be great to see this fixed in the driver but likely most of the original developers are not "alive" anymore in the community.


I guess we provided good help to anyone else who is still playing around with this device!
  Reply With Quote
Old 16th June 2019, 02:23 PM   #30
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
You are welcome. I want my hardware to be supported to maximum possible. In linux the options are in our hands, unlike in closed-source OSes.

Authors of the original driver are most likely still hanging around the alsa-devel mailing list. Nevertheless I doubt it will be fixed, unless someone steps in with some documentation. Creative/E-MU guys have the know-how but so far they have not been overly helpful...

I would like java to support the PCM devices (solution B). The patch itself would not be complicated, but the process of pushing it into mainline java is not exactly friendly... OpenJDK: How to contribute .

Last edited by phofman; 16th June 2019 at 02:26 PM.
  Reply With Quote

Reply


E-MU 0404 and Linux (also issues with REW at 96 kHz)Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
E-MU 0404 USB Modification? lumanauw Digital Line Level 241 28th December 2018 07:52 PM
Issues using E-MU 0404 USB for measurements (ARTA and RMAA) maxw Equipment & Tools 102 23rd September 2018 05:17 PM
emu 0404 usb Nikitas Swap Meet 6 9th October 2013 08:55 AM
E-mu 0404 problem tonyptony Digital Line Level 2 25th August 2012 01:00 AM
EMU 0404 PCI - Needs a fixin' first, but... jbeckva Digital Line Level 1 28th December 2010 02:53 PM


New To Site? Need Help?

All times are GMT. The time now is 08:57 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.00%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Copyright ©1999-2019 diyAudio
Wiki