I'm using the Aardvark i2c/spi adapter connected to Ubuntu 22.04. Everything worked fine until this morning. The problem is the device is in IN USE state whenever I checked it using Aardvark command aardvark scan. Below is the output of sudo dmesg, which seems to be the cause this issue.
audit: type=1400 audit(1738966200.245:170): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/23545/usr/lib/snapd/snap-confine" pid=2490 comm="snap-confine" capability=38 capname="perfmon"
How could I fix this? Thanks!