Choosing the best DAC for Odroid C2

Post Reply
best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

Sound quality HiFi Shield is good but not great that is why I decided to replace it.
Does anybody know if DAC WeiLiang SU1 Pure USB XOMS AK4399 сan be successful connected to Odroid C2 USB input port (see link below) and used all functions?
http://www.ebay.com/itm/Completed-WeiLi ... SwFnFWBNLB

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

Yes it can and it will work fine.

I'm using XMOS + LKS audio ES92018 based DAC.

Whenever you connect USB Ubuntu should automatically load snd_usbaudio module and you should see your device in alsa (aplay -L)

Sent from my Nexus 6P using Tapatalk

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

otec wrote:Yes it can and it will work fine.

I'm using XMOS + LKS audio ES92018 based DAC.

Whenever you connect USB Ubuntu should automatically load snd_usbaudio module and you should see your device in alsa (aplay -L)

Sent from my Nexus 6P using Tapatalk
Please give me the link to your DAC sample (XMOS + LKS audio ES92018 based DAC) in Internet.
Thank you in advance!

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

otec wrote:It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.
Thank You very much!

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

I have the DAC SMSL M8 that it is XMOS + ES9018 integrated (16/44.1 + Hires 24/192 + DSD 64/128) so let wait for the 1st Rune Audio release to see how it works with my Odroid C2.

I tested it with Raspberry Pi 2 played by Rune Audio that it worked fine perfectly http://www.runeaudio.com/forum/rune-aud ... 27cd5da4cb

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

dunghnguyen wrote:I have the DAC SMSL M8 that it is XMOS + ES9018 integrated (16/44.1 + Hires 24/192 + DSD 64/128) so let wait for the 1st Rune Audio release to see how it works with my Odroid C2.

I tested it with Raspberry Pi 2 played by Rune Audio that it worked fine perfectly http://www.runeaudio.com/forum/rune-aud ... 27cd5da4cb
Why do you need runeaudio for that?

Just plug it in, configure pulseaudio, mpd and here ya go.

Sent from my Nexus 6P using Tapatalk

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

dunghnguyen wrote:I have the DAC SMSL M8 that it is XMOS + ES9018 integrated (16/44.1 + Hires 24/192 + DSD 64/128) so let wait for the 1st Rune Audio release to see how it works with my Odroid C2.

I tested it with Raspberry Pi 2 played by Rune Audio that it worked fine perfectly http://www.runeaudio.com/forum/rune-aud ... 27cd5da4cb
Can you describe briefly the sound quality your DAC to compare with HiFi Shield?
On my mind HiFi shield is better, no sens to replace.

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

otec wrote:It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.
Can you describe in short about sound quality of SMSL M8 DAC ES9018 you use?
Please give me a link on this DAC.
http://www.ebay.com/itm/SMSL-M8-DAC-ES9 ... Sw~1FUX3ZA
http://www.ebay.com/itm/Top-Asynchronou ... SwyQtV0u-G
http://www.ebay.com/itm/New-XMOS-U8-USB ... Swu4BV0u-N

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

otec wrote:Why do you need runeaudio for that?

Just plug it in, configure pulseaudio, mpd and here ya go.
Hi bro ! It seems you are the only one here could help all of us how to do? Tks to advise us how to install pulse, config it with mod ...God bless you!

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

otec wrote:It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.
Please explain! Do You have this DAC http://www.ebay.com/itm/upgrade-Talema- ... SwwpdW7r3X ?
One more link: https://www.youtube.com/watch?v=F2Kq9eKjKG8

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

dunghnguyen wrote:
otec wrote:Why do you need runeaudio for that?

Just plug it in, configure pulseaudio, mpd and here ya go.
Hi bro ! It seems you are the only one here could help all of us how to do? Tks to advise us how to install pulse, config it with mod ...God bless you!
So first thing to do is to open: /etc/modprobe.d/alsa-base.conf and change

Code: Select all

options snd-usb-audio index=1 nrpacks=1
reboot.

After that you should see XMOS USB audio device in aplay -l

Code: Select all

$:/etc/modprobe.d$ aplay -l
**** List of PLAYBACK Hardware Devices ****
...
card 2: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
After that edit /etc/asound.conf and set card 1 as a default output device

Code: Select all

pcm.!default {
    type hw
    card 1
    device 0
}

ctl.!default {
    type hw
    card 1
    device 0
}

pcm.xmos {
    type rate
    slave {
        pcm "hw:1,0"
        rate 192000
        format S24_LE
    }
    converter "samplerate_medium"
}
after that you should be able to test sound by playing some kind of wav file (download something from internet)

Code: Select all

aplay -Dxmos <sample.wav>

Let me know if this is working, I will explain how to setup pulseaudio/mpd and web front-end for mpd - ympd.

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

best_odroidfreak wrote:
otec wrote:It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.
Please explain! Do You have this DAC http://www.ebay.com/itm/upgrade-Talema- ... SwwpdW7r3X ?
One more link: https://www.youtube.com/watch?v=F2Kq9eKjKG8
This one: http://www.mu-sound.com/da003_index_en.html

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

best_odroidfreak wrote:
otec wrote:It doesn't matter. As long as you have USB xmos device Linux can output audio to it. Then it's up to that xmos how it passes the data to DAC.

But for reference I have

Breeze audio xmos u8
lks audio mh-da003

PS.

Technically speaking Lks DAC already have XMOS USB interface, it's just I use it on my desktop PC. That's why I added xmos u8 for odroid and connect it to DAC via AES/EBU cable.
Can you describe in short about sound quality of SMSL M8 DAC ES9018 you use?
Please give me a link on this DAC.
http://www.ebay.com/itm/SMSL-M8-DAC-ES9 ... Sw~1FUX3ZA
http://www.ebay.com/itm/Top-Asynchronou ... SwyQtV0u-G
http://www.ebay.com/itm/New-XMOS-U8-USB ... Swu4BV0u-N
Bro, I bought from here http://s.aliexpress.com/ai2aMz22

I bought it when the price was only 200bugs, it is about 225bugs now ;). Let nego with the seller, I am sure she can give discount. Good luck !

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

@otec: Hi bro! Firstly I am very excited with your instruction, so I did as following and its result:

1) When editing the /etc/modprobe.d/alsa-base.conf that I have seen 2 lines of "options snd-usb-audio" that I edited as follows:

Code: Select all

options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=1 nrpacks=1
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=1 nrpacks=1
Are they edited correctly?


2) When run the command of aplay -l then I had the result exactly as per your advice.

Code: Select all

card 2: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

3) I have no idea with Ubuntu so I copied 1 wav filename "sample.wav" into the /tmp folder then I played the file as the result below

Code: Select all

root@odroid64:~# aplay -Dxmos /tmp/sample.wav
Playing WAVE '/tmp/sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Ste                                                                                        reo
aplay: set_params:1204: Broken configuration for this PCM: no configurations ava                                                                                        ilable
root@odroid64:~#


It seems there is lack of some configuration?

I have no idea how to refer to a file in Linux, ex: I want to copy 1 wav file to Music folder (this one is default folder in Ubuntu) so how do I refer to that file, using aplay -Dxmos/Music/sample.wav cannot work !

Your support and kind advice please !

Thank you so much bro ! :)

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

best_odroidfreak wrote:
dunghnguyen wrote:I have the DAC SMSL M8 that it is XMOS + ES9018 integrated (16/44.1 + Hires 24/192 + DSD 64/128) so let wait for the 1st Rune Audio release to see how it works with my Odroid C2.

I tested it with Raspberry Pi 2 played by Rune Audio that it worked fine perfectly http://www.runeaudio.com/forum/rune-aud ... 27cd5da4cb
Can you describe briefly the sound quality your DAC to compare with HiFi Shield?
On my mind HiFi shield is better, no sens to replace.
Hifi Shield DAC board is quite same with the HifiBerry DAC+ that its sound is amazing ! The one M8 is better in the sense of DSD even its sound is more dynamic, more detailed, the high nodes are clearer at least for my ears. I love both HifiBerry DAC+ (even Hifi Shield if I have) and M8. Thanks.

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

@otec: I tried with

Code: Select all

$ aplay test.wav
that it played perfectly via my USB DAC SMSL M8
the sound is so nice like playing on Pi 2 + M8

I tried the same way for hires 24/192 and dsd64/dsd128 but failed as below notification

Code: Select all

$ aplay dsd1.dff
Unsigned 8 bit, 8000Hz, mono
so it seems we need to add more some suffix for the command?

Thanks and hope to see your advice for further.

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

1. Just comment out a second snd-usb-audio line. They both do the same thing.

2. It looks like you have another output device. Probably HDMI ?

Your USB XMOS is registering as a card 2, so you have to update asound.conf accordingly:

Code: Select all

pcm.!default {
    type hw
    card 2
    device 0
}

ctl.!default {
    type hw
    card 2
    device 0
}

pcm.xmos {
    type rate
    slave {
        pcm "hw:2,0"
        rate 192000
        format S24_LE
    }
    converter "samplerate_medium"
}
Now you can try:

1. aplay -Dxmos test.wav
2. aplay -Dhw:2,0 test.wav

Both should play the sound.

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

Ok. Tks. I am not at home now. Let me test it when I am back ;)

Note that I am running Ubuntu MATE on C2 ....Is there any issue? Surely this, C2 is out to TV via hdmi. 1 usb port is connected to USB DAC M8.

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

@otec:
I edited the /ect/asound.conf as follows:

Code: Select all

     pcm.!default {
        type hw
        card 2
        device 0
    }

    ctl.!default {
        type hw
        card 2
        device 0
    }

    pcm.xmos {
        type rate
        slave {
            pcm "hw:2,0"
            rate 192000
            format S24_LE
        }
Then reboot, I tested as the results are:

Code: Select all

login as: odroid
odroid@192.168.0.21's password:
Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.14.29-29 aarch64)

 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

Last login: Sat May 28 17:48:26 2016 from 192.168.0.13
odroid@odroid64:~$ aplay -Dxmos /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1204: Broken configuration for this PCM: no configurations available
odroid@odroid64:~$ aplay -Dhw:2,0 /home/odroid/Music/dsd/dsd1.dff
Playing raw data '/home/odroid/Music/dsd/dsd1.dff' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S32_LE
- SPECIAL
- S24_3LE
odroid@odroid64:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S.27 dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ODROIDDAC [ODROID-DAC], device 0: I2S.27 pcm5102-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
odroid@odroid64:~$

When trying with "aplay", I have these that for me I think many formats are supported. Am I right?

Code: Select all

odroid@odroid64:~$ aplay
Usage: aplay [OPTION]... [FILE]...

-h, --help              help
    --version           print current version
-l, --list-devices      list all soundcards and digital audio devices
-L, --list-pcms         list device names
-D, --device=NAME       select PCM by name
-q, --quiet             quiet mode
-t, --file-type TYPE    file type (voc, wav, raw or au)
-c, --channels=#        channels
-f, --format=FORMAT     sample format (case insensitive)
-r, --rate=#            sample rate
-d, --duration=#        interrupt after # seconds
-M, --mmap              mmap stream
-N, --nonblock          nonblocking mode
-F, --period-time=#     distance between interrupts is # microseconds
-B, --buffer-time=#     buffer duration is # microseconds
    --period-size=#     distance between interrupts is # frames
    --buffer-size=#     buffer duration is # frames
-A, --avail-min=#       min available space for wakeup is # microseconds
-R, --start-delay=#     delay for automatic PCM start is # microseconds
                        (relative to buffer size if <= 0)
-T, --stop-delay=#      delay for automatic PCM stop is # microseconds from xrun
-v, --verbose           show PCM structure and setup (accumulative)
-V, --vumeter=TYPE      enable VU meter (TYPE: mono or stereo)
-I, --separate-channels one file for each channel
-i, --interactive       allow interactive operation from stdin
-m, --chmap=ch1,ch2,..  Give the channel map to override or follow
    --disable-resample  disable automatic rate resample
    --disable-channels  disable automatic channel conversions
    --disable-format    disable automatic format conversions
    --disable-softvol   disable software volume control (softvol)
    --test-position     test ring buffer position
    --test-coef=#       test coefficient for ring buffer position (default 8)
                        expression for validation is: coef * (buffer_size / 2)
    --test-nowait       do not wait for ring buffer - eats whole CPU
    --max-file-time=#   start another output file when the old file has recorded
                        for this many seconds
    --process-id-file   write the process ID here
    --use-strftime      apply the strftime facility to the output file name
    --dump-hw-params    dump hw_params of the device
    --fatal-errors      treat all errors as fatal
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE U18_3BE G723_24 G723_24_1B G723_40 G723_40_1B DSD_U8 DSD_U16_LE DSD_U32_LE DSD_U16_BE DSD_U32_BE
Some of these may not be available on selected hardware
The available format shortcuts are:
-f cd (16 bit little endian, 44100, stereo)
-f cdr (16 bit big endian, 44100, stereo)
-f dat (16 bit little endian, 48000, stereo)
odroid@odroid64:~$

otec
Posts: 168
Joined: Sat Feb 06, 2016 7:08 pm
languages_spoken: english
ODROIDs: C2 + eMMC 64Gb
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by otec »

Try to change S24_LE to S32_LE in asound.conf ?

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

otec wrote:Try to change S24_LE to S32_LE in asound.conf ?
I changed as your advice. Then I tried playing that you could see herewith
The -Dxmos has error,
while the -Dhw:2,0 seem playing properly but I dont hear any sound out

Code: Select all

odroid@odroid64:~/Desktop$ nano /etc/asound.conf
odroid@odroid64:~/Desktop$ aplay -Dxmos /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1204: Broken configuration for this PCM: no configurations available
odroid@odroid64:~/Desktop$ aplay -Dhw:2,0 /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
odroid@odroid64:~/Desktop$ 

I tried like this it plays successfully and the sound is nice and great
but you could see it notified something like wrong?

Code: Select all

odroid@odroid64:~/Desktop$ aplay /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
aplay: pcm_write:1940: write error: Interrupted system call
odroid@odroid64:~/Desktop$ 

I copy here again for you the /etc/modprobe.d/alsa-base.conf and the /etc/asound.conf for you to check if any (may be anything that is incorrect?!)

Code: Select all

# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe $
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/m$
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sb$
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/m$
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && {$
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && {$
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && {$

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/m$
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=1 nrpacks=1

Code: Select all

    pcm.!default {
        type hw
        card 2
        device 0
    }

    ctl.!default {
        type hw
        card 2
        device 0
    }

    pcm.xmos {
        type rate
        slave {
            pcm "hw:2,0"
            rate 192000
            format S32_LE
        }
        converter "samplerate_medium"
    }

Test aplay -l

Code: Select all

odroid@odroid64:~/Desktop$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S.27 dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: ODROIDDAC [ODROID-DAC], device 0: I2S.27 pcm5102-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
odroid@odroid64:~/Desktop$ 

Test aplay -L

Code: Select all

odroid@odroid64:~/Desktop$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Playback/recording through the PulseAudio sound server
xmos
sysdefault:CARD=ODROIDHDMI
    ODROID-HDMI, 
    Default Audio Device
dmix:CARD=ODROIDHDMI,DEV=0
    ODROID-HDMI, 
    Direct sample mixing device
dsnoop:CARD=ODROIDHDMI,DEV=0
    ODROID-HDMI, 
    Direct sample snooping device
hw:CARD=ODROIDHDMI,DEV=0
    ODROID-HDMI, 
    Direct hardware device without any conversions
plughw:CARD=ODROIDHDMI,DEV=0
    ODROID-HDMI, 
    Hardware device with all software conversions
sysdefault:CARD=x20
    xCORE USB Audio 2.0, USB Audio
    Default Audio Device
front:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    Front speakers
surround21:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    Direct sample mixing device
dsnoop:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    Direct sample snooping device
hw:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    Direct hardware device without any conversions
plughw:CARD=x20,DEV=0
    xCORE USB Audio 2.0, USB Audio
    Hardware device with all software conversions
sysdefault:CARD=ODROIDDAC
    ODROID-DAC, 
    Default Audio Device
dmix:CARD=ODROIDDAC,DEV=0
    ODROID-DAC, 
    Direct sample mixing device
dsnoop:CARD=ODROIDDAC,DEV=0
    ODROID-DAC, 
    Direct sample snooping device
hw:CARD=ODROIDDAC,DEV=0
    ODROID-DAC, 
    Direct hardware device without any conversions
plughw:CARD=ODROIDDAC,DEV=0
    ODROID-DAC, 
    Hardware device with all software conversions
odroid@odroid64:~/Desktop$

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

@otec:
when playing succesfully with

Code: Select all

odroid@odroid64:~/Desktop$ aplay /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
I open another termial windows to check what the playing file is being used? so I have this:

Code: Select all

odroid@odroid64:~/Desktop$ cat /proc/asound/card*/pcm*p/sub*/hw_params
closed
closed
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 44100
buffer_size: 88200
odroid@odroid64:~/Desktop$

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

best_odroidfreak wrote:Sound quality HiFi Shield is good but not great that is why I decided to replace it.
Does anybody know if DAC WeiLiang SU1 Pure USB XOMS AK4399 сan be successful connected to Odroid C2 USB input port (see link below) and used all functions?
http://www.ebay.com/itm/Completed-WeiLi ... SwFnFWBNLB
When saying this, you meant Hifi Shield assembled on C2? As well, what app did you install to play music? You played wav/flac (16/44.1) or hires (24/96 ; 24/192)? Tks.

dunghnguyen
Posts: 53
Joined: Wed Aug 21, 2013 5:36 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by dunghnguyen »

@otec: I run this

Code: Select all

apt-get update && apt-get upgrade && apt-get dist-upgrade
then my C2 was updated everything even its latest kernel.
then I checked "aplay -l" herewith

Code: Select all

odroid@odroid64:~/Desktop$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHDMI [ODROID-HDMI], device 0: I2S dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
odroid@odroid64:~/Desktop$ 
so I adjusted the /etc/asound.conf from card 2(last revision) to card 1

Code: Select all

   pcm.!default {
        type hw
        card 1
        device 0
    }

    ctl.!default {
        type hw
        card 1
        device 0
    }

    pcm.xmos {
        type rate
        slave {
            pcm "hw:1,0"
            rate 192000
            format S32_LE
        }
that now I can play wav files as follows:

Code: Select all

odroid@odroid64:~/Desktop$ aplay -Dxmos /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
but it is sometimes having pops that I have seen this

Code: Select all

odroid@odroid64:~/Desktop$ aplay -Dxmos /home/odroid/Music/wav/wav1.wav
Playing WAVE '/home/odroid/Music/wav/wav1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
underrun!!! (at least 43298.646 ms long)
underrun!!! (at least 63191.331 ms long)
when the wav is being played, I checked that I saw:

Code: Select all

odroid@odroid64:~/Desktop$ cat /proc/asound/card*/pcm*p/sub*/hw_params
closed
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 192000 (192000/1)
period_size: 24000
buffer_size: 96004
odroid@odroid64:~/Desktop$
it is correct since I saw the usb DAC M8 displayed "192kHz"
it seems it was swapped from 16/44.1 to 192 ;)

Note that it did not play with hires / dsd rather appeared this:

Code: Select all

odroid@odroid64:~/Desktop$ aplay -Dxmos /home/odroid/Music/hires/hires1.flac
Playing raw data '/home/odroid/Music/hires/hires1.flac' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1239: Channels count non available
odroid@odroid64:~/Desktop$

Sagittarius
Posts: 5
Joined: Sat Sep 10, 2016 6:03 pm
languages_spoken: english, french
ODROIDs: Odroid C1+
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by Sagittarius »

I'm testing with archlinux an MFSL M9 DAC (XMOS XCORE 200 + DUAL AK4490)
It works with mpd. It plays DoP DSD but not native. It has an hardware volume control.

Here is the mpd section for the DAC:

Code: Select all

audio_output {
    type                "alsa"
    name                "MFSL M9 DAC"
    auto_resample       "no"
    use_mmap            "no"
    device              "hw:1,0"
    mixer_type          "hardware"
    mixer_device        "hw:1"
    mixer_control       "SMSL Clock Selector"

#   DSD DoP MPD 0.19
    dop                 "yes"

#   Native DSD
    dsd_native          "no"
    
#   Select 32-bit DSD_U32_BE output format
    dsd_native_type     "2"
}
But, compared to my old Goflex Net or Dockstar under archlinux with mainline kernel, I have some smalls microcuts on the Odroid C2 :(

Here is the ouptut of alsa-info.sh
Odroid C1+
Odroid C2

audiotechguy
Posts: 160
Joined: Sat Apr 09, 2016 2:49 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by audiotechguy »

best_odroidfreak wrote:Sound quality HiFi Shield is good but not great that is why I decided to replace it.
Does anybody know if DAC WeiLiang SU1 Pure USB XOMS AK4399 сan be successful connected to Odroid C2 USB input port (see link below) and used all functions?
http://www.ebay.com/itm/Completed-WeiLi ... SwFnFWBNLB
Is the hifi shield really that bad, have you tried adjusting the filters on it,

Sent from my Nexus 5 using Tapatalk

elatllat
Posts: 1779
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2, C4, N2+
Has thanked: 47 times
Been thanked: 114 times
Contact:

Re: Choosing the best DAC for Odroid C2

Post by elatllat »

audiotechguy wrote:
best_odroidfreak wrote:Sound quality HiFi Shield is good but not great that is why I decided to replace it.
Does anybody know if DAC WeiLiang SU1 Pure USB XOMS AK4399 сan be successful connected to Odroid C2 USB input port (see link below) and used all functions?
http://www.ebay.com/itm/Completed-WeiLi ... SwFnFWBNLB
Is the hifi shield really that bad, have you tried adjusting the filters on it,

Sent from my Nexus 5 using Tapatalk
I assume because they gave no quantitative data and linked to a tube amp they don't want an accurate amp they want a "warm" amp which can be less accurate but preferred by many who like vinyl and other pleasant sound distorting devices obsolete by 1962. I'm sure both options are quite nice.

best_odroidfreak
Posts: 366
Joined: Wed May 04, 2016 1:07 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Choosing the best DAC for Odroid C2

Post by best_odroidfreak »

otec wrote:
dunghnguyen wrote:
otec wrote:.
What could you say about below-mentioned ES9018K2M DACs to use with Odroidc2?
http://www.ebay.com/itm/HiFi-Audio-ES90 ... SwIgNXkKMn
http://www.ebay.com/itm/Top-grade-ES901 ... Sw9N1V00A4
https://ru.aliexpress.com/store/product ... 34764.html

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest