narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
mkorpershoek has quit [Ping timeout: 256 seconds]
buzzmarshall has quit [Quit: Konversation terminated!]
chewitt has joined #linux-amlogic
dlan has quit [Ping timeout: 240 seconds]
dlan has joined #linux-amlogic
mkorpershoek has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
warpme___ has joined #linux-amlogic
mkorpershoek has quit [Quit: Client closed]
mkorpershoek has joined #linux-amlogic
camus has quit [Quit: camus]
camus has joined #linux-amlogic
tolszak has joined #linux-amlogic
<tolszak> Hello guys, anyone have an idea what to enable in yocto's meta-meson to get hdmi sound over pulseaudio. I've built amlogic-image-sato and there is no pulse audio card available
<tolszak> Only dummy sink
<narmstrong> tolszak: which board ? in meta-meson, only a few card have the correct audio routing setup as mixer configs
<tolszak> odroid n2 plus
<tolszak> I've tested kubuntu 21.10 which I suppose has more or less upstream kernel and audio works there
<tolszak> kernel on kubuntu is 5.15
<narmstrong> they must have a script which does audio setup
<tolszak> Thank you! Will look at the script
<narmstrong> let me open another issu in GH about that...
<tolszak> so actually I need amixer to make it work instead of having pulseaudio plugin
<tolszak> narmstrong: Previously I used usb speakers and it worked pretty good
<tolszak> comparing to other soc's or even intel boards - less tweaks needed.
<tolszak> But I now realized that there is no hdmi output
<narmstrong> with proper amixer config it works well
<gbisson> \q chewitt
<gbisson> sorry ;)
<chewitt> driver routing comes from device-tree (so nothing to change) but userspace needs mixer settings our you get spam in dmesg
<tolszak> On kubuntu there is a file
<tolszak> narmstrong: /usr/share/alsa/cards/G12B-ODROID-N2.conf
<chewitt> it's simple to fix if you are creating images for a single board .. you can one-time save config using alsactl, then restore it on boot
<chewitt> it becomes more challenging once you attempt single images support for many boards
<chewitt> hence the soundconfig script that I use with LE
<tolszak> That's content: https://pastebin.com/iDhkVqFH
<chewitt> i've been trying to wrap my brain around alsa ucm2 with the long-term idea of upstreaming something that generally works
Guest59 has joined #linux-amlogic
<tolszak> chewitt: At first glance the debian/ubuntu approach seems generic
<chewitt> that's the alsa conf
<chewitt> that gives you a detected device
<chewitt> but you still need to set mixer settings :)
<narmstrong> wait yes snother package is missing
<tolszak> That's content of /etc/alsa/conf.d
<tolszak> grepping for mixer in etc shows /etc/init.d/alsa-utils and modprobe.d/alsa-base.conf
<narmstrong> can't find the script... must be a first boot stuff in odroid-base but I can't find it
<narmstrong> HK source is a mess
<chewitt> HK restore a saved-state file using alsactl IIRC
<tolszak> narmstrong: That's init.d script which looks a bit similar to what you sent https://pastebin.com/VdDAxGks
<narmstrong> that's the default init script for alsactl store/restore
<narmstrong> or a script or the new way introduced recently
buzzmarshall has joined #linux-amlogic
<Guest59> Hello Everybody. I am looking for a way to minimize idle power consumption of the LePotato board. I was able to go down to 0.18A by shutting down all but 1 CPU core, powersave governor and using meson-gxl-s905x-libretech-cc-v2 dtb instead of meson-gxl-s905x-libretech-cc. I don't need USB or HDMI, only Ethernet. I would be greatful for any hints if
<Guest59> I can disable anything else to save some milliamps, e.g. is is possible to completely disable HDMI?
<tolszak> narmstrong: Found it, it is in /usr/share/odroid-alsa/functions
<tolszak> narmstrong: https://pastebin.com/jxceKF4Z
<narmstrong> @Guest59: yes you can modify the DT to disable the vpu code and usb controller entirety
<narmstrong> tolszak: this is the one
<tolszak> SO what I need is to ensure that I;ve installed amixer and just run this script on startup right?
<tolszak> #!/bin/sh
<tolszak> . /usr/share/odroid-alsa/functions
<tolszak> if [ ! -f /var/lib/alsa/asound.state ]; then
<tolszak> if dpkg -l | grep odroid-alsa >/dev/null; then
<tolszak> dpkg-reconfigure odroid-alsa
<tolszak> fi
<tolszak> fi
<tolszak> That's the firstboot script
<tolszak> narmstrong: And that's the postinst script od odroid-alsa package
<tolszak> #!/bin/sh
<tolszak> . /usr/share/odroid-alsa/functions
<tolszak> alsa_setup
<tolszak> if [ -f /etc/pulse/default.pa ]; then
<tolszak> sed -i "/set-card-profile/d" /etc/pulse/default.pa
<tolszak> echo "set-card-profile 0 output:hdmi-stereo" \
<tolszak> >> /etc/pulse/default.pa
<tolszak> fi
Guest59 has quit [Ping timeout: 256 seconds]
Guest59 has joined #linux-amlogic
<tolszak> chewitt: I've just realized that it was you who replied on odroid forum about panfrost issue. Thanks!
<chewitt> I get around :)
<Guest59> narmstrong Thank you for the hints! What is the correct way do disable vpu? Removing it makes the board unbootable and there is no "status" property.
<narmstrong> @Guest59: just add the property in the node
<chewitt> normally setting "disabled" instead of "okay" in the root nodes
<Guest59> Thank you. It's down to 0.17A after disabling gpu and vpu. Disabling USB seems to make no difference when nothing is connected to it.
Guest59 has quit [Quit: Client closed]
<gbisson> mkorpershoek: ok so I believe I found the reason for the bcb issue
<gbisson> mkorpershoek: it's a mem address issue, I can reproduce the all 0s buffer with mmc read
<gbisson> I didn't bisect as I don't have a vim3 board so painful
<gbisson> at least it's not cache related, the cache mechanism of mmc/blk is ok and works as expected
tolszak has quit [Ping timeout: 240 seconds]
<gbisson> mkorpershoek: fixed!
<gbisson> mkorpershoek: pretty it wasn't bisectable actually, I'd say it's toolchain-specific
<gbisson> pretty sure*
<gbisson> mkorpershoek: I'll cc to my patch as it might not be accepted as-is
<mkorpershoek> gbisson: great news! thank you for having looked into it :)
camus has quit [Ping timeout: 256 seconds]
camus has joined #linux-amlogic
BiggestSmile has joined #linux-amlogic
<BiggestSmile> hey guys. new to all this kernel building stuff, but.. i have x96 box powered by s905x3 and i super wanna run more up-to-date distros like ubuntu 21 on it. is it feasible task?
warpme___ has quit [Quit: Connection closed for inactivity]
BiggestSmile has quit [Quit: Client closed]
warpme___ has joined #linux-amlogic
Guest5 has joined #linux-amlogic
Guest5 has quit [Quit: Client closed]
vagrantc has joined #linux-amlogic
warpme___ has quit [Quit: Connection closed for inactivity]