FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.96k stars 355 forks source link

Configure Audio #135

Closed kamikaze463 closed 4 years ago

kamikaze463 commented 4 years ago

I could be sounding really stupid but I have one question, How do I route audio to 3.5mm jack instead of HDMI. Currently the audio output is just fine with HDMI.

flatsiedatsie commented 4 years ago

are you running it with -a analog?

kamikaze463 commented 4 years ago

Yes. I’m

On Jul 1, 2020 at 19:43, <flatsiedatsie (mailto:notifications@github.com)> wrote:

are you running it with -a analog?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/FD-/RPiPlay/issues/135#issuecomment-652443378), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AOG7MZHI42NKHC7WM62PPIDRZNAATANCNFSM4OLAK3VQ).

flatsiedatsie commented 4 years ago

Have you tried amixer cset numid=3 1 ?

kamikaze463 commented 4 years ago

it throws an error "amixer: Cannot find the given element from control default"

amixer gives me below output:

Simple mixer control 'HDMI',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 400 [100%] [4.00dB] [on]

However, I've set the playback to headphones in raspiconfig

FD- commented 4 years ago

Since RPiPlay uses OpenMAX for audio, not ALSA, amixer won't help here, I'm afraid. The -a analog switch should work though (it does for me on Pi Zero and 3B+) !

kamikaze463 commented 4 years ago

Well, something happened and yesterday's apt upgrade fixed the issue. My analog and hdmi output both seem to be working fine with the switches. Anyways I really appreciate the effort that you guys put into this. THANK YOU!

pallas commented 4 years ago

Seems resolved, closing. Please lmk if that's incorrect.