Use Audiojack instead of HDMI audio
#1
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
    Name: alsa_card.platform-sound.7
    Driver: module-alsa-card.c
    Owner Module: 6
    Properties:
        alsa.card = "0"
        alsa.card_name = "sndhdmi"
        alsa.long_card_name = "sndhdmi"
        device.bus_path = "platform-sound.7"
        sysfs.path = "/devices/soc.0/sound.7/sound/card0"
        device.string = "0"
        device.description = "sndhdmi"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card"
    Profiles:
        output:analog-mono: Analog Mono Output (sinks: 1, sources: 0, priority: 200, available: yes)
        output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
        off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
    Active Profile: output:analog-stereo
    Ports:
        analog-output: Analog Output (priority: 9900, latency offset: 0 usec)
            Part of profile(s): output:analog-mono, output:analog-stereo

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
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF
Run this as root. On Ubuntu you need to enable SU! (thanks longsleep)

Download this file https://github.com/longsleep/build-pine6...ound.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)
#2
(04-27-2016, 12:45 PM)pictus Wrote: 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
Name: alsa_card.platform-sound.7
Driver: module-alsa-card.c
Owner Module: 6
Properties:
alsa.card = "0"
alsa.card_name = "sndhdmi"
alsa.long_card_name = "sndhdmi"
device.bus_path = "platform-sound.7"
sysfs.path = "/devices/soc.0/sound.7/sound/card0"
device.string = "0"
device.description = "sndhdmi"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
Profiles:
output:analog-mono: Analog Mono Output (sinks: 1, sources: 0, priority: 200, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: output:analog-stereo
Ports:
analog-output: Analog Output (priority: 9900, latency offset: 0 usec)
Part of profile(s): output:analog-mono, output:analog-stereo

is it possible to enable the Analog Audio output through the audiojack?

You need to load the modules for that stuff. I recently moved the audiocodec driver to a module.
#3
Thank you for your reply, a n00bish question, how do i do this?
#4
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.
#5
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?
#6
Also with Debian I do not have the /etc/modules.d path.
#7
It is called /etc/modules-load.d since a long time.
#8
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 ).
#9
(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?
#10
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  +LTS/SOPINE Audio Jack Pinout Little_Johnny 0 2,982 12-29-2019, 08:44 AM
Last Post: Little_Johnny
  Pine64 (analog) Audio Jack Output w/ Kernel 4.19 ecolezen 0 3,057 01-24-2019, 07:00 AM
Last Post: ecolezen
  PINE64 STEREO AUDIO DAC POT jtgiroux 0 3,142 01-12-2019, 04:56 PM
Last Post: jtgiroux
  Sound quality from audio jack devanl 0 3,247 10-11-2017, 10:39 PM
Last Post: devanl
  Audio Extractor Ralck 1 4,452 05-25-2017, 12:25 PM
Last Post: dkryder
  Using the pine64 with AVR - HDMI pass-through Moshe.Vazan 4 6,087 01-02-2017, 02:58 PM
Last Post: Moshe.Vazan
  HDMI touch screen not detected Radio 2 4,558 09-29-2016, 06:42 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 2 Guest(s)