maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   how to output audio to phone speaker? (N900) (https://talk.maemo.org/showthread.php?t=61902)

craftyguy 2010-11-22 18:44

Re: how to output audio to phone speaker? (N900)
 
Quote:

Originally Posted by kojacker (Post 880459)
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 :)

SavageD 2010-11-22 21:07

Re: how to output audio to phone speaker? (N900)
 
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,Headphone:off,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.

uvatbc 2011-01-22 09:06

Re: how to output audio to phone speaker? (N900)
 
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.

craftyguy 2011-01-23 03:17

Re: how to output audio to phone speaker? (N900)
 
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.

gvaf 2011-01-23 19:48

Re: how to output audio to phone speaker? (N900)
 
I am trying to do the same for my app using qt and pulseaudio.

You can find the audio devices from the command line:
[
Quote:

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
Quote:

/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?:confused:


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

vBulletin® Version 3.8.8