I've noticed another odd thing with the current ALSA sun4i-codec under 4.4.0 on the BananaPi.
Despite the fact that alsamixer sees the BPi audio device, it is (mostly) working and its also visible under /proc/asound/cards and /proc/asound/devices, dmesg says there are no ALSA devices: [ 3.987175] ALSA device list: [ 3.990168] No soundcards found. On Tue, Jan 19, 2016 at 8:11 AM, Dan MacDonald <[email protected]> wrote: > Hi Danny! > > Thanks for your reply! > > You inspired me to have another go with ALSA on my BPi and now I've got > sound output working at full volume. To get output working at full volume, > both 'Power Amplifier DAC' and 'Power Amplifier Mute' have to be unmuted > and everything else must be muted. If I unmute anything else the sound cuts > out. > > This has highlighted anoter problem I forgot to mention in my last post > and that is I only have one alsamixer playback control with a volume slider > (Power Amplifier) and this is the only one that doesn't have a mute control > but as I said I can mute audio output by changing the combination of mute > options from the one I mentioned before. > > $ amixer contents > numid=2,iface=MIXER,name='Left Mixer Left DAC Playback Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=off > numid=5,iface=MIXER,name='Power Amplifier DAC Playback Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=on > numid=6,iface=MIXER,name='Power Amplifier Mixer Playback Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=off > numid=7,iface=MIXER,name='Power Amplifier Mute Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=on > numid=1,iface=MIXER,name='Power Amplifier Volume' > ; type=INTEGER,access=rw---R--,values=1,min=0,max=63,step=0 > : values=62 > | dBscale-min=-63.00dB,step=1.00dB,mute=1 > numid=4,iface=MIXER,name='Right Mixer Left DAC Playback Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=off > numid=3,iface=MIXER,name='Right Mixer Right DAC Playback Switch' > ; type=BOOLEAN,access=rw------,values=1 > : values=off > > > Thanks! > > > On Tue, Jan 19, 2016 at 1:54 AM, Danny Milosavljevic < > [email protected]> wrote: > >> Hi Dan, >> >> On Mon, 18 Jan 2016 14:32:48 -0800 (PST) >> Dan MacDonald <[email protected]> wrote: >> >> > I recently asked about the status of ALSA audio for the BPi in mainline >> on >> > the lemaker forums and I was pointed towards this patch: >> > >> > >> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit?id=38e633f3f3756b5630c5eb66042e776d86764296 >> >> That's correct. >> >> > Not all of the ALSA mixer >> > controls are present and the ones that are seem to be incorrectly >> labelled >> > so it clearly needs some work yet: >> >> Which one is incorrectly labeled? >> >> What does >> >> $ amixer contents >> >> say? >> >> Make sure that you unmute (using the "M" key in alsamixer) only one of >> Power Amplifier DAC, Power Amplifier Mixer. If you unmute both, it will >> sometimes cause destructive interference. I'd suggest to mute Power >> Amplifier Mixer - fewers things that can go wrong. >> >> Things are unmuted in alsamixer when the box below the slider glows >> green, muted when it's transparent and says "MM". >> >> Note that "Power Amplifier Mute" needs to be unmuted (i.e. green) for >> your headphones to work normally. >> >> > Is anybody here working on the BPi ALSA driver? >> > Is there a more complete patch I can test? >> >> I'm working on a patch for more complete mixing in general - further work >> is currently blocked waiting for answers to some technical questions. >> >> However, I doubt my patches would fix your playback volume problem. I >> never had that problem before. The stuff I added is exclusively for >> capturing and loopback (so far). >> >> (If you want to try, search for sun4i-codec posts on this list, by me. It >> won't help, though) >> >> Regards, >> Danny >> > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
