![]() |
Use Audiojack instead of HDMI audio - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +--- Thread: Use Audiojack instead of HDMI audio (/showthread.php?tid=807) |
RE: Use Audiojack instead of HDMI audio - pictus - 04-28-2016 Does this disable HDMI audio at all, or can i switch between HDMI and Audiojack? I´m a little bit scared of running this, and then have no sound at all. When i remove "/etc/modules-load.d/pine64-audiojack.conf" if its not working, is it reseted to the defaults? RE: Use Audiojack instead of HDMI audio - longsleep - 04-28-2016 (04-28-2016, 12:11 PM)pictus Wrote: Does this disable HDMI audio at all, or can i switch between HDMI and Audiojack? It changes nothing to HDMI audio as HDMI audio is built into the Kernel. How you switch output devices depends on the software you use. If you use a desktop with pulseaudio use pavucontrol (probably have to install it). (04-28-2016, 12:11 PM)pictus Wrote: When i remove "/etc/modules-load.d/pine64-audiojack.conf" if its not working, is it reseted to the defaults? Sure - after all its not Windows or Mac OS. RE: Use Audiojack instead of HDMI audio - pictus - 04-28-2016 i tried cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf sunxi_codec sunxi_i2s sunxi_sndcodec EOF but its not working, i see "Headphones" in Pulse Audio Volume Control. The bar is moving to the music, but no sound on my Headphones. I tried several profiles under Control/audiocodec. aplay -l, shows following: card 0: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 [] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 [] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: audiocodec [audiocodec], device 1: bb Voice codec-aif2-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: audiocodec [audiocodec], device 2: bb-bt-clk codec-aif2-2 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: audiocodec [audiocodec], device 3: bt Voice codec-aif3-3 [] Subdevices: 1/1 Subdevice #0: subdevice #0 RE: Use Audiojack instead of HDMI audio - baryluk - 04-28-2016 Try playing something directly to alsa. I often have bad experience with pulse audio and multiple audio cards for example: mplayer -ao alsa:device=hw=1.0 some_audio_or_vide_file.mp4 also for volume manipulation check alsamixer from the console. With F6 key you can select cards, and with key M you can mute unmute channels. RE: lenny, help with audio jack - baryluk - 04-28-2016 Why start new topic on this? All info is in Check the http://forum.pine64.org/showthread.php?tid=807 RE: lenny, help with audio jack - tllim - 04-28-2016 (04-28-2016, 04:21 PM)baryluk Wrote: Why start new topic on this? All info is in Check the http://forum.pine64.org/showthread.php?tid=807 merge thread RE: lenny, help with audio jack - rahlquist - 04-28-2016 (04-28-2016, 04:21 PM)baryluk Wrote: Why start new topic on this? All info is in Check the http://forum.pine64.org/showthread.php?tid=807 If you are referring to the thread I started it was early on in the age of this thread. I was aiming for a different goal. While pictus and I were trying to get our own audio working with support from longsleep, I was also looking for a simplified and standard way to see if lenny had a suggestion. Something that could be stickied where users may not have to follow through all the troubleshooting steps. Not trying to make clutter or slight anyone just tryng to get another source of input. (04-28-2016, 04:20 PM)baryluk Wrote: Try playing something directly to alsa. I often have bad experience with pulse audio and multiple audio cards For myself when I tried this with an mp3 it acted like it was playing but no output over the headphone jack. Code: MPlayer2 2.0-728-g2c378c7-4 (C) 2000-2012 MPlayer Team Code: [ 439.262689] SUNXI_HMIC_STS:10,225 RE: Use Audiojack instead of HDMI audio - longsleep - 04-29-2016 It works just fine when the mixer settings are configured correctly. Though this is not simple due to the gazillion playback settings with useless defaults this driver provides. You can control them all using "alsamixer". Important alsamixer settings: - Unmute "Headphone" - Set ADCL Mux to "DMIC" - Set ADCR Mux to "DMIC" - Set AIF1 DAC timeslot 0 volume to "65" - Set AIF1IN0L Mux to "AIF1_DA0L" - Set AIFIN0R Mux to "AIF1_DA0R" - Set digital volume to "0" - Set headphone volume to "75" And it works pretty good. I see that this might be difficult, so i just added a sane alsa state file to https://github.com/longsleep/build-pine64-image/blob/master/blobs/asound.state - put that file at /var/lib/alsa/asound.state and reboot - voila. RE: Use Audiojack instead of HDMI audio - pictus - 04-29-2016 great, thank you. I will try it tomorow RE: Use Audiojack instead of HDMI audio - Luke - 04-29-2016 (04-29-2016, 12:49 PM)longsleep Wrote: It works just fine when the mixer settings are configured correctly. Though this is not simple due to the gazillion playback settings with useless defaults this driver provides. You can control them all using "alsamixer". Nice and simple. Thanks Longsleep! |