4 Oct
2012
4 Oct
'12
2:50 p.m.
Rafal Powierski wrote:
I would like to access pin verb hda interface using snd_hwdep_open() function. It works fine if I run as root. I hope there is a way to configure my kubuntu so I can do it as non-root user (e.g. debugging) so far, I have been trying changing access flags for devices in /dev/snd/ directory to crwxrwxrwx no plus character. It did not change my privileges for snd_hwdep_open() - still returns –13.
sound/pci/hda/hda_hwdep.c says:
static int hda_hwdep_open(struct snd_hwdep *hw, struct file *file) { #ifndef CONFIG_SND_DEBUG_VERBOSE if (!capable(CAP_SYS_RAWIO)) return -EACCES; #endif return 0; }
Regards, Clemens