![]() |
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) |
Use Audiojack instead of HDMI audio - pictus - 04-27-2016 Hi, i installed longsleep´s Ubuntu and added xubuntu-desktop. i can´t find an option to enable the audiojack on the board, it always uses the HDMI audio. Running Code: pactl list cards Displays: Code: Card #0 is it possible to enable the Analog Audio output through the audiojack? ---------------------------------------------------------------------------------------------- EDIT: it works, big thanks goes to longsleep for his great support Update to latest Kernel Version! (i use 3.10.101-0-pine64-longsleep-39) Step by Step guide: Code: cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf Download this file https://github.com/longsleep/build-pine64-image/blob/master/blobs/asound.state and put it under (thanks longsleep) Code: /var/lib/alsa/asound.state Reboot, now it works! I use a desktop enviroment and can switch between output devices in Soundsettings (PulseAudio Volume Control - pavucontrol) RE: Use Audiojack instead of HDMI audio - longsleep - 04-27-2016 (04-27-2016, 12:45 PM)pictus Wrote: Hi, You need to load the modules for that stuff. I recently moved the audiocodec driver to a module. RE: Use Audiojack instead of HDMI audio - pictus - 04-27-2016 Thank you for your reply, a n00bish question, how do i do this? RE: Use Audiojack instead of HDMI audio - baryluk - 04-27-2016 Try: echo sunxi_sndcodec >> /etc/modules.d/pine64-audiojack.conf or echo audiocodec >> /etc/modules.d/pine64-audiojack.conf (or even both, but each once) from root, and reboot your pine. RE: Use Audiojack instead of HDMI audio - pictus - 04-28-2016 nope -bash: /etc/modules.d/pine64-audiojack.conf: No such file or directory I dont have an "modules.d" in /etc/, the only modules.d i can find is under /usr/share/initramfs-tools/modules.d should i try this? RE: Use Audiojack instead of HDMI audio - rahlquist - 04-28-2016 Also with Debian I do not have the /etc/modules.d path. RE: Use Audiojack instead of HDMI audio - longsleep - 04-28-2016 It is called /etc/modules-load.d since a long time. lenny, help with audio jack - rahlquist - 04-28-2016 Lenny, Ok lets see if we can get a bit of good info flowing here. Situation is as follows. Clean install of your 4/8 image. Have run the apt-get install, u-boot, and kernel update, have run lonsleeps fixall to fix audio so now I am stable and up to date. Have installed xrdp as well since I have the hdmi issue. So now my question is; What are the simplest steps to test output on my audio jack and also over hdmi? How can I do this, in a step by step manner. I have noted longsleep does not have the audio jack module loading at this time (ref: http://forum.pine64.org/showthread.php?tid=807 ). RE: Use Audiojack instead of HDMI audio - rahlquist - 04-28-2016 (04-28-2016, 11:34 AM)longsleep Wrote: It is called /etc/modules-load.d since a long time. So in the case of someone using your latest kernel on lenny's debian install is this what I would need to do; echo sunxi_sndcodec >> /etc/modules-load.d/pine64-audiojack.conf or echo audiocodec >> /etc/modules-load.d/pine64-audiojack.conf in order to load the modules? RE: Use Audiojack instead of HDMI audio - longsleep - 04-28-2016 Something like this cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf sunxi_codec sunxi_i2s sunxi_sndcodec EOF And reboot. My images only provide tested HDMI audio - means I have no idea if that driver actually works. With the modules above loaded: aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 [] Subdevices: 1/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 |