Reply
Thread Tools
Posts: 455 | Thanked: 278 times | Joined on Dec 2009 @ Oregon, USA
#11
Originally Posted by kojacker View Post
Just wondering was this ever solved? I'm researching for a way to change the audio output to the ear piece speaker and came across this thread. Anyone get it working?
I could never find anything after reviewing all of the audio documentation I could find around N900/maemo5, so I gave up.


Hopefully you can figure out a way
 

The Following 3 Users Say Thank You to craftyguy For This Useful Post:
Posts: 436 | Thanked: 406 times | Joined on Jan 2010
#12
A possible work around would be to go to this file.

/var/lib/pulse-nokia/ihf.parameters

Look through the file with a text editor untill you see this line:

x-maemo.alsa_sink.mixer_control = "HP DAC: control,Headphoneff,Earphone: off"

And change it to:

x-maemo.alsa_sink.mixer_control = "HP DAC: off,Headphone: off,Earphone: control"

And restart pulse audio daemon, I know it's not practical for a program but it's still worth a look.

Edit: On second thought forget it...I think it's too risky.

Last edited by SavageD; 2010-11-22 at 21:10.
 

The Following User Says Thank You to SavageD For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#13
I'm responding to this thread which is about 2 months old, but hopefully the interested members are still subscribed.
I'm back to bashing my head against this particular wall and came up with the following links which may be useful:
http://pulseaudio.org/wiki/Developer...elopingClients
http://pulseaudio.org/wiki/SampleAsyncDeviceList
http://pulseaudio.org/wiki/DBusInterface

I was thinking along the lines of:
1. Use PA api to enumerate all clients (including me)
2. Use PA api to enumerate the various audio sinks
3. Change my client's sink to the user specified sink.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
Posts: 455 | Thanked: 278 times | Joined on Dec 2009 @ Oregon, USA
#14
Wow thanks for digging into this a bit more! Hopefully I will get a chance to take a look in the next week or two.
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2011
#15
I am trying to do the same for my app using qt and pulseaudio.

You can find the audio devices from the command line:
[
pactl list
You can modify a sample application http://0pointer.de/lennart/projects/...c-example.html

I believe there is some kind of policy in pulseaudio:
Have a look on
/etc/pulse/xpolicy.conf
/usr/share/policy/etc/rx51/syspart.conf
We need to find a way to mimic the configuration for skype or telepathy. But I am not sure what is the proper configuration?
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:16.