<div>Thanks Martin, I have a feeling that I should be able to set those flags in alsa using the gstreamer APIs and pulsesink.</div>
<div> </div>
<div>The pulsesink object does accept a propllist, and using pactl if you look at the pulsesink, there seem to be properties that should be able to switch between headset and speaker. Like x-maemo.mode which seems to be IHF or HP depending on whether pulsesink is in headset or speaker mode.</div>
<div> </div>
<div>I have been trying to use these flags, but haven't been able to do so till now. If someone can help here, that would be great.</div>
<div> </div>
<div>-Saurabh<br><br></div>
<div class="gmail_quote">On Sat, May 1, 2010 at 3:46 AM, Martin Grimme <span dir="ltr"><<a href="mailto:martin.grimme@gmail.com">martin.grimme@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>alsamixer -c0<br>reveals a switch to route audio to the earpiece (I don't remember it's<br>
exact name). I don't think you can route sound to the earpiece any<br>other way. Somebody please correct me if I'm wrong.<br><br><br>Martin<br><br><br>2010/4/28, saurabh aggarwal <<a href="mailto:aggarwal.saurabh@gmail.com">aggarwal.saurabh@gmail.com</a>>:<br>
<div>
<div></div>
<div class="h5">> We are developing a VoIP application, and have it running for Maemo5 (using<br>> gstreamer/pulseaudio).<br>><br>> The problem now is that the output being used is the speaker, and not the<br>
> headphone/earpiece.<br>><br>> I have tried a couple of things (which haven't worked) like -<br>> gst-launch pulsesrc device=source.voice ! pulsesink device=sink.voice<br>> (outputs voice from speaker)<br>
><br>> gst-launch pulsesrc ! pulsesink device=sink.hw0 x-maemo.mode="hp" (I get an<br>> error no element "hp"). Have tried the same with "ihf".<br>><br>> If someone can point me to the right direction, that would be really<br>
> appreciated.<br>><br>> -Saurabh<br>><br></div></div></blockquote></div><br>