hexdump0815 / sonaremin-ng

sonaremin next generation :) - "vcvrack in a box" or "roll your own synth"
15 stars 0 forks source link

Audio on plays on HDMI, but not headphone jack [RPi 3] #3

Open jeffreylin opened 3 years ago

jeffreylin commented 3 years ago

What the title says - VCV Rack works fine on my RasPi 3, but only on HDMI, and not with the headphone jack.

I know it's not the headphone jack itself, since the headphone jack plays sound fine w/ stock Raspbian.

Here's my aplay -l in case it helps:

sonaremin@sonaremin:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM vc4-hdmi-hifi-0 [MAI PCM vc4-hdmi-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 7/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 1: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
sonaremin@sonaremin:~$ 

Thanks so much for all the work you've done on Sonaremin so far - looks amazing and hoping to get it to work. Let me know if I can print any other output to help debug.

jeffreylin commented 3 years ago

Actually this is sort of incorrect - If I run my RasPi 3 headless and don't plug in a HDMI monitor, then headphone sound does work. However, plugging in the HDMI cable afterwards doesn't give me any display signal so I can't see the GUI. =/

Will look into some way to disable HDMI sound all together.

hexdump0815 commented 3 years ago

hi @jeffreylin ,

thanks for reporting this - i think itested it with a hdmi monitor without audio and i think there it worked. please let me know if you find a way to send the audio to the proper output.

best wishes - hexdump

PatchworkBoy commented 2 years ago

Edit config.txt on root of boot part.

Add:

hdmi_ignore_edid_audio=1 audio_pwm_mode=2

The 2nd line is optional - removes noise/hiss.

Reboot. Done.