Audio not detected - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +---- Forum: Debian (https://forum.pine64.org/forumdisplay.php?fid=24) +---- Thread: Audio not detected (/showthread.php?tid=1832) Pages:
1
2
|
Audio not detected - babolivier - 07-23-2016 Hey there, So I installed longsleep's Debian Base (3.10.102 BSP 2) image, and try to install Mopidy on it (music server). But the fact is that I can't get the audio working. I have my headphones plugged in and I can't get any sound. I looked around a bit and found this post. I followed the instructions, but couldn't manage to get any sound. Plus it seems like the audio channel isn't even detected: Code: root@pine64:/home/mopidy/media# aplay -l Is there a way to get the audio working with this image or should I switch to the 3.10.65 BSP one? RE: Audio not detected - xalius - 07-23-2016 Headjack audio out works with the latest Debian/Ubuntu images and the 102-2 kernel, did you follow all of those: 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 RE: Audio not detected - babolivier - 07-23-2016 I didn't followed from the wget. Just did the whole procedure then rebooted. Now I have another soundcard in alsamixer, which has many channels. When I go to the very right, and edit the volume of the track just before the last one (so the "headphon" track) I hear some clicking in my headphone's left side. But nothing else, and playing something with mplayer still doesn't get me any sound. Also I'm now able to see the card in aplay -l (but pactl list cards still fails): Code: root@pine64:~# aplay -l Tried to play some stuff with Mopidy, still got the same error (that I forgot to paste earlier): Code: WARNING GStreamer warning: gst-resource-error-quark: Could not open audio device for playback. (6) RE: Audio not detected - xalius - 07-23-2016 The asound.state file from longsleep's git has sane default mixer settings, combined with pulseaudio in Mate Desktop, sound just works for me so far, using the Pine to play BBC world service radio stream atm :-) If you use mplayer or any other player, make sure it is pointing to the correct ALSA output card and device... card 1: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 [] is the correct one, the other ones on card 1 are either for the cellphone baseband modem (which we dont have :-) ) or for the bluetooth audio PCM channels ... RE: Audio not detected - babolivier - 07-23-2016 Still doesn't do the job here :/ I managed to chaneg the soundcard mplayer is pointing to with the ALSA_CARD environment variable, but all I hear is a click on both side of my headphones when I play a track, and a click on the left side when I stop. Not sure how to specify the Alsa device (SUNXI-CODEC) though. I also got this error which I think might be related. Code: [AO_ALSA] Unable to find simple control 'Master',0. I don't see a Master control in alsamixer, so I think that's where the error comes from. However, I don't know how to tell mplay which control I want to use (and I'm not even sure that would resolve the issue). RE: Audio not detected - pfeerick - 07-26-2016 (07-23-2016, 11:43 AM)babolivier Wrote: Still doesn't do the job here :/ EDIT: After some more fiddling, as I liked the look of the Mopidy server so tried it out myself, I came to realise the issue wasn't with sound as that was working just fine with mplayer, but instead something to do with gsteamer. An hour later, and I came across a reference to no audio from autoaudiosink but working pulseaudio, and someone said to run sudo aptitude install gstreamer1.0-alsa and it works! I have mopidy running on the pine64 playing some local files. So it is doable. I also installed Mopidy from source as I was otherwise stuck with v0.19 as opposed to v2.0.0. I'm not sure you need to specify which audio device mplayer uses if things are set up properly. I know I certainly don't in my case, as pulseaudio works as is. If you run mplayer -playlist http://www.radiofeeds.co.uk/bbcradio4fm.pls what do you get? I'm specifically wondering what the A0 line under AUDIO says - the below snipped is the last few lines of output before the sound comes out, showing that it is outputting to pulse(audio). btw, the playlist file is for what it says it is... BBCs Radio4 Code: Detected file format: Audio only If that line comes up for you, and it seems like mplayer is playing but there is no sound, next thing to check is alsamixer. You said you got some clicks. Do you get clicks if you move the volume for the headphones channel above say around 60? If so, next thing to double check is the user groups. That 'sudo usermod -a -G audio username' line is important - if you're not in the audio group, you won't get sound. Nada. Zilch. and make sure the username is your logged in username - ie my prompt is pfeerick@pine64 - meaning my username is pfeerick (and the hostname is pine64). The default for a lot of images is pine64user. After you set the group, you need to reboot - merely logging in and out didn't work for me, a reboot is needed. Interestingly enough, I also get the connection refused message from pulseaudio if I issue the command via sudo (when logged in as a user), but it works fine when run normally as a user (ie without sudo). So perhaps some of your problem with pactl not working is from being logged in as the root user? Code: pfeerick@pine64:~$ sudo pactl list cards RE: Audio not detected - xalius - 07-26-2016 Thanks pfeerick for figuring that out, I want to use the 32-bit version of Mopidy together with libspotify for armhf to make a Spotify streaming receiver ... RE: Audio not detected - babolivier - 08-12-2016 Hey there, Sorry for the lack of reply. I just wanted to let you guys know that my setup now works correctly, the problem came from the fact that the jack output doesn't seen supported by the Debian image. Switching to the Ubuntu image literally fixed my problem (on Debian I wasn't even able to play anything through mplayer). RE: Audio not detected - MarkHaysHarris777 - 08-12-2016 My audio jack works just fine in debian. RE: Audio not detected - pqueiro - 08-22-2016 (07-26-2016, 09:34 AM)xalius Wrote: Thanks pfeerick for figuring that out, I want to use the 32-bit version of Mopidy together with libspotify for armhf to make a Spotify streaming receiver ... I'm trying to do this right now but struggling to install python-spotify, because apparently it doesn't work in arm64 and I cannot figure out how to coax my Ubuntu install to use the armhf version. Here's what I've done so far:
Any ideas? Thanks! |