Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Hiss during playback of DSD files

    All piCorePlayers above ver. 4.1.0 produce audible hiss during playback of DSD files (I have .dsf) in my system. These are converted to PCM at 352Khz.

    I have DSDplayback plugin installed and I have PCM5242 and IQaudIO Pro I2S DACs both have the same issue.

    I'm runnung Logitech Media Server Version: 8.3.0 - 1649774106 on Fedora 35 machine.

    I've just tried piCorePlayer ver 8.2 - same problem. With piCorePlayer ver. 4.1.0 no problem at all. I wonder what cause would be.
    Last edited by deadushka; 2022-06-30 at 08:34.
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

  2. #2
    Senior Member
    Join Date
    Feb 2009
    Posts
    508
    Use Dolby

  3. #3
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,872
    For what it's worth the DAC that you are using does not support DSD, and rates upto 192k. So the sound is being transcoded on your server, and likely resampled by sox.

    I would start by turning on logging for squeezelite, and see what it says about the data coming in, and it's format. You might also turn on the lms server logging for transcoding, so you can see the commandlines being used for transcoding.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    5,126
    Quote Originally Posted by deadushka View Post
    All piCorePlayers above ver. 4.1.0 produce audible hiss during playback of DSD files (I have .dsf) in my system. These are converted to PCM at 352Khz.

    I have DSDplayback plugin installed and I have PCM5242 and IQaudIO Pro I2S DACs both have the same issue.

    I'm runnung Logitech Media Server Version: 8.3.0 - 1649774106 on Fedora 35 machine.

    I've just tried piCorePlayer ver 8.2 - same problem. With piCorePlayer ver. 4.1.0 no problem at all. I wonder what cause would be.
    Try this setting

    Name:  squeezelite for dac hat.png
Views: 56
Size:  28.9 KB

    Obviously this was for a different dac hat, but it might work

    ronnie

  5. #5
    Quote Originally Posted by paul- View Post
    For what it's worth the DAC that you are using does not support DSD, and rates upto 192k. So the sound is being transcoded on your server, and likely resampled by sox.

    I would start by turning on logging for squeezelite, and see what it says about the data coming in, and it's format. You might also turn on the lms server logging for transcoding, so you can see the commandlines being used for transcoding.
    I didn't say it supports native DSD I said the server transcodes DSD into PCM at 352.8kHz (the display shows this). Max for PCM5242 is 384kHz. LMS logs do not show anything suspicious.

    Log of piCorePlaye is this:

    /usr/local/bin/squeezelite -n piCorePlayer -o plughw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -d stream=debug -f /var/log/pcp_squeezelite.log
    [20:29:05.481786] stream_init:462 init stream
    [20:29:05.481948] stream_init:463 streambuf size: 2097152
    [20:29:53.071544] stream_close:516 close stream

    /usr/local/bin/squeezelite -n piCorePlayer -o plughw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -d decode=info -f /var/log/pcp_squeezelite.log
    [20:29:55.007235] decode_init:153 init decode
    [20:29:55.007491] register_dsd:908 using dsd to decode dsf,dff
    [20:29:55.007507] register_alac:549 using alac to decode alc
    [20:29:55.008381] load_faad:633 loaded libfaad.so.2
    [20:29:55.008398] register_faad:663 using faad to decode aac
    [20:29:55.009512] load_vorbis:356 loaded libvorbisfile.so.3
    [20:29:55.009527] register_vorbis:385 using vorbis to decode ogg
    [20:29:55.011156] load_opus:298 loaded libopusfile.so.0
    [20:29:55.011171] register_opus:328 using opus to decode ops
    [20:29:55.011974] load_flac:308 loaded libFLAC.so.8
    [20:29:55.011988] register_flac:336 using flac to decode ogf,flc
    [20:29:55.012000] register_pcm:483 using pcm to decode aif,pcm
    [20:29:55.012676] load_mad:394 loaded libmad.so.0
    [20:29:55.012696] register_mad:423 using mad to decode mp3
    [20:29:55.016046] decode_flush:236 decode flush
    [20:29:55.016213] decode_flush:236 decode flush
    [20:30:32.077729] decode_flush:236 decode flush
    [20:30:32.099568] codec_open:264 codec open: 'f'
    [20:30:32.147676] write_cb:145 setting track_start
    [20:31:42.043300] decode_close:221 close decode

    /usr/local/bin/squeezelite -n piCorePlayer -o plughw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -d decode=debug -f /var/log/pcp_squeezelite.log
    [20:31:44.030885] decode_init:153 init decode
    [20:31:44.031139] register_dsd:908 using dsd to decode dsf,dff
    [20:31:44.031153] register_alac:549 using alac to decode alc
    [20:31:44.032035] load_faad:633 loaded libfaad.so.2
    [20:31:44.032052] register_faad:663 using faad to decode aac
    [20:31:44.033223] load_vorbis:356 loaded libvorbisfile.so.3
    [20:31:44.033244] register_vorbis:385 using vorbis to decode ogg
    [20:31:44.034895] load_opus:298 loaded libopusfile.so.0
    [20:31:44.034911] register_opus:328 using opus to decode ops
    [20:31:44.035717] load_flac:308 loaded libFLAC.so.8
    [20:31:44.035731] register_flac:336 using flac to decode ogf,flc
    [20:31:44.035743] register_pcm:483 using pcm to decode aif,pcm
    [20:31:44.036299] load_mad:394 loaded libmad.so.0
    [20:31:44.036313] register_mad:423 using mad to decode mp3
    [20:31:44.036324] decode_init:194 include codecs: exclude codecs:
    [20:31:44.039776] decode_flush:236 decode flush
    [20:31:44.040109] decode_flush:236 decode flush
    [20:31:49.874141] decode_flush:236 decode flush
    [20:31:49.893358] codec_open:264 codec open: 'f'
    [20:31:49.942824] write_cb:145 setting track_start
    [20:32:35.917693] decode_close:221 close decode

    /usr/local/bin/squeezelite -n piCorePlayer -o plughw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -d output=info -f /var/log/pcp_squeezelite.log
    [20:32:37.875733] output_init_alsa:936 init output
    [20:32:37.875951] output_init_alsa:975 requested alsa_buffer: 80 alsa_period: 4 format: any mmap: 1
    [20:32:37.885292] output_init_common:426 supported rates: 1536000 1411200 768000 705600 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
    [20:32:37.903391] output_init_alsa:1002 memory locked
    [20:32:37.903482] output_init_alsa:1008 glibc detected using mallopt
    [20:32:37.903853] output_thread:685 open output device: plughw:CARD=sndrpihifiberry,DEV=0
    [20:32:37.903895] alsa_open:354 opening device at: 44100
    [20:32:37.910570] alsa_open:425 opened device plughw:CARD=sndrpihifiberry,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [20:32:37.910974] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 period size: 882
    [20:32:37.913820] output_flush:439 flush output buffer
    [20:32:37.914068] output_flush:439 flush output buffer
    [20:32:40.655947] output_flush:439 flush output buffer
    [20:32:40.731239] _output_frames:65 start buffer frames: 200448
    [20:32:40.731328] _output_frames:153 track start sample rate: 352800 replay_gain: 130762
    [20:32:40.741410] output_thread:685 open output device: plughw:CARD=sndrpihifiberry,DEV=0
    [20:32:40.741670] alsa_open:354 opening device at: 352800
    [20:32:40.742949] alsa_open:425 opened device plughw:CARD=sndrpihifiberry,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [20:32:40.743362] alsa_open:516 buffer: 80 period: 4 -> buffer size: 28224 period size: 7056
    [20:33:33.025068] output_close_alsa:1033 close output

    /usr/local/bin/squeezelite -n piCorePlayer -o plughw:CARD=sndrpihifiberry,DEV=0 -a 80:4::1: -d output=debug -f /var/log/pcp_squeezelite.log
    [20:33:34.871001] output_init_alsa:936 init output
    [20:33:34.871206] output_init_alsa:975 requested alsa_buffer: 80 alsa_period: 4 format: any mmap: 1
    [20:33:34.871231] output_init_common:360 outputbuf size: 3528000
    [20:33:34.871370] output_init_common:384 idle timeout: 0
    [20:33:34.880053] output_init_common:426 supported rates: 1536000 1411200 768000 705600 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
    [20:33:34.898564] output_init_alsa:1002 memory locked
    [20:33:34.898656] output_init_alsa:1008 glibc detected using mallopt
    [20:33:34.899019] output_thread:685 open output device: plughw:CARD=sndrpihifiberry,DEV=0
    [20:33:34.899033] output_init_alsa:1028 set output sched fifo rt: 45
    [20:33:34.899057] alsa_open:354 opening device at: 44100
    [20:33:34.900543] alsa_open:425 opened device plughw:CARD=sndrpihifiberry,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1
    [20:33:34.900925] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 period size: 882
    [20:33:34.910027] output_flush:439 flush output buffer
    [20:33:34.910338] output_flush:439 flush output buffer
    [20:33:34.910675] set_volume:233 setting internal gain left: 0 right: 0
    [20:33:47.814324] output_flush:439 flush output buffer
    [20:33:47.831454] set_volume:233 setting internal gain left: 1230 right: 1230
    [20:33:47.833800] set_volume:233 setting internal gain left: 1230 right: 1230
    [20:33:47.941096] _output_frames:65 start buffer frames: 249984
    [20:33:47.941175] _output_frames:153 track start sample rate: 352800 replay_gain: 130762
    [20:33:47.951227] output_thread:685 open output device: plughw:CARD=sndrpihifiberry,DEV=0
    [20:33:47.951482] alsa_open:354 opening device at: 352800
    [20:33:47.952826] alsa_open:425 opened device plughw:CARD=sndrpihifiberry,DEV=0 using format: S32_LE sample rate: 352800 mmap: 1
    [20:33:47.953265] alsa_open:516 buffer: 80 period: 4 -> buffer size: 28224 period size: 7056
    [20:33:54.907708] set_volume:233 setting internal gain left: 1230 right: 1230
    [20:33:54.960425] set_volume:233 setting internal gain left: 915 right: 915
    [20:33:55.010639] set_volume:233 setting internal gain left: 403 right: 403
    [20:33:55.060796] set_volume:233 setting internal gain left: 178 right: 178
    [20:33:55.110756] set_volume:233 setting internal gain left: 78 right: 78
    [20:33:55.160920] set_volume:233 setting internal gain left: 34 right: 34
    [20:33:55.212911] set_volume:233 setting internal gain left: 15 right: 15
    [20:33:55.263881] set_volume:233 setting internal gain left: 0 right: 0
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

  6. #6
    Quote Originally Posted by Man in a van View Post
    Try this setting

    Name:  squeezelite for dac hat.png
Views: 56
Size:  28.9 KB

    Obviously this was for a different dac hat, but it might work

    ronnie
    Thanks for reply. Just tried it. Didn't work unfortunately
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

  7. #7
    This is how DSD-section of LMS looks loke for
    1. piCorePlayer 4.1
    2. piCorePlayer 8.2
    Name:  player41.jpg
Views: 50
Size:  43.5 KB
    Name:  player82.jpg
Views: 50
Size:  32.5 KB
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

  8. #8
    I don't need DSD-over-PCM. I need DSD transcoded to PCM.
    Last edited by deadushka; 2022-06-30 at 10:31.
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,872
    As long as you do not put anything in the squeezelite DSD configuration, DSD nor DOP will be enabled.

    But from the squeezelite logs, you are using a hifiberry driver, and it is trying to feed 352k to the card. Have you tried the iqaudio driver? Also, I would use the hw:xxxxx output.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  10. #10
    Quote Originally Posted by paul- View Post
    As long as you do not put anything in the squeezelite DSD configuration, DSD nor DOP will be enabled.

    But from the squeezelite logs, you are using a hifiberry driver, and it is trying to feed 352k to the card. Have you tried the iqaudio driver? Also, I would use the hw:xxxxx output.
    Yes, I understand that I have to put something on DSD configuration, but what exactly?

    I've tried every combination of drivers the result is the same.

    Can anybody explain why ver 4.1.0 and earlier work without a glitch and plays happily at 352kHz? But newer versions need some song and dance and knowledge of every undocumented goddamn switch to make it work.
    System 1: 12TB i7 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + IQaudIO Pro > 2xTPA3116 Mono Balanced Amps > NHT 1.5 + NHT SubTwo (1000W with DSP Bass Management)
    System 2: 8TB i5 Fedora 34 Server + LMS 8.2.0 > RaspberryPi3 + Generic PCM5242 I2S DAC > 2xTPA3255 Balanced Amps with DSP Bass Management > NHT 2.5i

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •