Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-17 Thread ralphy


Learnincurve wrote: 
> Result:
> Working for -D : DoP
> Working for -D : u32be
> 
> both up to DSD 256 (5644k). I thought the DAC also supported DSD512
> (native mode only) but so far getting silence for the 512 test track.
> DSD 512 is in any case of only academic interest.
> 
> Thanks again!
> 
> BR.

You need to be running 'squeezelite 1.9.0-1113 or newer for DSD512'
(https://github.com/ralph-irving/squeezelite/commit/ecb6e3696a42113994640e5345d0b5ca2e77d28b)
to work.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-16 Thread Learnincurve


bpa wrote: 
> Pulseaudio is aimed at mixing outputs so audio outputs can be shared  -
> so it'll probably mangle your bit stream in order to share.
> 
> I don;t know DSD but I do know a bit about ALSA.
> 
> You are using a Default device. Some class of ALSA devices (e.g plughw)
> will do software conversion to match device and required output - i.e
> mangle the bitstream. 
> Since you want to use DSD DAC direct - I think look to using a "hw:"
> ALSA device (i.e. no software conversion within ALSA) for your DAC and
> see if it makes a difference
> 
> Do a Squeezelite "-l" to list possible ALSA devices.

Thank you! 


Code:

squeezelite -l
  Output devices:
  null   - Discard all samples (playback) or generate 
zero samples (capture)
  default:CARD=sun50ia64audio- sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Default Audio Device
  sysdefault:CARD=sun50ia64audio - sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Default Audio Device
  dmix:CARD=sun50ia64audio,DEV=0 - sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Direct sample mixing device
  dsnoop:CARD=sun50ia64audio,DEV=0 - sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Direct sample snooping device
  hw:CARD=sun50ia64audio,DEV=0   - sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Direct hardware device 
without any conversions
  plughw:CARD=sun50ia64audio,DEV=0 - sun50i-a64-audio, 
1c22c00.dai-sun8i-codec-aif1 sun8i-codec-aif1-0 - Hardware device with all 
software conversions
  default:CARD=HIFIRef   - HIFI-Ref, USB Audio - Default Audio Device
  sysdefault:CARD=HIFIRef- HIFI-Ref, USB Audio - Default Audio Device
  front:CARD=HIFIRef,DEV=0   - HIFI-Ref, USB Audio - Front speakers
  surround21:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 2.1 Surround output to 
Front and Subwoofer speakers
  surround40:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 4.0 Surround output to 
Front and Rear speakers
  surround41:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 4.1 Surround output to 
Front, Rear and Subwoofer speakers
  surround50:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 5.0 Surround output to 
Front, Center and Rear speakers
  surround51:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 5.1 Surround output to 
Front, Center, Rear and Subwoofer speakers
  surround71:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - 7.1 Surround output to 
Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=HIFIRef,DEV=0- HIFI-Ref, USB Audio - Direct sample mixing 
device
  dsnoop:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - Direct sample snooping 
device
  hw:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - Direct hardware device 
without any conversions
  plughw:CARD=HIFIRef,DEV=0  - HIFI-Ref, USB Audio - Hardware device with 
all software conversions



I substituted default:CARD=HIFIRef  with hw:CARD=HIFIRef,DEV=0 and
restarted squeezelite

Result:
Working for -D : DoP
Working for -D : u32be

both up to DSD 256 (5644k). I thought the DAC also supported DSD512
(native mode only) but so far getting silence for the 512 test track.
DSD 512 is in any case of only academic interest.

Thanks again!

BR.



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-16 Thread bpa


Learnincurve wrote: 
> Any experience regarding the best approach?

Pulseaudio is aimed at mixing outputs so audio outputs can be shared  -
so it'll probably mangle your bit stream in order to share.

I don;t know DSD but I do know a bit about ALSA.

You are using a Default device. Some class of ALSA devices (e.g plughw)
will do software conversion to match device and required output - i.e
mangle the bitstream. 
Since you want to use DSD DAC direct - I think look to using a "hw:"
ALSA device (i.e. no software conversion within ALSA) for your DAC and
see if it makes a difference

Do a Squeezelite "-l" to list possible ALSA devices.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-16 Thread Learnincurve


I might be closer to a reason:

The new system has Pulse Audio installed by default, but I have the
non-pulse version of squeezelite installed.

PCM plays back fine, but it is possible that PA is getting in the way
when it comes to DSD.

I have only used PA in desktop systems where I just pick the device from
the GUI and forget about it. All other systems have been plain ALSA, so
it looks like I now have the choice of removing PA and figuring out any
dependency breakings (my preferred approach as it would almost certainly
be cleaner and leaner, or installing squeezelite-pa and trying to work
it out from there.

Any experience regarding the best approach?

BR.



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-16 Thread Learnincurve


Learnincurve wrote: 
> Exactly same result into Topping:
> 
> config:
> > 
Code:

  >   > # Defaults for squeezelite initscript
  > # sourced by /etc/init.d/squeezelite
  > # installed at /etc/default/squeezelite by the maintainer scripts
  > 
  > # The name for the squeezelite player:
  > SL_NAME="$(hostname -s)"
  > 
  > # ALSA output device:
  > #SL_SOUNDCARD="default:CARD=Set"
  > #SL_SOUNDCARD="default:CARD=HIFIRef"
  > SL_SOUNDCARD="default:CARD=D50s"
  > # Squeezebox server (Logitech Media Server):
  > # Uncomment the next line if you want to point squeezelite at the IP 
address of
  > # your squeezebox server. This is usually unnecessary as the server is
  > # automatically discovered.
  > #SB_SERVER_IP="192.168.x.y"
  > 
  > # Additional options to pass to squeezelite:
  > # Please do not include -z to make squeezelite daemonise itself.
  > #SB_EXTRA_ARGS=""
  > SB_EXTRA_ARGS="-D :u32be -d all=info -f 
/var/log/squeezelite/squeezelite.log"
  > /etc/default/squeezelite (END)

> >   
> 
> tail /var/log/squeezelite/squeezelite.log
> > 
Code:

  >   > [08:26:56.715661] alsa_open:406 opened device default:CARD=D50s using 
format: S32_LE sample rate: 44100 mmap: 1
  > [08:26:56.715865] alsa_open:485 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  > [08:26:56.716929] slimproto:848 connecting to 192.168.253.85:3483
  > [08:26:56.717542] slimproto:881 connected
  > [08:26:56.717664] sendHELO:124 mac: 02:ba:5e:66:94:26
  > [08:26:56.717704] sendHELO:126 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
  > [08:26:56.734014] decode_flush:190 decode flush
  > [08:26:56.734104] output_flush:423 flush output buffer
  > [08:26:56.734299] decode_flush:190 decode flush
  > [08:26:56.734438] output_flush:423 flush output buffer
  > 
  > 
  > ...
  > ...
  > stream_thread:176 headers: len: 490
  > HTTP/1.1 200 OK
  > Server: Logitech Media Server (8.0.0 - 1605892076)
  > Connection: close
  > Content-Type: audio/dsf
  > Set-Cookie: Squeezebox-albumView=; path=/
  > Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  > Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  > Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  > Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  > 
  > 
  > [08:30:41.622093] _read_header:158 DSF version: 1 format: 0
  > [08:30:41.622253] _read_header:168 channels: 2
  > [08:30:41.622286] _read_header:169 sample rate: 2822400
  > [08:30:41.622314] _read_header:170 lsb first: 1
  > [08:30:41.622342] _read_header:171 sample bytes: 195766368
  > [08:30:41.622369] _read_header:172 block size: 4096
  > [08:30:41.622397] _read_header:178 found dsd len: 391536652
  > [08:30:41.622424] dsd_decode:527 setting track_start
  > [08:30:41.622452] dsd_decode:538 DOP output
  > [08:30:41.629058] _output_frames:61 start buffer frames: 245760
  > [08:30:41.629256] _output_frames:146 track start sample rate: 176400 
replay_gain: 0
  > [08:30:45.329401] decode_flush:190 decode flush
  > [08:30:45.329569] output_flush:423 flush output buffer
  > [08:30:45.333503] decode_flush:190 decode flush
  > [08:30:45.333687] output_flush:423 flush output buffer
  > [08:30:45.340942] codec_open:218 codec open: 'f'
  > [08:30:45.341135] codec_open:235 closing codec: 'd'
  > [08:30:45.341260] stream_sock:384 connecting to 192.168.253.85:9000
  > [08:30:45.341558] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0

> > 
> 
> Only output is high-pitched PCM squeal.
> 
> Same result using -D : DoP in the config
> 
> I'm downloading the kernel source package for my current kernel now,
> just to double-check the quirks.c file, but as DoP isn't working
> either, it is feeling like a system problem rather than Kernel at this
> point.

>From quirks.c:


Code:

 /* Mostly generic method to detect many DSD-capable implementations -
  * from XMOS/Thesycon
  */
  switch (USB_ID_VENDOR(chip->usb_id)) {
  case 0x152a:  /* Thesycon devices */
  case 0x20b1:  /* XMOS based devices */
  case 0x22d9:  /* Oppo */
  case 0x23ba:  /* Playback Designs */
  case 0x25ce:  /* Mytek devices */
  case 0x278b:  /* Rotel? */
  case 0x292b:  /* Gustard/Ess based devices */
  case 0x2ab6:  /* T+A devices */
  case 0x3353:  /* Khadas devices */
  case 0x3842:  /* EVGA */
  case 0xc502:  /* HiBy devices */
  if (fp->dsd_raw)
  return SNDRV_PCM_FMTBIT_DSD_U32_BE;
  break;
  default:
  break;
  
  }
  
  return 0;



The first two cases should cover my DAC's, No?



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this 

Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread Learnincurve


Exactly same result into Topping:

config:

Code:

# Defaults for squeezelite initscript
  # sourced by /etc/init.d/squeezelite
  # installed at /etc/default/squeezelite by the maintainer scripts
  
  # The name for the squeezelite player:
  SL_NAME="$(hostname -s)"
  
  # ALSA output device:
  #SL_SOUNDCARD="default:CARD=Set"
  #SL_SOUNDCARD="default:CARD=HIFIRef"
  SL_SOUNDCARD="default:CARD=D50s"
  # Squeezebox server (Logitech Media Server):
  # Uncomment the next line if you want to point squeezelite at the IP address 
of
  # your squeezebox server. This is usually unnecessary as the server is
  # automatically discovered.
  #SB_SERVER_IP="192.168.x.y"
  
  # Additional options to pass to squeezelite:
  # Please do not include -z to make squeezelite daemonise itself.
  #SB_EXTRA_ARGS=""
  SB_EXTRA_ARGS="-D :u32be -d all=info -f /var/log/squeezelite/squeezelite.log"
  /etc/default/squeezelite (END)

  

tail /var/log/squeezelite/squeezelite.log

Code:

[08:26:56.715661] alsa_open:406 opened device default:CARD=D50s using 
format: S32_LE sample rate: 44100 mmap: 1
  [08:26:56.715865] alsa_open:485 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  [08:26:56.716929] slimproto:848 connecting to 192.168.253.85:3483
  [08:26:56.717542] slimproto:881 connected
  [08:26:56.717664] sendHELO:124 mac: 02:ba:5e:66:94:26
  [08:26:56.717704] sendHELO:126 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
  [08:26:56.734014] decode_flush:190 decode flush
  [08:26:56.734104] output_flush:423 flush output buffer
  [08:26:56.734299] decode_flush:190 decode flush
  [08:26:56.734438] output_flush:423 flush output buffer
  
  
  ...
  ...
  stream_thread:176 headers: len: 490
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605892076)
  Connection: close
  Content-Type: audio/dsf
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [08:30:41.622093] _read_header:158 DSF version: 1 format: 0
  [08:30:41.622253] _read_header:168 channels: 2
  [08:30:41.622286] _read_header:169 sample rate: 2822400
  [08:30:41.622314] _read_header:170 lsb first: 1
  [08:30:41.622342] _read_header:171 sample bytes: 195766368
  [08:30:41.622369] _read_header:172 block size: 4096
  [08:30:41.622397] _read_header:178 found dsd len: 391536652
  [08:30:41.622424] dsd_decode:527 setting track_start
  [08:30:41.622452] dsd_decode:538 DOP output
  [08:30:41.629058] _output_frames:61 start buffer frames: 245760
  [08:30:41.629256] _output_frames:146 track start sample rate: 176400 
replay_gain: 0
  [08:30:45.329401] decode_flush:190 decode flush
  [08:30:45.329569] output_flush:423 flush output buffer
  [08:30:45.333503] decode_flush:190 decode flush
  [08:30:45.333687] output_flush:423 flush output buffer
  [08:30:45.340942] codec_open:218 codec open: 'f'
  [08:30:45.341135] codec_open:235 closing codec: 'd'
  [08:30:45.341260] stream_sock:384 connecting to 192.168.253.85:9000
  [08:30:45.341558] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0



Only output is high-pitched PCM squeal



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread Learnincurve


slartibartfast wrote: 
> Have you tried the Topping? 
> 
> Sent from my Pixel 3a using Tapatalk

Not yet.  However both DAC's behave identically from my legacy setup.
They just needs to be specified in the squeezelite  
-o parameter. squeezelite-R2 outputs DoP to both.

I will try the Topping from the new squeezelite this morning if I get
time.



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread slartibartfast


Learnincurve wrote: 
> The DAC is a Douk Audio Mini USB DAC (in fact this is just a test DAC
> for my main setup which is a Topping D50s.
> 
> The Douk is identified as XMOS 20b1:000a by the kernel, while the
> Topping is a Theyscon 152a:8750 (both USB manufacturer identifiers are
> in the kernel 5.9 usb.quirks.c file).
> 
> 
> At the moment I have the following extra params in
> /etc/default/squeezlite, which is read by the squeezelite init script:
> SB_EXTRA_ARGS="-D :u32be -d all=info -f
> /var/log/squeezelite/squeezelite.log"
> 
> u32be is the correct quirk as listed in quirks.cHave you tried the Topping? 

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread Learnincurve


slartibartfast wrote: 
> Which DAC is it? What are your Squeezelite settings for DSD?
> 
> Sent from my Pixel 3a using Tapatalk

The DAC is a Douk Audio Mini USB DAC (in fact this is just a test DAC
for my main setup which is a Topping D50s.

The Douk is identified as XMOS 20b1:000a by the kernel, while the
Topping is a Theyscon 152a:8750 (both USB manufacturer identifiers are
in the kernel 5.9 usb.quirks.c file).


At the moment I have the following extra params in
/etc/default/squeezlite, which is read by the squeezelite init script:
SB_EXTRA_ARGS="-D :u32be -d all=info -f
/var/log/squeezelite/squeezelite.log"

u32be is the correct quirk as listed in quirks.c



Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread slartibartfast


Learnincurve wrote: 
> Then I'm more worried, because dsd sample files just play a high-pitched
> squeak, although the squeezelite log looks fine:
> 
> @5644k:
> 
> > 
Code:

  >   > [16:25:05.628734] stream_thread:176 headers: len: 491
  > HTTP/1.1 200 OK
  > Server: Logitech Media Server (8.0.0 - 1605892076)
  > Connection: close
  > Content-Type: audio/dsf
  > Set-Cookie: Squeezebox-albumView=; path=/
  > Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  > Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  > Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
  > Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
  > 
  > 
  > [16:25:05.728258] _read_header:158 DSF version: 1 format: 0
  > [16:25:05.728505] _read_header:168 channels: 2
  > [16:25:05.728570] _read_header:169 sample rate: 5644800
  > [16:25:05.728619] _read_header:170 lsb first: 1
  > [16:25:05.728653] _read_header:171 sample bytes: 391532736
  > [16:25:05.728711] _read_header:172 block size: 4096
  > [16:25:05.728746] _read_header:178 found dsd len: 783073292
  > [16:25:05.728801] dsd_decode:527 setting track_start
  > [16:25:05.728837] dsd_decode:538 DOP output
  > [16:25:05.743634] _output_frames:61 start buffer frames: 231424
  > [16:25:05.743979] _output_frames:146 track start sample rate: 352800 
replay_gain: 0
  > [16:25:05.754149] output_thread:638 open output device: default:CARD=HIFIRef
  > [16:25:05.771141] alsa_open:355 opening device at: 352800
  > [16:25:05.778895] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 352800 mmap: 1
  > [16:25:05.779143] alsa_open:485 buffer: 40 period: 4 -> buffer size: 30105 
period size: 7526
  > [16:25:09.748376] decode_flush:190 decode flush
  > [16:25:09.748594] output_flush:423 flush output buffer
  > [16:25:09.750221] decode_flush:190 decode flush
  > [16:25:09.750330] output_flush:423 flush output buffer
  > [16:25:09.757464] codec_open:218 codec open: 'f'
  > [16:25:09.757548] codec_open:235 closing codec: 'd'
  > [16:25:09.757681] stream_sock:384 connecting to 192.168.253.85:9000
  > [16:25:09.757964] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0

> > 
> 
> @2822k:
> > 
Code:

  >   > [16:25:13.438613] stream_thread:176 headers: len: 491
  > HTTP/1.1 200 OK
  > Server: Logitech Media Server (8.0.0 - 1605892076)
  > Connection: close
  > Content-Type: audio/dsf
  > Set-Cookie: Squeezebox-albumView=; path=/
  > Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  > Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  > Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
  > Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
  > Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
  > 
  > 
  > [16:25:13.496585] _read_header:158 DSF version: 1 format: 0
  > [16:25:13.496766] _read_header:168 channels: 2
  > [16:25:13.496804] _read_header:169 sample rate: 2822400
  > [16:25:13.496838] _read_header:170 lsb first: 1
  > [16:25:13.496869] _read_header:171 sample bytes: 195766368
  > [16:25:13.496900] _read_header:172 block size: 4096
  > [16:25:13.496931] _read_header:178 found dsd len: 391536652
  > [16:25:13.496963] dsd_decode:527 setting track_start
  > [16:25:13.496993] dsd_decode:538 DOP output
  > [16:25:13.515185] _output_frames:61 start buffer frames: 194560
  > [16:25:13.515387] _output_frames:146 track start sample rate: 176400 
replay_gain: 0
  > [16:25:13.525491] output_thread:638 open output device: default:CARD=HIFIRef
  > [16:25:13.543054] alsa_open:355 opening device at: 176400
  > [16:25:13.550538] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 176400 mmap: 1
  > [16:25:13.550925] alsa_open:485 buffer: 40 period: 4 -> buffer size: 18816 
period size: 3763
  > [16:25:17.066355] decode_flush:190 decode flush
  > [16:25:17.066546] output_flush:423 flush output buffer
  > [16:25:17.068277] decode_flush:190 decode flush
  > [16:25:17.068334] output_flush:423 flush output buffer
  > [16:25:17.075625] codec_open:218 codec open: 'f'
  > [16:25:17.075729] codec_open:235 closing codec: 'd'
  > [16:25:17.075863] stream_sock:384 connecting to 192.168.253.85:9000
  > [16:25:17.076147] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0

> > 
> 
> @11289k:
> 
> > 
Code:

  >   > [16:25:21.918885] stream_thread:176 headers: len: 491
  > HTTP/1.1 200 OK
  > Server: Logitech Media Server (8.0.0 - 1605892076)
  > Connection: close
  > Content-Type: audio/dsf
  > Set-Cookie: Squeezebox-albumView=; path=/
  > Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  > Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  > Set-Cookie: Squeezebox-expanded-FAVORITES=0; 

Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread Learnincurve


slartibartfast wrote: 
> I don't think you are doing anything wrong. I see the same for my
> piCorePlayer. I think because the player supports native playback of DSD
> files it doesn't require Sox.
> 
> Sent from my Pixel 3a using Tapatalk

Then I'm more worried, because dsd sample files just play a high-pitched
squeak, although the squeezelite log looks fine:


Code:

[16:25:05.628734] stream_thread:176 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605892076)
  Connection: close
  Content-Type: audio/dsf
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
  
  
  [16:25:05.728258] _read_header:158 DSF version: 1 format: 0
  [16:25:05.728505] _read_header:168 channels: 2
  [16:25:05.728570] _read_header:169 sample rate: 5644800
  [16:25:05.728619] _read_header:170 lsb first: 1
  [16:25:05.728653] _read_header:171 sample bytes: 391532736
  [16:25:05.728711] _read_header:172 block size: 4096
  [16:25:05.728746] _read_header:178 found dsd len: 783073292
  [16:25:05.728801] dsd_decode:527 setting track_start
  [16:25:05.728837] dsd_decode:538 DOP output
  [16:25:05.743634] _output_frames:61 start buffer frames: 231424
  [16:25:05.743979] _output_frames:146 track start sample rate: 352800 
replay_gain: 0
  [16:25:05.754149] output_thread:638 open output device: default:CARD=HIFIRef
  [16:25:05.771141] alsa_open:355 opening device at: 352800
  [16:25:05.778895] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 352800 mmap: 1
  [16:25:05.779143] alsa_open:485 buffer: 40 period: 4 -> buffer size: 30105 
period size: 7526
  [16:25:09.748376] decode_flush:190 decode flush
  [16:25:09.748594] output_flush:423 flush output buffer
  [16:25:09.750221] decode_flush:190 decode flush
  [16:25:09.750330] output_flush:423 flush output buffer
  [16:25:09.757464] codec_open:218 codec open: 'f'
  [16:25:09.757548] codec_open:235 closing codec: 'd'
  [16:25:09.757681] stream_sock:384 connecting to 192.168.253.85:9000
  [16:25:09.757964] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0




Code:

[16:25:13.438613] stream_thread:176 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605892076)
  Connection: close
  Content-Type: audio/dsf
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=0; path=/
  
  
  [16:25:13.496585] _read_header:158 DSF version: 1 format: 0
  [16:25:13.496766] _read_header:168 channels: 2
  [16:25:13.496804] _read_header:169 sample rate: 2822400
  [16:25:13.496838] _read_header:170 lsb first: 1
  [16:25:13.496869] _read_header:171 sample bytes: 195766368
  [16:25:13.496900] _read_header:172 block size: 4096
  [16:25:13.496931] _read_header:178 found dsd len: 391536652
  [16:25:13.496963] dsd_decode:527 setting track_start
  [16:25:13.496993] dsd_decode:538 DOP output
  [16:25:13.515185] _output_frames:61 start buffer frames: 194560
  [16:25:13.515387] _output_frames:146 track start sample rate: 176400 
replay_gain: 0
  [16:25:13.525491] output_thread:638 open output device: default:CARD=HIFIRef
  [16:25:13.543054] alsa_open:355 opening device at: 176400
  [16:25:13.550538] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 176400 mmap: 1
  [16:25:13.550925] alsa_open:485 buffer: 40 period: 4 -> buffer size: 18816 
period size: 3763
  [16:25:17.066355] decode_flush:190 decode flush
  [16:25:17.066546] output_flush:423 flush output buffer
  [16:25:17.068277] decode_flush:190 decode flush
  [16:25:17.068334] output_flush:423 flush output buffer
  [16:25:17.075625] codec_open:218 codec open: 'f'
  [16:25:17.075729] codec_open:235 closing codec: 'd'
  [16:25:17.075863] stream_sock:384 connecting to 192.168.253.85:9000
  [16:25:17.076147] stream_sock:413 header: GET 
/stream.mp3?player=02:ba:5e:66:94:26 HTTP/1.0




Code:

[16:25:21.918885] stream_thread:176 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605892076)
  Connection: close
  Content-Type: audio/dsf
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=false; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  Set-Cookie: 

Re: [SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread slartibartfast


Learnincurve wrote: 
> Hi,
> 
> I have dsd native and DoP cabable dac (using xmos  chip).
> 
> Until now, I have been using Marco Curti's squeezelite-R2 in DoP mode
> from a Pine64 SoC that was stuck at kernel 3.10, because of slow
> mainlining progress.
> 
> However, a full mainline kernel is now available and I am rebuilding the
> system to use it. This should make native DSD playback possible, as the
> snd_usb_audio code was updated to include it after kernel 3.10.
> 
> Here's the output from cat /proc/asound/card1/stream0:
> > 
Code:

  >   > # cat /proc/asound/card1/stream0
  > XMOS HIFI-Ref at usb-1c1a000.usb-1, high speed : USB Audio
  > 
  > Playback:
  > Status: Stop
  > 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
  > Bits: 24
  > Channel map: FL FR
  > Interface 1
  > Altset 2
  > 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
  > Bits: 32
  > DSD raw: DOP=0, bitrev=0
  > Channel map: FL FR
  > Interface 1
  > Altset 3
  > Format: S32_LE
  > Channels: 2
  > Endpoint: 1 OUT (ASYNC)
  > Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
  > Data packet interval: 125 us
  > Bits: 32
  > Channel map: FL FR

> > 
> 
> As Marco Curti's work was included in Daphile and later added by
> Ralphy into the main squeezelite code, I have not compiled
> squeezelite-R2 this time round, but installed the deb package
> maintainer's squeezelite.
> 
> 
> I load squeezelite with the -D parameter:
> > 
Code:

  >   > /usr/bin/squeezelite -n squeezebox -o default:CARD=HIFIRef -D -d 
all=info -f /var/log/squeezelite/squeezelite.log
  > [13:55:38.481833] stream_init:290 init stream
  > [13:55:38.484804] output_init_alsa:817 init output
  > [13:55:38.484894] output_init_alsa:845 requested alsa_buffer: 40 
alsa_period: 4 format: any mmap: 1
  > [13:55:38.522857] output_init_common:410 supported rates: 384000 352800 
192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
  > [13:55:38.641093] output_init_alsa:862 memory locked
  > [13:55:38.641938] output_thread:638 open output device: default:CARD=HIFIRef
  > [13:55:38.641976] decode_init:129 init decode, include codecs:  exclude 
codecs:
  > [13:55:38.644530] alsa_open:355 opening device at: 44100
  > [13:55:38.644715] register_dsd:624 using dsd to decode dsf,dff
  > [13:55:38.644791] register_ff:731 using ffmpeg to decode alc
  > [13:55:38.644823] register_ff:715 using ffmpeg to decode wma,wmap,wmal
  > [13:55:38.644855] register_faad:640 using faad to decode aac
  > [13:55:38.644886] register_vorbis:329 using vorbis to decode ogg
  > [13:55:38.644916] register_flac:286 using flac to decode flc
  > [13:55:38.644946] register_pcm:384 using pcm to decode aif,pcm
  > [13:55:38.644978] register_mad:412 using mad to decode mp3
  > [13:55:38.645619] discover_server:756 sending discovery
  > [13:55:38.646196] discover_server:767 got response from: 192.168.253.85:3483
  > [13:55:38.651239] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 44100 mmap: 1
  > [13:55:38.651477] alsa_open:485 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  > [13:55:38.652509] slimproto:848 connecting to 192.168.253.85:3483
  > [13:55:38.652994] slimproto:881 connected
  > [13:55:38.653084] sendHELO:124 mac: 02:ba:5e:66:94:26
  > [13:55:38.653120] sendHELO:126 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
  > 

> > 
> 
> but the player -> dsdplayer config screen on LMS (8.0) doesn't show
> any options:
> 
> 32533
> 
> squeezelite-R2 on the same LMS looks as it should:
> 32534
> 
> I even tried recompiling the squeezelite package from source deb in
> case the build parameter was disabled, but same result.
> 
> squeezelite --help lists:
> 
> Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR DSD
> LINKALL
> 
> What am I doing wrong?I don't think you are doing anything wrong. I see the 
> same for my
piCorePlayer. I think because the player supports native playback of DSD
files it doesn't require Sox.

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] DSD on squeezelite

2020-12-15 Thread Learnincurve


Hi,

I have dsd native and DoP cabable dac (using xmos  chip).

Until now, I have been using Marco Curti's squeezelite-R2 in DoP mode
from a Pine64 SoC that was stuck at kernel 3.10, because of slow
mainlining progress.

However, a full mainline kernel is now available and I am rebuilding the
system to use it. This should make native DSD playback possible, as the
snd_usb_audio code was updated to include it after kernel 3.10.

As Marco Curti's work was included in Daphile and later added by Ralphy
into the main squeezelite code, I have not compiled squeezelite-R2 this
time round, but installed the deb package maintainer's squeezelite.


I load squeezelite with the -D parameter:

Code:

/usr/bin/squeezelite -n squeezebox -o default:CARD=HIFIRef -D -d all=info 
-f /var/log/squeezelite/squeezelite.log
  [13:55:38.481833] stream_init:290 init stream
  [13:55:38.484804] output_init_alsa:817 init output
  [13:55:38.484894] output_init_alsa:845 requested alsa_buffer: 40 alsa_period: 
4 format: any mmap: 1
  [13:55:38.522857] output_init_common:410 supported rates: 384000 352800 
192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
  [13:55:38.641093] output_init_alsa:862 memory locked
  [13:55:38.641938] output_thread:638 open output device: default:CARD=HIFIRef
  [13:55:38.641976] decode_init:129 init decode, include codecs:  exclude 
codecs:
  [13:55:38.644530] alsa_open:355 opening device at: 44100
  [13:55:38.644715] register_dsd:624 using dsd to decode dsf,dff
  [13:55:38.644791] register_ff:731 using ffmpeg to decode alc
  [13:55:38.644823] register_ff:715 using ffmpeg to decode wma,wmap,wmal
  [13:55:38.644855] register_faad:640 using faad to decode aac
  [13:55:38.644886] register_vorbis:329 using vorbis to decode ogg
  [13:55:38.644916] register_flac:286 using flac to decode flc
  [13:55:38.644946] register_pcm:384 using pcm to decode aif,pcm
  [13:55:38.644978] register_mad:412 using mad to decode mp3
  [13:55:38.645619] discover_server:756 sending discovery
  [13:55:38.646196] discover_server:767 got response from: 192.168.253.85:3483
  [13:55:38.651239] alsa_open:406 opened device default:CARD=HIFIRef using 
format: S32_LE sample rate: 44100 mmap: 1
  [13:55:38.651477] alsa_open:485 buffer: 40 period: 4 -> buffer size: 3763 
period size: 940
  [13:55:38.652509] slimproto:848 connecting to 192.168.253.85:3483
  [13:55:38.652994] slimproto:881 connected
  [13:55:38.653084] sendHELO:124 mac: 02:ba:5e:66:94:26
  [13:55:38.653120] sendHELO:126 cap: 
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3
  



but the player -> dsdplayer config screen on LMS (8.0) doesn't show any
options:

32533

squeezelite-R2 on the same LMS looks as it should:
32534

I even tried recompiling the squeezelite package from source deb in case
the build parameter was disabled, but same result.

What am I doing wrong?


+---+
|Filename: pine64-dsd.png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=32534|
+---+


Learnincurve's Profile: http://forums.slimdevices.com/member.php?userid=64807
View this thread: http://forums.slimdevices.com/showthread.php?t=113435

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins