Open-source USB interface: Audio Widget - Page 203 - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

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 19th December 2012, 12:00 AM   #2021
zumbik is offline zumbik  Europe
diyAudio Member
 
Join Date: Jul 2012
Hi,
I've spent the last 18 hours in quest: where is the problem.
I conducted all tests on the linux and windows7 64, with FW audio-widget-2012-11-08 and awx_20121213
The same pc, only fresh linux. Here I described step, by step how I installed my linux. Description contains configs files. This text alive. Remember, everything can change ...

Now I know that the problem is with XBMC player when running at 192k, only. Other formats work correctly.
MPD player works fine in any format.


audio-widget-2012-11-08, Quirks = ----

Code:
UAC2 XBMC linux
44 ok
48 ok
88 ok
96 ok
176 ok
192 ERRORS, metalic sounds
Feedback Format = 7.17 & Format: S32_LE for all formats.

UAC2 MPD linux
44 ok
48 ok
88 ok
96 ok
176 ok
192 Ok ***
Feedback Format = 7.17 & Format: S32_LE for all formats.
-----------------------------------------
UAC1 XBMC linux
44 ok
48 ok
Feedback Format = 10.14 & Format: S24_3LE for all formats.

UAC1 MPD linux
44 ok
48 ok
Feedback Format = 10.14 & Format: S24_3LE for all formats.
--------------------------------
UAC1 foobar2k windows
44 cracks
48 cracks

UAC1 AIMP3 windows
44 cracks
48 cracks
--------------------------------
UAC2 foobar2k windows
44 ok
48 ok
88 ok
96 ok
176 ok
192 Ok

UAC2 AIMP3 windows
44 ok
48 ok
88 ok
96 ok
176 ok
192 Ok
awx_20121213, Quirks = none as default

Code:
UAC2 XBMC linux
44  ok
48  ok
88  ok
96  ok
176 ok
192 Is much better, but not perfect. *
192 (quirk_linux) as above **
192 (quirk_ptest)   Format: S24_3LE ?
Feedback Format = 7.17 & Format: S32_LE for all formats.

UAC2 MPD linux
44  ok
48  ok
88  ok
96  ok
176  ok
192  ok - perfect!!! ***
Feedback Format = 7.17 & Format: S32_LE for all formats.
-----------------------------------------
UAC1 XBMC linux
44 ok 
48 ok
Feedback Format = 10.14 & Format: S24_3LE for all formats.

UAC1 MPD linux
44  ok
48  ok
Feedback Format = 10.14 & Format: S24_3LE for all formats.
--------------------------------
UAC1 foobar2k windows
44  cracks
48  cracks

UAC1 AIMP3 windows
44  cracks
48  cracks
--------------------------------
UAC2 foobar2k windows
44  ok
48  ok
88  metalic sounds
96  ok
176  ok
192  ok

UAC2 AIMP3 windows
44  ok
48  ok
88  metalic sounds
96  ok
176  ok
192  ok

* XBMC player. Some of the files works fine but not all.
** As above. However, there is a certain change. If I have a metallic sound, I press stop then restart plays, music play correctly.
*** Absolutely any 192k file plays correctly.
  Reply With Quote
Old 22nd December 2012, 11:48 AM   #2022
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Here is a firmware file for 16.16 UAC2 feedbac. It is tested on Windows and Linux on 44.1 and 192. This code is experimental. Please test it and let me know what works. My Mac purchase is taking longer time than predicted, so the FW is not tested on Mac. On Windows I have tested it with an updated version of Nikolay's ASIO driver, not with other ASIO drivers.

awx_20121222.zip

On Windows systems, close any ASIO player. Then make a backup of C:\Program Files (x86)\Audio-Widget\asiouac2.dll (or similar location) and replace it with the one from the zip file. If this works I'll package it into an installer.

This new build of asiouac2.dll supports both 15.17 and 16.16 feedback. All source code is commited to github.

Cheers,
BÝrge
  Reply With Quote
Old 22nd December 2012, 12:17 PM   #2023
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Quote:
Originally Posted by zumbik View Post
Hi,
I've spent the last 18 hours in quest: where is the problem.
Wow, impressive test! For your reference, the linux quirk setting in Widget Control is inactive in the fw versions you have tried.

I have lately had some problems with Windows and 88.2. It's good to know things are improving on Linux and 192.

The firmware I just uploaded uses the same feedback logic as awx_20121213.

BÝrge
  Reply With Quote
Old 22nd December 2012, 12:50 PM   #2024
dhbiker is offline dhbiker  Slovenia
diyAudio Member
 
Join Date: Feb 2012
Location: Maribor/Ormož, Slovenia
running now for one hour .. no strange metallic sounds (yet)
  Reply With Quote
Old 22nd December 2012, 03:32 PM   #2025
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Default Offline SRC

Guys, just to give you a heads-up: J-River Media Player (on Windows) does sample rate conversion and .wav output.

So now I have a selection of sine wave _and_ Enya at all relevant sample rates :-))

I plan to look at the Linux quirk replacement code and determine if there is an 88.2 problem on Windows.

BÝrge
  Reply With Quote
Old 22nd December 2012, 03:46 PM   #2026
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
I once tried playing enya backwards.

...sounds like the beatles.

__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  Reply With Quote
Old 22nd December 2012, 06:53 PM   #2027
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Quote:
Originally Posted by linuxworks View Post
I once tried playing enya backwards.

...sounds like the beatles.

LOL, this got me trying "Paul is dead" English-> Irish on Google translate :-)
  Reply With Quote
Old 22nd December 2012, 10:46 PM   #2028
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Hi,

I have made some changes to the code which replaces the Linux Quirk setting. This is a learning experience to me, so please let me know if you have any comments to what I did. The new code is not yet tested across the board, so if you experience anything being off during testing, let me know. On Win7-32 and Linux 3.0.0-12 Mint 64 (mpd) it works well.

On Windows this experimental firmware requires an updated ASIO driver because it uses 16.16 feedback, not 15.17. Make a backup of C:\Program Files (x86)\Audio Widget\asiouac2.dll and replace it with the one from the download. Make sure your player software is shut down during this operation. There is no need to reboot. On Linux there shouldn't be a need to change any settings. On Mac I haven't yet tested.

The Linux Quirk _used_to_be_ a Widget Control setting which would make the firmware behave differently on Linux and other OSes. For quite a while now the firmware has behaved the same way across all OSes, rendering the quirk useless. In fact, it is not considered in the firmware code.

My goal is interoperability across OSes. I have tried revising the code which replaces the Linux quirk. To test the code, I first disabled certain safeguards and was easily able to replicate the Linux error which Demian detected a while ago. In my tests I go 44-96-48-88. With the safeguards in, I no longer get the Linux error. Both the the revised code and the one in the stable branch remove the error. It might be superstition but I do believe the revised code gives better performance on 88.2 and 96.

For download: awx_20121222b.zip


Here's what I did:

Just like in the stable audio-widget branch, uac2_usb_specific_request.c sets the feedback frequency to 99ksps for 88.2 and 96. That's the safeguard I'm referring to above.

But uac2_device_audio_task.c will do:
Code:
if ( (current_freq.frequency == 88200) && (FB_rate > (98 << 14) ) )
     FB_rate = (88 << 14) + (1<<14)/5;
// and similar for 96ksps
rather than:
Code:
if (((current_freq.frequency == 88200) && (FB_rate > ((88 << 14) + (7 << 14)/10))) ||
    ((current_freq.frequency == 96000) && (FB_rate > ((96 << 14) + (6 << 14)/10))))
        FB_rate -= FB_RATE_DELTA * 512;
Like in the stable branch it does this after generating the first feedback package based on 99ksps. I have not yet tried replacing that initial feedback package.


BÝrge

Last edited by borges; 22nd December 2012 at 10:48 PM.
  Reply With Quote
Old 23rd December 2012, 04:12 AM   #2029
zumbik is offline zumbik  Europe
diyAudio Member
 
Join Date: Jul 2012
Fast & quick raport:
On awx_20121222b.zip & Linux

for UAC1
FF = 10.14
Format S24_3LE

----------------
for UAC2
FF = 8.16 (Why not 16.16 ?)
Format S32_LE

All formats: 44,48,88,96,176,192 in XBMC on Linux, OK

awx_20121222.zip not tested, yet.
  Reply With Quote
Old 23rd December 2012, 10:18 AM   #2030
borges is offline borges  Norway
diyAudio Member
 
Join Date: Dec 2003
Location: Oslo, Norway
Eh, hold off on the Windows testing for a little while, there's a strange bug in the compiled .dll. For some reason it works with debugging but not without (as the built release).

BÝrge
  Reply With Quote

Reply


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Async 192Khz USB - the SDR-Widget collaborative project SunRa PC Based 5 26th April 2011 06:38 PM
usb audio interface david12 Equipment & Tools 14 10th October 2010 02:58 AM
Cheap Audio Interface (USB?) to PC agm2003 Instruments and Amps 11 16th September 2007 07:48 AM
Open call for suggestions on Open Source DIY Audio Design gfergy Everything Else 1 15th April 2007 07:33 AM
USB Interface Perfect?- Computer Audio fmak Digital Source 3 4th December 2004 10:24 PM


New To Site? Need Help?

All times are GMT. The time now is 01:37 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2