Comment 18 for bug 1227093

Revision history for this message
David Henningsson (diwic) wrote : Re: [Bug 1227093] Re: [sony vaio pro] Internal microphone not working

On 10/07/2013 05:19 PM, Yuv wrote:
> On 10/07/2013 05:21 AM, David Henningsson wrote:
>> - Whenever something (headphone or headset) is plugged in, output
> should switch to headphones and automute the speakers, but you have to
> manually select internal mic or headset mic in Gnome's sound preferences
> (or pavucontrol).
>
> headphone: works as expected.
>
> headset: I see the option to select Headset Microphone in pavucontrol,
> however selecting headset microphone yield silence and not the recording
> of the headset.
>
> I suspect my headset is OMTP. It is branded Nokia, came with a cheap
> pre-paid phone 2-3 years ago. Works with my Chinese imported no-name
> Android phone and works with the SONY Vaio Pro 13 in Windows. No luck in
> Linux yet.

When you try it in Windows, does it automatically distinguish between a
headphone and headset, or is there some sort of "what did you plugin"
dialog where you choose manually?

One more thing to try w r t the headset mic. In my ppa there is a
package called snd-hda-tools. Install that package and then, with your
headset mic plugged in, try executing this command:

sudo hda-verb /dev/snd/hwC1D0 0x18 SET_PIN_WIDGET_CONTROL 0x22

...does that give a difference w r t the headset mic? If it does not,
also try:

sudo hda-verb /dev/snd/hwC1D0 0x18 SET_PIN_WIDGET_CONTROL 0x21

...and see if it gives a difference.

The last number translates as follows:
0x20 - Hi Z
0x21 - 50%
0x22 - Ground
0x24 - 80%
0x25 - 100%

Where 80% is the default, and 50% is common too, but as Raymond noticed
some VAIOs use ground as vref. HiZ is used for line (not mic) inputs and
100% I've never seen anywhere.

--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic