Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting my HifiBerry Mini Amp running again #1072

Closed
georgbachmann opened this issue Oct 2, 2020 · 5 comments
Closed

Getting my HifiBerry Mini Amp running again #1072

georgbachmann opened this issue Oct 2, 2020 · 5 comments

Comments

@georgbachmann
Copy link

georgbachmann commented Oct 2, 2020

I have my phoniebox for quite a while now, but recently the card reader stopped working. So today I finally found some time and tried out various thing. The cards would just not read :(

Btw.... Hope it's fine if I use the issues section here for my problem?!?

So I simply went ahead and reinstalled the Phoniebox Software using the command line script. It was asking me something about audio right in the beginning which I skipped, cause audio was working before (I did not completely wipe the whole raspberry)...
Then I first went ahead and made sure the rfid thinggy was working again (which it was... jippie) but then I found out that the sound is not working again.
I remember that this was quite a pain when I initially did set it up... I even had some backups where I could see my config. Nothing worked

So now after about 2 hours of not really knowing anything about audio and linux and playing around with various suggestions I was reading on the internet, I have to give up... And would be super happy if I can find somebody smarter than me to help me :)

So... my current config is this:

/etc/asound.conf

pcm.hifiberry {
    type softvol
    slave.pcm "plughw:0"
    control.name "Master"
    control.card 0
}
pcm.!default {
    type       plug
    slave.pcm  "hifiberry"
}

/etc/mpd.conf

audio_output {
        type            "alsa"
        name            "My ALSA Device"
#       device          "hw:0,0"        # optional
#       mixer_type      "software"      # optional
#       mixer_device    "default"       # optional
#       mixer_control   "Master"        # optional
#       mixer_index     "0"             # optional
}

audio_output {
        enabled         "yes"
        type            "alsa"
        name            "HiFiBerry DAC"
        device          "hifiberry"
        auto_resample   "no"
        auto_channels   "no"
        auto_format     "no"
        dop             "no"
}

/boot/config.txt

device_tree_param=spi=on
dtoverlay=spi-bcm2708

dtoverlay=hifiberry-dac
dtoverlay=dwc2

speaker-test does at least pretend do be doing something... but I cant hear anything

aplay -l gives me


**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I don't know if there is anything else relevant...
I'd be super super happy for any help as I have no clue what else I need to try :(

@lj2000
Copy link
Contributor

lj2000 commented Oct 2, 2020

On my side I have two phonieboxes running which both have a Hifiberry DAC.

I don't know if the problem still exists after the rework sessions of the phoniebox software in the last months.
But in the past you always had to change the default gpio configuration to get the Hifiberry DAC running with the Phoniebox.

Using the standard gpio configuration leads to a reconfiguration of the I2C pin(s) to gpio functionality. But the Hifiberry DAC needs the I2C hardware function. So in my opinion you must disable the gpio service if you don't use any buttons or you have to reconfigure the gpio settings script to your hardware situation

@lj2000
Copy link
Contributor

lj2000 commented Oct 2, 2020

See also:
#544

@lj2000
Copy link
Contributor

lj2000 commented Oct 2, 2020

It's for another Audio HAT, but the problem was the same:
#549

@georgbachmann
Copy link
Author

Ahhhhhh... super cool hint! Thank you very much! I hope I'll have time tomorrow evening to try it out, but will keep you posted! Thanks a lot!!!

@georgbachmann
Copy link
Author

@lj2000 yeah yeah yeah... that did the trick!!! awesome! wouldn't have thought about that :) cool!!! thanks a lot!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants