maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   What we know about alsa-policy-enforcement and alsaped? (https://talk.maemo.org/showthread.php?t=83447)

AapoRantalainen 2012-04-04 14:20

What we know about alsa-policy-enforcement and alsaped?
 
Closed source package alsa-policy-enforcement.
http://wiki.maemo.org/Fremantle_clos...cement-package

License:
Code:

alsaped - Alsa Policy Enforcement Daemon: for policy enforcement
Copyright (C) 2008 Nokia Corporation. All rights reserved.

--/usr/share/doc/alsa-policy-enforcement/copyright

File /etc/event.replace.d/alsaped starts daemon /usr/sbin/alsaped, which uses config file /usr/share/policy/etc/current/alsaped.conf . If daemon is not running (killed, not started, uninstalled, somehow messed) N900 doesn't have audio at all. So it is very essential. Somebody have focused clever way to play with it: http://talk.maemo.org/showpost.php?p...&postcount=900

Is there way we can remove it entirely, but still have sounds on Maemo5? Somehow Nemo/Ubuntu/Debian handle audio (aren't they?).

--
alsa-policy-enforcement: last updated 05 Nov 2009, made by janos.f.kovacs, krisztian.litkey and ismo.h.puustinen (@nokia)

pulseaudio-policy-enforcement (from MeeGo's git): initial version 07 Oct 2008. Made by same nokia-person (plus bunch of new)

Do they have something common?

pali 2012-04-04 19:01

Re: What we know about alsa-policy-enforcement and alsaped?
 
Please create new wiki pages as subpages of Fremantle_closed_packages. So for example: http://wiki.maemo.org/Fremantle_clos...cy-enforcement

pali 2012-04-04 19:03

Re: What we know about alsa-policy-enforcement and alsaped?
 
alsaped cannot be removed, because it is daemon which route sounds sinks/sources between HW sound input/output

AapoRantalainen 2012-04-04 19:07

Re: What we know about alsa-policy-enforcement and alsaped?
 
Quote:

Originally Posted by pali (Post 1188066)
alsaped cannot be removed, because it is daemon which route sounds sinks/sources between HW sound input/output

This sounds serious. But how is other operating systems using audio of N900? Can we make any noise with Maemo5 without alsaped?

pali 2012-04-04 19:09

Re: What we know about alsa-policy-enforcement and alsaped?
 
Quote:

Originally Posted by AapoRantalainen (Post 1188068)
This sounds serious. But how is other operating systems using audio of N900? Can we make any noise with Maemo5 without alsaped?

yes, you need to control alsa switches manually and also volume control.

open alsamixer and setup all switches...

AapoRantalainen 2012-04-04 19:27

Re: What we know about alsa-policy-enforcement and alsaped?
 
Quote:

Originally Posted by pali (Post 1188070)
open alsamixer and setup all switches...

I see only one 'Master' when starting alsamixer on N900.
(alsamixer-1.0.20)

I have used alsamixer on laptop and I have 8 bars/switches on it.

pali 2012-04-04 19:32

Re: What we know about alsa-policy-enforcement and alsaped?
 
run: alsamixer -c 0
because thanks to /etc/asound.conf alsamixer will show only fake pulseaudio mixer...

Estel 2012-04-04 19:36

Re: What we know about alsa-policy-enforcement and alsaped?
 
do not want to hijack this thread, but may it be related to problems we're facing here:
http://talk.maemo.org/showthread.php?t=83270&page=7
...?

AapoRantalainen 2012-04-04 19:41

Re: What we know about alsa-policy-enforcement and alsaped?
 
Quote:

Originally Posted by pali (Post 1188065)
Please create new wiki pages as subpages of Fremantle_closed_packages.

I changed address of wiki pages (but I also made some mistakes when moving and reverting). Working address updated to the first post (and http://wiki.maemo.org/Fremantle_closed_packages).

AapoRantalainen 2012-04-04 20:29

Re: What we know about alsa-policy-enforcement and alsaped?
 
apt-get remove alsa-policy-enforcement

alsamixer -c 0

One set of working values where 'working' means: mplayer is playing music, no headphones connected, audio can be listened.

Everything muted/zero/off, unless other said:
From left to right
PCM not zero (example 80)
HP DAC not zero (example 80)
Left_DAC_L1 not muted
Right_DAC_R1 not muted
Speaker On

----
No idea how to get audio out of headphones (or use microphone)


All times are GMT. The time now is 21:46.

vBulletin® Version 3.8.8