linux-samus icon indicating copy to clipboard operation
linux-samus copied to clipboard

Microphone

Open willmaddrey opened this issue 9 years ago • 14 comments

No microphone is seen in gnome

willmaddrey avatar Apr 13 '15 01:04 willmaddrey

I don't see the mic in PulseAudio either.

razor-x avatar Apr 29 '15 20:04 razor-x

The microphone shows up as a separate device. I had to use this in my asound.conf (I have snd_soc_rt5677 at index 0) to get ALSA to use it as the default capture device, but I'm not sure what PulseAudio would need.

pcm.!default {
    type asym
    playback.pcm {
        type hw
        card 0
        device 0
    }
    capture.pcm {
        type hw
        card 0
        device 1
    }
}

ctl.!default {
    type hw
    card 0
}

tsowell avatar Apr 30 '15 04:04 tsowell

Hey just pitching in. First of all, I should say, thanks so much for all you've done already, I truly appreciate it.

So back on topic, I also am just using ALSA, and also have options snd_soc_rt5677 index=0 in my /etc/modprobe.d/alsa-base.conf, and was having this issue where my microphone wasn't recognized by anything. If it helps, I'm running Arch. I posted on the forums here but no-one has responded yet, and I couldn't find mention of other people having this problem.

So anyway, just put what you just pasted there into a newly created /etc/asound.conf file, rebooted, and nothing seems to have changed. In the F4:Capture tab in alsamixer, it shows many Capture options as usual (also, it still has the same issue as Master volume in that volume for the Mic can't be read apparently), but anyway, my microphone is still not recognized by anything (Flash online, Google Hangouts, etc.)

Any thoughts? Please forgive me for any blatant misconceptions I have!

ghost avatar Apr 30 '15 05:04 ghost

Hi tsowell, fantastic work on this man...seriously. I've managed to get everything working on the new Chromebook Pixel 2015 except for the microphone. I've also tried what you suggested in replacing the contents of the /etc/asound.conf to no avail. Do you have any ideas on what next I could try to get the mic working. The last piece of the puzzle and then I'll have an awesome Arch Linux laptop. Thanks in advance.

godlikemouse avatar May 10 '15 05:05 godlikemouse

Is this problem confirmed for Ubuntu 15.04?

victrcodes avatar May 10 '15 07:05 victrcodes

Not sure, I haven't verified on Ubuntu. I'm currently working with Arch Linux. I'm currently going through the samus chromium config files trying to find optimum settings for the trackpad as well as audio settings routed through Pulse. I'll share what I find if it works out.

godlikemouse avatar May 10 '15 07:05 godlikemouse

So I've made an interesting discovery. Using the settings tsowell suggested in /etc/asound.conf

pcm.!default {
    type asym
    playback.pcm {
        type hw
        card 0
        device 0
    }
    capture.pcm {
        type hw
        card 0
        device 1
    }
}

ctl.!default {
    type hw
    card 0
}

After restarting the service and running alsamixer I was able to at least hear the microphone being routed through my headphones by doing the following:

  • Run alsamixer
  • Arrow up the "Master" volume
  • Arrow right to "Headphone", hit "m" key to unmute
  • Arrow right to "DAC1 MIXL Stereo ADC", hit "m" key to unmute
  • Arrow right to "DAC1 MIXR Stereo ADC", hit "m" key to unmute

The internal L/R stereo microphone located on each side of the webcam can be heard through the headphones. Admittedly this doesn't really allow for me to route the mic through any gnome recognized input device, but it does validate that at the very least ALSA is able to communicate with the hardware. I'll keep trying to figure out the internal mic but hopefully someone who is a bit more savvy than I will have better luck. Just sharing what I've found out in the hopes that it helps.

godlikemouse avatar May 14 '15 06:05 godlikemouse

@godlikemouse I was able to replicate the same (on Ubuntu 15.04). There was a lot of static noise though, not sure if that's because master was ramped up to max. By the way, I didn't even create /etc/asound.conf

victrcodes avatar May 17 '15 14:05 victrcodes

Just curious if anyone has had any more luck on this. Really want to get this going with PulseAudio to work around the write-only volume issue. It's the only bit of hardware that's not working for me. I'm also curious if we can use a mic via the headphone port: for example earbuds with an attached mic like you would use on a phone.

razor-x avatar Jun 04 '15 19:06 razor-x

@razor-x I haven't had any luck with this, posted a question on askubuntu - http://askubuntu.com/questions/624899/alsamixer-can-see-microphone-but-pulseaudio-doesnt still nothing. Such a shame, it's the last thing remaining that doesn't work.

victrcodes avatar Jun 04 '15 19:06 victrcodes

Also haven't had any further luck. I've resorted to using my phone for microphone needs, as all I need the mic for is doing google hangout calls. Not an ideal solution, but it's tiding me over.

ghost avatar Jun 04 '15 19:06 ghost

It may not be a perfect solution, but I've been using a bluetooth headset for Google Hangout calls.

emidln avatar Jun 09 '15 20:06 emidln

I found another version of HiFi.conf with some different routing bits in it, but it doesn't work either.

(https://chromium.googlesource.com/chromiumos/third_party/adhd/+/75c7236648d9ec78bb321f6a5484276d71600ee1/ucm-config/samus/bdw-rt5677/HiFi.conf)

I suspect that even the Pixel's ChromeOS from Google has problems because microphone failures while answering calls in hangouts were one of the annoyances that pushed me to just install Ubuntu.

recri avatar Jul 05 '15 01:07 recri

Hey all, I'm not if everyone already knows about this or not and I definitely don't want to undermine the amazing work tsowell did on getting everything else working up to this part but there is a new repo that has a working mic patch in it. I've installed it and it works perfectly. I believe it's built off of tsowell's work here as well. It's called "linux-samus4" and it can be found here: https://github.com/raphael/linux-samus. I installed mine using "yaourt linux-samus4" followed by "grub-mkconfig -o /boot/grub/grub.cfg" reboot and all was working perfectly.

godlikemouse avatar Nov 24 '15 05:11 godlikemouse