07-19-2016, 10:17 PM
(07-18-2016, 04:47 PM)jwouellette Wrote:(07-16-2016, 07:20 PM)pfeerick Wrote:(07-16-2016, 03:12 PM)jwouellette Wrote:(07-15-2016, 06:31 PM)jwouellette Wrote: Well, I'm a NOOB and having difficulty. I've tried the earlier commands and gotten nowhere. In mPlayer, VLC and system sound settings, I do see the added analog audiocodec Analog Stereo (1 Output / 2 Inputs, Analog Stereo Output + Analog Mono Input), in the Output tab of Sound Preferences (Ubuntu MATE) but no matter what I select... bubkiss, nada, zippo. Maybe I've got it all horked up... I dunno.i updated to the latest kernel and boot.
I'm using a Baven BZ650 BT speaker plugged directly into the headphone jack.
Any more ideas? I do appreciate the expertise and patience of the gurus. Sometimes things are just tougher to grok for the rest of us....
ran the fix_anything script.
i can see the analog audiocodec (1 output, 1 input) and it detects headphones in the Sound Preferences, but still nothing coming out of the speaker. Even tried my miniamp and studio monitors...nada.
...
Ok, so you've got the latest kernel and uboot. Did you try the commands I used in this thread? They were the commands I needed to get audio working on my debian image. Essentially what you are doing is installing the required audio packages, making sure the required drivers are enabled, fixing up the audio mixer, ensuring the current user actually has audio access privileges, and rebooting to get everything up and running.
Code:sudo apt-get install alsa-base alsa-utils
sudo apt-get install pulseaudio
sudo su
cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF
exit
wget https://raw.githubusercontent.com/longsleep/build-pine64-image/master/blobs/asound.state
sudo mv asound.state /var/lib/alsa/asound.state
sudo usermod -a -G audio username
sudo reboot now
I tried these earlier, but just for giggles, decided to just run the commands again:rebooted and ....
- after the install alsa command, a response that the newest versions were already installed
- after the install pulseaudio command, a response that the newest versions were already installed
- after the EOF... nothing
- after wget... file retrieved
- after mv & usermod.... nothing
now, the analog audiocodec is missing. Back to just the sndhdmi... gee, thanks for the help....
Well, sorry if it didn't work for you. Those are the exact commands I used to reconfigure a debian image from not having analog audio to having analog audio. And I didn't know you'd done that already, as you didn't say you'd tried those commands.
Check the contents of /etc/modules-load.d/pine64-audiojack.conf (more /etc/modules-load.d/pine64-audiojack.conf) as it sounds like it might not have been correctly populated if the modules are missing. If that is the case, note that it is sudo su to get root permissions to create the pine64-audiojack.conf file, then the cat command to put the three lines in the pine64-audiojack.conf file, then exiting su mode. You could also use sudo nano /etc/modules-load.d/pine64-audiojack.conf if you want to manually enter those three lines in.
I don't have my pine64 handy atm, but I think you still then still need to go into the mixer (amixer IIRC) and make sure the sound is turned up! :-O You have to pick the device (F something, tells you on the top right) and then go to the far right mixer bar to find the headphones channel(s).