Solved? see below
update:
No clicks and glitches anymore, but stuttering at the end of each song.
Please some directions for analyzing this problem.(newbee with linux , but learning fast)
---------------------------------
(Original)
Hi there,
I can't get my (dyinhk) XMOS USB based DIY-DAC (dyinhk es9018K2M) to work well with a PI 2. The good news is it plays everthing I throw at it (even DSD).
But never without a glitch or click once a while, any ideas?
Its better if the output is set to 16 bits (but that's not the idea...);
played around with buffer times and ALSa audio settings in MC;
from local sd card or network doesn't seem to make a difference.
tried Rasbian and ARCH-ARM (both 3.18.10), MC-ARM 20.0.0.81
the pi is clocked at 1000/500/500/2
tried a lot (often old) tweaks from forums as: dwc_otg.speed=1, ect, etc
hooked up to an very old laptop with Debian/MC20 it works without glitches.
hooked up to windows/MC20 real magic is happening (I mean it never heard that from my speakers)
without the Xmos USB/i2s converter, the dac i2s pins direct to GPIO pins works without glitches but with very (VERY) loud plops before start and after stop playing a song.
With Volumio and Archiphile it plays clean ( even up sampled to 32bit/192kHz) but no magic...
pi@raspberrypi ~ $ lsmod | grep snd
snd_bcm2835 18665 0
snd_usb_audio 103940 1
snd_usbmidi_lib 19617 1 snd_usb_audio
snd_hwdep 5902 1 snd_usb_audio
snd_seq_midi 4406 0
snd_seq_midi_event 5375 1 snd_seq_midi
snd_rawmidi 18265 2 snd_usbmidi_lib,snd_seq_midi
snd_pcm 73475 3 snd_bcm2835,snd_usb_audio
snd_seq 53078 2 snd_seq_midi_event,snd_seq_midi
snd_seq_device 5628 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 17784 2 snd_pcm,snd_seq
snd 50998 10 snd_bcm2835,snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device
pi@raspberrypi ~ $ cat /proc/asound/card0/stream0 # 24/96khz flac
DIYINHK DIYINHK USB Audio 2.0 at usb-bcm2708_usb-1.4, high speed : USB Audio
Playback:
Status: Running
Interface = 1
Altset = 1
Packet Size = 127
Momentary freq = 96013 Hz (0xc.0068)
Feedback Format = 16.16
Interface 1
Altset 1
Format: S32_LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us
Interface 1
Altset 2
Format: S16_LE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us
Interface 1
Altset 3
Format: SPECIAL DSD_U32_BE
Channels: 2
Endpoint: 1 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 125 us
Second question (I'm just learning Linux),
Can MC use the available “hardware”mixer ? ;
pi@raspberrypi ~ $ amixer
Simple mixer control ' Playback',0
Capabilities: volume pswitch penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 127
Front Left: 94 [74%] [-33.00dB] Playback [on]
Front Right: 94 [74%] [-33.00dB] Playback [on]
Simple mixer control ' Playback',1
Capabilities: volume volume-joined pswitch pswitch-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 127 [100%] [0.00dB] Playback [on]
(i’ve chosen this USB/dac combo because of this volume control, all other music distros (MPD) don't do a good job with software volume control, MC does this extremely good but at low volumes the digital control of the DAC slightly better)