pipewire: smack_inode_permission action=denied (imx8mqevk)

Description

On imx8. UI responses are good  to the mouse and keyboard inputs,Bluetooth,navigations, wifi  is ok,

Sound configurations on debug console is ok but on homescreen app its not coming.

imx8mqevk login: [ 13.100541] audit: type=1400 audit(1581584630.919:4): lsm=SMACK fn=smack_inode_permission action=denied subject="System::Pipewire" object="User::App::agl-service-audiomixer" requested=x pid=4163 comm="pipewire" name="4100" dev="proc" ino=19932
[ 13.123540] audit: type=1300 audit(1581584630.919:4): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffffffffffff9c a1=ffffe2108458 a2=84900 a3=0 items=0 ppid=1 pid=4163 auid=4294967295 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 tty=(none) ses=4294967295 comm="pipewire" exe="/usr/bin/pipewire" subj=System::Pipewire key=(null)
[ 13.156225] audit: type=1327 audit(1581584630.919:4): proctitle="/usr/bin/pipewire"

 

imx8mqevk:~# cd /run/user/
imx8mqevk:/run/user# ls
0 1001
imx8mqevk:/run/user# cd 1001/
imx8mqevk:/run/user/1001# ls
apis bus dbus-1 pipewire-0 pipewire-0.lock systemd usrshr wayland-0
imx8mqevk:/run/user/1001# ls -a
. apis dbus-1 pipewire-0.lock usrshr
.. bus pipewire-0 systemd wayland-0
imx8mqevk:/run/user/1001# ls -l
total 0
drwx------. 4 agl-driver agl-driver 80 Feb 7 07:31 apis
srw-rw-rw-. 1 agl-driver agl-driver 0 Feb 7 07:31 bus
drwx------. 3 agl-driver agl-driver 60 Feb 7 07:31 dbus-1
srw-rw----. 1 agl-driver agl-driver 0 Feb 7 07:31 pipewire-0
rw------. 1 agl-driver agl-driver 0 Feb 7 07:31 pipewire-0.lock
drwxr-xr-x. 2 agl-driver agl-driver 80 Feb 7 07:31 systemd
drwx------. 2 agl-driver agl-driver 40 Feb 7 07:31 usrshr
lrwxrwxrwx. 1 agl-driver agl-driver 31 Feb 7 07:31 wayland-0 -> /run/platform/display/wayland-0

 

Any inputs on it ?

Environment

None

Attachments

5

Activity

Show:

Scott Murray 
December 19, 2020 at 7:12 PM

Audio has been working on i.MX8MQ EVK since Jellyfish 10.0.0, closing.  Please reopen if you disagree.

Manivannan S 
February 25, 2020 at 2:58 PM

Hi Georgios,

With correct configurations we could get the sound on speakers but Sound quality is very bad, too many intermittent breaks. 

Thanks for the reply, so in our case is it fair to say we have to wait for this work-around in AGL's piperwire.

Is there any other things which we can try to set the sound little better with imx8mqevk ?

Does Raspberry pi also uses ALSA? (ofcourse breaks are present in audio)

sound is relatively better when compared to imx8.  Should we look into imx8 platform files for some fix ?

 

George Kiagiadakis 
February 24, 2020 at 1:46 PM

Did the correct configuration solve your issue? I don't see anything wrong in your build configuration, to be honest, so it surprises me that you ended up with wrong configuration.

Regarding the audio quality, if you see many xruns in the journal, it is possible that you are hitting a known issue where pipewire fails to update the alsa device because the timestamps that are reported by the alsa driver are incorrect (which is a bug in the driver). Other implementations use the alsa device interrupt to schedule writing, which hides the problem, but pipewire uses a system timer instead. There have been discussions about implementing interrupt-based scheduling as well to work-around such cases, but it's not implemented yet.

 

Manivannan S 
February 21, 2020 at 6:06 AM
(edited)

Hi Georgios,

Any comments from you on the problem statement ?

Thanks

 

Manivannan S 
February 18, 2020 at 1:31 PM

Which version of AGL are you building?
master icefish 8.99.5

Which features are you enabling?
source meta-agl/scripts/aglsetup.sh -m imx8mqevk agl-demo agl-appfw-smack

Do you modify any package preferences?
I integrated meta-fsl-bsp-release layer, but it does not have pipewire reference.

Do you patch anything in the meta-agl* repositories?
No, i did not patch anything.

I will force pipewire-conf-agl into build in local.conf and try once
PREFERRED_RPROVIDER_virtual/pipewire-config = "pipewire-conf-agl"
PREFERRED_RPROVIDER_virtual/wireplumber-config = "wireplumber-board-config-agl"

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Hardware Platform(s) Affected

NXP i.MX6

Priority

Created February 14, 2020 at 12:50 PM
Updated December 22, 2020 at 4:23 PM
Resolved December 19, 2020 at 7:12 PM