You are not logged in.

#1 2016-12-22 21:16:45

lilorox
Member
Registered: 2011-10-16
Posts: 25

[SOLVED] Cannot find mic input in ALSA

Hi,

I just bought a brand new Asus ROG GL702VM and I was suprised to see that there is only one jack for both mic and headphones.
I have a pair of headphones with a mic that works on my phone but on the laptop, only the headphone part works.

Since the headphones work in stereo, I guess the mic should work too except the only input I get is from the mic next to the webcam.

There is only one input in alsamixer.

Any idea how to get the jack input working?

Some info:

$ lspci -vvv
(...)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
        Subsystem: ASUSTeK Computer Inc. Device 1580
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32
        Interrupt: pin A routed to IRQ 127
        Region 0: Memory at da128000 (64-bit, non-prefetchable) [size=16K]
        Region 4: Memory at da100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
(...)
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC255 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    Front speakers

What pulseaudio says about all that:

$ pactl list sources | grep -i name:
        Name: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
        Name: alsa_input.pci-0000_00_1f.3.analog-stereo

Last edited by lilorox (2017-01-03 06:06:15)

Offline

#2 2017-01-03 06:05:42

lilorox
Member
Registered: 2011-10-16
Posts: 25

Re: [SOLVED] Cannot find mic input in ALSA

OK so I found something which lets me use the mic from the 4-rings jack.

First, I used hdajackretask to see if there were any "unconnected pins" and then I looked into the kernel source and looked for the different models of my kernel module (snd_hda_intel): https://github.com/torvalds/linux/blob/ … ek.c#L5771

I looked at which pins were modified by those fixups objects to see which model would be useful.

I tried latptop-dmic and laptop-amic but only laptop-amic is using my headphones mic so I'm going to stick with it.

I added this file to load the correct model at boot:

[lilo:~] % cat /etc/modprobe.d/alsa-base.conf
options snd_hda_intel model=laptop-amic

Now it works but the external mic near the webcam does not work anymore.
I don't really care so I'm going to put this as solved smile

Offline

Board footer

Powered by FluxBB