maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Why is pulseaudio crippled on the n900? (https://talk.maemo.org/showthread.php?t=36936)

TiagoTiago 2011-03-13 05:55

Re: Why is pulseaudio crippled on the n900?
 
Quote:

Originally Posted by rdwrig0ceo (Post 513399)
off topic but question is there a way to use camera buttons to control audio when phone is locked. Example playing music without headphones and screen goes black. 2 minutes go by and you quickly wanted to turn down the volume for whatever reason. Is this possible? Thanks in advance.

Some media players already let you control the volume while the screen is locked like what you describe.

thomasjfox 2012-01-11 20:34

Re: Why is pulseaudio crippled on the n900?
 
I wanted to use my second N900 as a mpd streaming client in the kitchen.

Well, I faced the same issues as described before, looks like the native pulseaudio network protocol on maemo 5 and f.e. Fedora 16 is not compatible. Luckily there's another network sound protocol: esd.

Here's how it works:

On the n900:
Code:

- Install the pulseaudio-module-extra package.
- Edit /etc/pulse/system.pa and add these lines:

.ifexists module-esound-protocol-tcp.so
    load-module module-esound-protocol-tcp port=6000 auth-cookie-enabled=0 auth-anonymous=1 sink=1
.endif

- Restart pulseaudio/phone

On the mpd side, use this in the mpd.conf file:
Code:

audio_output {
    type "ao"
    driver "esd"
    options "host=devel-n900:6000"
    name "esd"
}

More help on mpd and pulseaudio can be found here: http://mpd.wikia.com/wiki/PulseAudio

thomasjfox 2012-01-11 21:00

Re: Why is pulseaudio crippled on the n900?
 
Ok, here's an explanation of the protocol format incompatibility:
http://www.mail-archive.com/pulseaud.../msg09900.html

Proposed fix for the N900 -> remote server audio direction:
http://lists.freedesktop.org/archive...ne/010256.html

Let's see if we can "downgrade" the protocol version on the N900 in the /usr/lib/pulse-0.9.15/modules/module-native-protocol-tcp.so binary without recompilation :D

thomasjfox 2012-01-11 21:34

Re: Why is pulseaudio crippled on the n900?
 
Ok, this dirty hack does the trick on the PA "client" side:

Code:

diff -u -r -p pulseaudio-0.9.22/configure.ac pulseaudio.faked/configure.ac
--- pulseaudio-0.9.22/configure.ac      2012-01-11 22:18:40.450280472 +0100
+++ pulseaudio.faked/configure.ac      2012-01-11 22:22:37.563083482 +0100
@@ -41,7 +41,7 @@ AC_SUBST(PA_MAJORMINORMICRO, pa_major.pa
 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
 
 AC_SUBST(PA_API_VERSION, 12)
-AC_SUBST(PA_PROTOCOL_VERSION, 16)
+AC_SUBST(PA_PROTOCOL_VERSION, 15)
 
 # The stable ABI for client applications, for the version info x:y:z
 # always will hold y=z

Just recompile pulseaudio and it will be able to use the N900 as speaker :)

sulu 2012-01-12 10:07

Re: Why is pulseaudio crippled on the n900?
 
Quote:

Originally Posted by thomasjfox (Post 1149146)
Code:

diff -u -r -p pulseaudio-0.9.22/configure.ac pulseaudio.faked/configure.ac
--- pulseaudio-0.9.22/configure.ac      2012-01-11 22:18:40.450280472 +0100
+++ pulseaudio.faked/configure.ac      2012-01-11 22:22:37.563083482 +0100
@@ -41,7 +41,7 @@ AC_SUBST(PA_MAJORMINORMICRO, pa_major.pa
 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
 
 AC_SUBST(PA_API_VERSION, 12)
-AC_SUBST(PA_PROTOCOL_VERSION, 16)
+AC_SUBST(PA_PROTOCOL_VERSION, 15)
 
 # The stable ABI for client applications, for the version info x:y:z
 # always will hold y=z

Just recompile pulseaudio and it will be able to use the N900 as speaker :)

That might also help to get a true pulseaudio 0.9.21 working in a dist-upgraded Easy Debian. I once tried something similar but must have changed the protocol version in the wrong place.

warp 2012-10-18 22:13

Re: Why is pulseaudio crippled on the n900?
 
Quote:

Just recompile pulseaudio and it will be able to use the N900 as speaker.
How does one recompile pulseaudio?

pali 2012-12-02 15:34

Re: Why is pulseaudio crippled on the n900?
 
Here is merge request for cssu pulseaudio: https://gitorious.org/community-ssu/...rge_requests/1


All times are GMT. The time now is 06:49.

vBulletin® Version 3.8.8