From: Hans de Goede Subject: Re: Cherry Trail + RT5645 devices analog microphone not working. Date: Mon, 25 Dec 2017 13:02:49 +0100 Message-ID: <6ccb2c4c-042f-46c0-5247-90f79d49c840@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by alsa0.perex.cz (Postfix) with ESMTP id 4ED0E26698E for ; Mon, 25 Dec 2017 13:02:51 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id 9so31681975wme.4 for ; Mon, 25 Dec 2017 04:02:51 -0800 (PST) In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Bard Liao Cc: "alsa-devel@alsa-project.org" , Pierre-Louis Bossart List-Id: alsa-devel@alsa-project.org Hi, On 25-12-17 03:15, Bard Liao wrote: >> -----Original Message----- >> From: Hans de Goede [mailto:hdegoede@redhat.com] >> Sent: Sunday, December 24, 2017 6:43 PM >> To: Bard Liao >> Cc: Pierre-Louis Bossart; alsa-devel@alsa-project.org >> Subject: Cherry Trail + RT5645 devices analog microphone not working. >> >> Hi Bard, >> >> I've been looking into getting the microphone to work on >> some Cherry Trail + RT5645 devices with what appears to >> be a simple analog microphone. >> >> You can see the microphone on one of the models I'm trying >> to get it to work on soldered onto the right side of the PCB >> here: https://i.imgur.com/bJzBQWe.jpg >> >> I'm using this ucm config: >> >> https://fedorapeople.org/~jwrdegoede/chtrt5645/ >> >> Which is basically Pierre-Louis Bossart's config from: >> https://github.com/plbossart/UCM >> >> Adjusted because the devices all have a mono speaker. >> >> I've been trying to get this to work myself and I can get >> some sound while recording by adding: >> >> cset "name='RECMIXL BST2 Switch' on" >> cset "name='RECMIXR BST2 Switch' on" >> >> But then I mainly get noise, I do get some sound from the >> microphone if I talk really really loudly, but it is >> barely above the noise-floor. I've the feeling that BST2 >> is only picking up the microphone via cross-talk and >> that BST1 indeed is the correct input, but for some reason >> I get complete silence when recording when only BST1 is >> selected in the RECMIXR, and yes I've checked / set the >> "IN1 boost volume". >> >> TL;DR: I'm trying to get an analog mic to work on 3 >> different models Cherry Trail + RT5645 devices and I've >> been unable to get this to work. I've put a registerdump >> of the rt5645 with gnome-sound-recorder running here: >> https://fedorapeople.org/~jwrdegoede/rt5645-mic-red.dump >> >> Any insights / help with this would be very much >> welcome. > > I don't have the schematic, but I think you probably need micbias > for the capture. Please add both "micbias1" and "micbias2" in > the audio route since I don't know which one is needed. > for example > static const struct snd_soc_dapm_route cht_rt5645_audio_map[] = { > ... > {"Int Mic", NULL, "micbias1"}, > {"Int Mic", NULL, "micbias2"}, > ... > }; Thank you for your reply. I've tested this, but unfortunately it does not help. Do you perhaps have a cherrytrail device withrt5645 codec where you can test an analog mic input with the upstream driver + latest ucm file from Pierre-Louis with yourself ? I've the feeling that this is not specific to the 3 devices I've access to but a general problem in the driver and/or the ucm files. Regards, Hans