tsowell / linux-samus

Linux kernel packages with Chromebook Pixel 2015 (Samus) support borrowed from Chromium OS
GNU General Public License v2.0
61 stars 7 forks source link

Microphone #4

Open willmaddrey opened 9 years ago

willmaddrey commented 9 years ago

No microphone is seen in gnome

razor-x commented 9 years ago

I don't see the mic in PulseAudio either.

tsowell commented 9 years ago

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
}
ghost commented 9 years ago

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!

godlikemouse commented 9 years ago

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.

victrcodes commented 9 years ago

Is this problem confirmed for Ubuntu 15.04?

godlikemouse commented 9 years ago

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 commented 9 years ago

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:

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.

victrcodes commented 9 years ago

@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

razor-x commented 9 years ago

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.

victrcodes commented 9 years ago

@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.

ghost commented 9 years ago

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.

emidln commented 9 years ago

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

recri commented 9 years ago

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.

godlikemouse commented 8 years ago

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.