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

PC Based Computer music servers, crossovers, and equalization

Chord 2qute and my DOP challenge
Chord 2qute and my DOP challenge
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 3rd August 2017, 09:48 AM   #21
michaelvv is offline michaelvv  Denmark
diyAudio Member
 
Join Date: Jan 2014
Quote:
Originally Posted by phofman View Post
OK, but we need the files/numbers from same software chain, to make them comparable.

LMS probably uses different period/buffer sizes, we would see that in hw_params file. Also please make sure you are not playing through pulseaudio to your usb dac - your alsa-info.sh output shows pulseaudio is your default alsa device.
Yes I have only posted through LMS , not MPD.

Squeezelite is using alsa here is my settings.

Code:
/usr/bin/squeezelite -o front:CARD=D2Qute,DEV=0 -n michael -a 80 4   -b 100000 80000 -s 172.16.0.93
As you can see I'm using the -a parameter.

Code:
Squeezelite v1.8.6-987, Copyright 2012-2015 Adrian Smith, 2015-2017 Ralph Irving. See -t for license terms
Usage: squeezelite [options]
  -s <server>[:<port>]  Connect to specified server, otherwise uses autodiscovery to find server
  -o <output device>    Specify output device, default "default", - = output to stdout
  -l                    List output devices
  -a <b>:<p>:<f>:<m>    Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1)
  -a <f>                Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only)
  -b <stream>:<output>  Specify internal Stream and Output buffer sizes in Kbytes
  -c <codec1>,<codec2>  Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
                        Codecs reported to LMS in order listed, allowing codec priority refinement.
  -C <timeout>          Close output device when idle after timeout seconds, default is to keep it open while player is 'on'
  -d <log>=<level>      Set logging level, logs: all|slimproto|stream|decode|output, level: info|debug|sdebug
  -e <codec1>,<codec2>  Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
  -f <logfile>          Write debug to logfile
  -m <mac addr>         Set mac address, format: ab:cd:ef:12:34:56
  -M <modelname>        Set the squeezelite player model name sent to the server (default: SqueezeLite)
  -n <name>             Set the player name
  -N <filename>         Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n)
  -W                    Read wave and aiff format from header, ignore server parameters
  -p <priority>         Set real time priority of output thread (1-99)
  -P <filename>         Store the process id (PID) in filename
  -r <rates>[:<delay>]  Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
  -R -u [params]        Resample, params = <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>,
                         recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate
                         flags = num in hex,
                         attenuation = attenuation in dB to apply (default is -1db if not explicitly set),
                         precision = number of bits precision (NB. HQ = 20. VHQ = 28),
                         passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%),
                         stopband_start = number in percent (Aliasing/imaging control. > passband_end),
                         phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum)
  -D [delay]            Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms
  -O <mixer device>     Specify mixer device, defaults to 'output device'
  -L                    List volume controls for output device
  -U <control>          Unmute ALSA control and set to full volume (not supported with -V)
  -V <control>          Use ALSA control for volume adjustment, otherwise use software volume adjustment
  -X                    Use linear volume adjustments instead of in terms of dB (only for hardware volume control)
  -z                    Daemonize
  -Z <rate>             Report rate to server in helo as the maximum sample rate we can support
  -t                    License terms
  -?                    Display this help text

Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG DSD LINKALL
  Reply With Quote
Old 3rd August 2017, 09:57 AM   #22
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
OK, we have to make a system in the output data. Please we need two sets of files hw_params, stream0 + irqs/second for:

a) 176.4/24 track nonDOP straight to alsa, no pulseaudio (
Code:
device hw:D2Qute
), LMS

b) DSD DOP straight to alsa, no pulseaudio (
Code:
device hw:D2Qute
), LMS

Do you have to specify the 4byte format in squeezelite params (-a 80 4)? What happens if you do not specify that and play regular 24bit file?

Can you change the alsa device specification in -o to
Code:
hw:D2Qute
? There may be some conversions within the 'front' definition, I want to make your playback chain as short as possible.
Thanks.
  Reply With Quote
Old 3rd August 2017, 10:19 AM   #23
michaelvv is offline michaelvv  Denmark
diyAudio Member
 
Join Date: Jan 2014
Okay this is the most simple I think i can do in squuezelite
Code:
/usr/bin/squeezelite -o hw:D2Qute -n michael -a -D -s 172.16.0.93
1) LMS DSD DOP straight to alsa, no pulseaudio

Code:
122:    1968128      70176   44281095     128907  IR-PCI-MSI 327680-edge      xhci_hcd
122:    1969950      70474   44518051     130001  IR-PCI-MSI 327680-edge      xhci_hcd
(1969950+70474+44518051+130001)-(1968128+70176+44281095+128907) = 240170/30 = 8005 irq/ secs.

cat /proc/asound/card1/pcm0p/sub0/hw_params
Code:
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 352800 (352800/1)
period_size: 45
buffer_size: 180
As you can see something messed up the squeezelite ability to play DOP , I'm not on 176400 anymore. So if I do the
Code:
-o hw:D2Qute
i can not play DOP...
  Reply With Quote
Old 3rd August 2017, 10:24 AM   #24
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
OK, let's solve the PCM mode now. Please post the stream0 file which may explain why the DAC playback rate is 352.8k instead of 176.4k.
  Reply With Quote
Old 3rd August 2017, 10:28 AM   #25
michaelvv is offline michaelvv  Denmark
diyAudio Member
 
Join Date: Jan 2014
Quote:
Originally Posted by phofman View Post
OK, let's solve the PCM mode now. Please post the stream0 file which may explain why the DAC playback rate is 352.8k instead of 176.4k.
the steam0 file , have I used this before ???

If I do not have anything after the -a in squeezelite I can not play DOP.
  Reply With Quote
Old 3rd August 2017, 10:30 AM   #26
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
/proc/asound/card1/stream0

It should contain playback params advertised by your USB dac for each alternate settings.
  Reply With Quote
Old 3rd August 2017, 10:38 AM   #27
michaelvv is offline michaelvv  Denmark
diyAudio Member
 
Join Date: Jan 2014
okay.

This is when playing DOP , white light on the 2qute.
Code:
/usr/bin/squeezelite -o hw:D2Qute -n michael -a    0 -b 2000 2000 -D  -s 172.16.0.93
cat /proc/asound/card1/stream0
Code:
Chord Electronics Ltd 2Qute at usb-0000:00:14.0-2, high speed : USB Audio

Playback:
  Status: Running
    Interface = 2
    Altset = 1
    Packet Size = 224
    Momentary freq = 176401 Hz (0x16.0cd8)
    Feedback Format = 16.16
  Interface 2
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 5 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
This is when not playing DOP (disable the -D in squeezelite) , purple light on the 2qute.

Code:
/usr/bin/squeezelite -o hw:D2Qute -n michael -a    0 -b 2000 2000  -s 172.16.0.93
cat /proc/asound/card1/stream0
Code:
Chord Electronics Ltd 2Qute at usb-0000:00:14.0-2, high speed : USB Audio
Playback:
  Status: Running
    Interface = 2
    Altset = 1
    Packet Size = 448
    Momentary freq = 352805 Hz (0x2c.19c0)
    Feedback Format = 16.16
  Interface 2
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 5 OUT (ASYNC)
    Rates: 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
Irqs is the same ca 8000/sec in both modes...

Last edited by michaelvv; 3rd August 2017 at 10:41 AM.
  Reply With Quote
Old 3rd August 2017, 10:48 AM   #28
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
Good. The stream0 shows your DAC supports 176400. Do you have any idea why the PCM mode shows momentary freq 352.8kHz? Are you really playing 176.4kHz PCM track?
  Reply With Quote
Old 3rd August 2017, 10:53 AM   #29
michaelvv is offline michaelvv  Denmark
diyAudio Member
 
Join Date: Jan 2014
Quote:
Originally Posted by phofman View Post
Good. The stream0 shows your DAC supports 176400. Do you have any idea why the PCM mode shows momentary freq 352.8kHz? Are you really playing 176.4kHz PCM track?
I'm playing an DSF file right now in both cases , I don't have any 176.4 Khz materiale.

I can play some 192Khz 24 bit if It is of any interest, but it's only when playing DOP there is issues with the Chord 2qute DAC..
  Reply With Quote
Old 3rd August 2017, 11:04 AM   #30
phofman is offline phofman  Czech Republic
diyAudio Member
 
Join Date: Apr 2005
Location: Pilsen
OK, we have to be on the same track, otherwise we cannot do remote troubleshooting. I assumed you were playing 174.6/24 as specified in case a).

One of my previous posts shows how to convert any audio to 176.4/24 using sox. Please do so, play and post the stream0, hw_params files and irq rate for case a), i.e. 176.4/24 PCM. We will need this information for the alsa-devel report. Comparing different sample rates for PCM and DoP will not yield any useful information.
  Reply With Quote

Reply


Chord 2qute and my DOP challengeHide 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
Audio-Next : True 768Khz 32 bits of SPDIF/I2S/Dop/DSD/SRC/ASRC !! kfshu2 Digital Line Level 25 13th March 2018 09:28 AM
DSD/DoP on Linux platform! MRswitch Digital Source 9 30th September 2017 09:09 AM
about DoP and SR conversion Alexwfm Digital Line Level 0 8th December 2013 11:49 PM
Chord with PIC's audioPT Solid State 5 7th April 2003 09:26 PM
chord amplifier ben goh Solid State 0 13th January 2003 11:42 PM


New To Site? Need Help?

All times are GMT. The time now is 12:37 AM.


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