Announcement

Collapse
No announcement yet.

HifiBerry Digi2 Pro

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HifiBerry Digi2 Pro

    Playback of my recently acquired DIGI2-PRO v2.2 board is too slow.
    It is like playback of a 45rpm record at a 33rpm speed.
    I am using the PiCorePlayer v8.2.0/Squeelite/LMS platform.

    Playback by the standard Raspberry Pi 3B+ headphone jack is correct.
    On another Pi 3B+ playback over USB is also without any issues.

    I just can't get the driver settings working correct.
    Aplay-l command doesn't show "DIGI PRO"....?
    Any ideas?


    Click image for larger version

Name:	image.png
Views:	399
Size:	71.3 KB
ID:	1627599
    Click image for larger version

Name:	image.png
Views:	352
Size:	18.7 KB
ID:	1627600
    Click image for larger version

Name:	image.png
Views:	346
Size:	19.0 KB
ID:	1627601

    #2
    Check your config file.

    From the data sheet


    Configuration


    Overlay for config.txt:
    dtoverlay=hifiberry-digi-pro
    ronnie

    Edit: I coud not read your screenshots clearly but it would appear the correct overlay is used. It's sometimes better to copy and past the text between code tags
    what out put choices are listed on the Sqeezelite Settings page (expand the red word more)
    Last edited by Man in a van; 2023-01-20, 09:50.

    Comment


      #3
      Originally posted by JdL View Post
      Playback of my recently acquired DIGI2-PRO v2.2 board is too slow.
      It is like playback of a 45rpm record at a 33rpm speed.
      I am using the PiCorePlayer v8.2.0/Squeelite/LMS platform.

      Playback by the standard Raspberry Pi 3B+ headphone jack is correct.
      On another Pi 3B+ playback over USB is also without any issues.

      I just can't get the driver settings working correct.
      Aplay-l command doesn't show "DIGI PRO"....?
      Any ideas?
      Mines a Digi+, settings below, may help?

      Click image for larger version

Name:	Digi.jpg
Views:	338
Size:	81.4 KB
ID:	1627608

      Server - LMS 8.4.0 RPi4B 4GB/NanoSound ONE case/pCP 8.1.0 - 75K library, playlists & LMS cache on Sata SSD (ntfs)

      Lounge - DAC32 - AudioEngine B2
      Office - RPi 3B+/HiFiBerry DAC HAT/RPi screen - Edifier D12
      Bedroom - Echo Show 8

      Spares - 1xSB Touch, 1xSB3, 4xRPi, AVI DM5 speakers

      Comment


        #4
        I concur with kidstypike. I use a DIGI2 Pro (on a RPi2). The Digi & Digi+ option works fine:

        Click image for larger version

Name:	hfb.jpg
Views:	334
Size:	24.5 KB
ID:	1627614

        Attached Files
        Until recently: Transporter -> ATC SCM100A, now sold :-(
        House move forced change to: piCorePlayer(RPi2/HiFiBerry DIGI2 Pro) -> Meridian 218 -> Meridian M6

        Comment


          #5
          And this is from https://github.com/raspberrypi/firmw...verlays/README


          Name: hifiberry-digi-pro
          Info: Configures the HifiBerry Digi+ Pro and Digi2 Pro audio card
          Load: dtoverlay=hifi​
          There was a problem with this board when it was released; the rpi foundation changed the pin order on rpi4b and the board was not recognised by the software.






          to the OP, does the board show in the boot log and dmesg?

          Try the hifiberry OS to check if it works

          ronnie

          Comment


            #6
            Whatever I choose in the Squeezelite settings page "HifiBerry Digi and Digi+" or "HifiBerry Digi+ Pro", playback is still too slow.
            Config.txt shows correct settings as "dtoverlay=hifiberry-digi" or "dtoverlay=hifiberry-digi-pro" depending on my choice of course.
            But APLAY-L only shows "device0: HifiBerry Digi Hifi" etc. no difference between the 2.

            Click image for larger version

Name:	image.png
Views:	322
Size:	12.1 KB
ID:	1627631

            Joost

            Comment


              #7
              Don't get me wrong.
              The card does work. I am getting sound, but too slow.
              Both Optical as well as coax.
              Headphone playback on the Pi itself is at correct speed.

              Comment


                #8
                Originally posted by JdL View Post
                Don't get me wrong.
                The card does work. I am getting sound, but too slow.
                Both Optical as well as coax.
                Headphone playback on the Pi itself is at correct speed.
                Which output setting are you using?
                Server - LMS 8.4.0 RPi4B 4GB/NanoSound ONE case/pCP 8.1.0 - 75K library, playlists & LMS cache on Sata SSD (ntfs)

                Lounge - DAC32 - AudioEngine B2
                Office - RPi 3B+/HiFiBerry DAC HAT/RPi screen - Edifier D12
                Bedroom - Echo Show 8

                Spares - 1xSB Touch, 1xSB3, 4xRPi, AVI DM5 speakers

                Comment


                  #9
                  Originally posted by JdL View Post
                  Don't get me wrong.
                  The card does work. I am getting sound, but too slow.
                  Both Optical as well as coax.
                  Headphone playback on the Pi itself is at correct speed.
                  The issue could be the card is reporting wrong speed capability to squeezelite (via ALSA)

                  What is the format of your test streams/files ?
                  Is the sound slow for both 44.1kHz stream and 48kHz files/streams these are sample rates not bit rate ?

                  What does alsacap say about the capabilities of the alsa device you are using ?

                  Comment


                    #10
                    This is my current setting:
                    Click image for larger version

Name:	image.png
Views:	320
Size:	96.2 KB
ID:	1627640

                    I use CD-ripped FLAC files.
                    Not sure how to find other 48kHz files.

                    Click image for larger version

Name:	image.png
Views:	317
Size:	11.5 KB
ID:	1627641


                    Joost
                    Attached Files

                    Comment


                      #11
                      Using a Digi+ Pro, I have some additional Squeezelite settings in pCP:

                      Max sample rate: 32000-192000

                      Upsample setting: E


                      I don't necessarily think these are likely to help you, but should be easy enough to try.
                      Usually running latest beta LMS nightly on Raspberry Pi OS with virtual players (Squeezelite and Airplay bridge). Occasionally using SB Radio, Boom or Classic.

                      Comment


                        #12
                        Originally posted by JdL View Post
                        Not sure how to find other 48kHz files.
                        Most common case of stream sounding slow is when a 48kHz stream is played at 44.1Khz.
                        A ripped CD will be at 44.1kHz so to make it sound slow is unusual.
                        Knowing exactly how slow it is being played might provide a clue - compare expected track duration against how long it takes to play through the player.

                        For alsacap to work - nothing else must be using the device as this will prevent it being opened. So when running alsacap make sure squeezelite is stopped.

                        IIRC BBC station live through BBC Sounds (not shoutcast) or Radio France France Musique AAC streams are 48Khz.



                        Comment


                          #13
                          Need some time to figure this out.
                          What bugs me is that playback through the standard headphone jack of the Pi itself is without any issue.......?

                          Could powersupply be of influence?
                          I don't have the official Raspberry Pi power, but one sold to me as compatible. (2.5A)

                          Comment


                            #14
                            Originally posted by JdL View Post
                            Need some time to figure this out.
                            What bugs me is that playback through the standard headphone jack of the Pi itself is without any issue.......?

                            Could powersupply be of influence?
                            I don't have the official Raspberry Pi power, but one sold to me as compatible. (2.5A)
                            Less power will not slow down audio - it is a clocking setting that is at fault.


                            The point of the questions is to eliminate different aspects and so you can home in on the problem area.

                            Wrong speed can result from many sources including.
                            1. Hardware issue (e.g. faulty clock)
                            2. ALSA device associated error
                            3. Squeezelite errors - possibly due to ALSa possibly due to command line options
                            4. LMS issues - either resampling not happening or incorrectly resampling.

                            Trying lots of different changes at the same time is often not efficient and may complicate things if the changes are not undone after a test.

                            Get the details from alsacap - that will confirm what speeds are ALSA thinks are supported and which is relayed back to LMS.
                            Hopefully other users of the board may be able to confirm whether the Alsacap details are "normal" (i.e rule out h/w issue)

                            Exactly how much is the audio being slowed down - this can point to likely source (e.g. 50% slowdown can be the result of mono / stereo mixup whereas 10-12% is usually a 44.1 vs 48 kHz issue)

                            Comment


                              #15
                              I have found the issue.
                              I am using a Pushbutton to shutdown PiCoreplayer and this gpio-shutdown setting is causing Squeezelite not recognizing the Digi2-Pro.

                              Click image for larger version

Name:	image.png
Views:	251
Size:	22.3 KB
ID:	1627764

                              And now Aplay-L shows my Digi-pro:
                              Click image for larger version

Name:	image.png
Views:	250
Size:	4.6 KB
ID:	1627763

                              I was not aware of the use of GPIO-5 by Digi2-Pro.
                              Attached Files

                              Comment

                              Working...
                              X