maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to change audio routing in pulseaudio ? (https://talk.maemo.org/showthread.php?t=56377)

antonk 2010-06-16 16:52

How to change audio routing in pulseaudio ?
 
Hi everyone

I have a problem with setting up both BT carkit as headset and aux out to play music on car's audio system: n900 prefers headphones or any other device connected to aux out than BT headset so whenever I connect my n900 to car's aux in and use BT headset (carkit) in the same time, every time I receive a call n900 routes incoming audio to aux out instead of BT. In the same time the car doesn't know that aux device and BT phone are the same device so it mutes aux in and amplifies BT signal so in fact I hear silence instead of calling party.
I think all i need is to change preferences in pulseaudio's config so if there's a bt headset connected to n900 it should be preferred audio device and mic instead of headphones or any other aux device (if connected).
Are there any pulseaudio guru here ?

antonk 2010-06-16 16:55

Re: How to change audio routing in pulseaudio ?
 
Related reading: https://bugs.maemo.org/show_bug.cgi?id=9484

antonk 2010-06-16 18:50

Re: How to change audio routing in pulseaudio ?
 
What I discovered so far is as follows. There is a declaration (?) of 'sink' sink.hw0 which seems to be internal or external speaker depending on if there's headphone connected, sink.hw1 which seems to be BT headset and sink.hw0and1 which seems to be used to play on both bt headset and int/ext speaker. This is defined in /etc/pulse/system.pa
And also there's a file /etc/pulse/xpolicy.conf where several parts of signal routing policy are defined.
Example:
[device]
type = bthsp
sink = equals:sink.hw1
flags = disable_notify
This seems to be a routing policy for audio output when bt headset is connected.
But what are 'ihfandbthsp', 'ihfandheadset' and 'ihfandheadphone' devices for ? How to use them ?

Unfortunately I couldn't find any documentation related to xpolicy.conf syntax.

Any ideas or links to docs ?

getnani 2011-03-08 06:02

Re: How to change audio routing in pulseaudio ?
 
Hi Anton, did u solve this. I too have the same issue.


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

vBulletin® Version 3.8.8