From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16CE9C433DF for ; Thu, 9 Jul 2020 09:31:42 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 83D73206A1 for ; Thu, 9 Jul 2020 09:31:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="SjszA61T"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U5HzSBtU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83D73206A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 175B71663; Thu, 9 Jul 2020 11:30:50 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 175B71663 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594287100; bh=wpntAGKor5o25m8izfodXeNphCEf3kpuolYjfbcTnP8=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=SjszA61Txm9Arw8iN5NkJzm2PWgtkikL+l9lSkdYC8mrk+of+FMF4fPYKF/9F1idX qHfsm8LWXKwerTZMtlr2VPUyjkSVhKrD44K6y/ks3uTbvKbvKvwOrEi9egQphTFYwf sye+MK2DD1KS0OEa81IM1OFl93zQry7IZZ8IZ4Qs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C3629F801F9; Thu, 9 Jul 2020 11:30:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DF610F801F9; Thu, 9 Jul 2020 11:30:15 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D5911F800AE for ; Thu, 9 Jul 2020 11:30:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D5911F800AE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U5HzSBtU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594287003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cD2vEBhO4pgjg8F4E59uIoUq5+mm+fmyvRjdcdbmoU=; b=U5HzSBtUgL7AeHsmAK8qfh26P/fOenGP3wodRFae4tZNHwcIYH9h2+MH6mDz0C3cflc318 FBT9P0BhR7z/VtyoBxmN9Dw3OCgEh2aKPpBZxzYoWQhYwYTNNg4eknr5n0dlE124EpvbNS 8miLaiB/e4LrK5DEJTg7I0APEdmB2pc= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-375-nyS-HSFpMoSjNCaKrC9hpg-1; Thu, 09 Jul 2020 05:29:59 -0400 X-MC-Unique: nyS-HSFpMoSjNCaKrC9hpg-1 Received: by mail-ej1-f72.google.com with SMTP id q9so2027559ejr.21 for ; Thu, 09 Jul 2020 02:29:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8cD2vEBhO4pgjg8F4E59uIoUq5+mm+fmyvRjdcdbmoU=; b=XnchG8ni6QavoaCoYp+V3MKbOhUbOw12mmKstV+0goPR5o0/XFlbwn6NyDcVx714LL Sejh8p8Yqf8zruC9JA/UdLQP8RqqpmHmg72XpB6AMPuqJTPYeoRXY11xM3eWzW/Z4C7z NZXN7Ilm9WfqXuYnQ2w/kU3qsKoifCdZ2TV1wb1NSt59H5dRLWSLlEmAB/z5vDSEW3D3 9lwGMSAUH4lZnv6Da+oj72KMPz/UWCW8Ffl+jSdThcnOAmsFOm1I24qXWtU4PdB0Cjba YtIzEtRxVs7Z+WQwAfgbwwdwWpDOAGelsLyabfLFUuk0wUrbB9P1nCfwuPVrTIc341Wi EseA== X-Gm-Message-State: AOAM5308xg0QD3eQAK711qzQn60w5JmPZeLdQI9hjZz3NkUx6XfJlnSe T/xUBGTHFqEiV+YVIjoS7xRqPmuRMCdxzfoknVI+HZ7d3vnmrgqKiAiYa4cEWDrUne2iqq/Q+q6 F4DOPGudTSlfcWEi+9Te435w= X-Received: by 2002:a17:906:8595:: with SMTP id v21mr57202785ejx.333.1594286997654; Thu, 09 Jul 2020 02:29:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwblyNieo/zWSppLKyLCm/HDAGXIzsWYxG3TMW7HUaiV3TWOqvU+UqldeMfaGcRhL5Eaf6e1A== X-Received: by 2002:a17:906:8595:: with SMTP id v21mr57202772ejx.333.1594286997432; Thu, 09 Jul 2020 02:29:57 -0700 (PDT) Received: from x1.localdomain ([109.38.142.161]) by smtp.gmail.com with ESMTPSA id v11sm1423598eja.113.2020.07.09.02.29.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 02:29:56 -0700 (PDT) Subject: Re: Fixing sound on Asus UX534F / some UX533 models To: Kailang , Takashi Iwai References: <808c7b46-c86f-a3de-b645-c47e658e8abb@redhat.com> <1a98fc46-b22a-cc2d-8de9-c2e703b2206b@redhat.com> <531e01c492be4534bf1d98e32f4ddf4b@realtek.com> <19136909-7041-46ff-9033-82e3619792bc@redhat.com> From: Hans de Goede Message-ID: Date: Thu, 9 Jul 2020 11:29:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hdegoede@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: "alsa-devel@alsa-project.org" , c , =?UTF-8?B?TWF4Y1vpjKbmpq5d?= , "nuno.dias@gmail.com" X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi, On 7/9/20 10:53 AM, Kailang wrote: > Hi Hans, > > Please let it a try. Thank you. Kai Heng Feng, can you build an ubuntu kernel with Kailang's patch included? It seems that most reporters of this issue are in: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439 So if you can post a link to an Ubuntu test kernel there, then hopefully we can get some feedback on this patch. I'll attach the patch to the bugzilla.kernel.org bug and ask the reporters there to test as well. Regards, Hans > Kailang. > >> -----Original Message----- >> From: Hans de Goede >> Sent: Sunday, July 5, 2020 9:25 PM >> To: Kailang ; Takashi Iwai >> Cc: c ; alsa-devel@alsa-project.org; >> nuno.dias@gmail.com; Maxc[錦榮] >> Subject: Re: Fixing sound on Asus UX534F / some UX533 models >> >> Hi, >> >> On 7/3/20 4:52 PM, Hans de Goede wrote: >>> Hi, >>> >>> On 6/29/20 7:54 AM, Kailang wrote: >>>> Hi Hans, >>>> >>>> The bellowing was Gediminas Aleknavicius (lektuv) mention. (Launchpad >>>> #173) ==>After running the above commands sound and mic works on both >> built-in and headset with 2.5mm connector. The model is UX533FTC. >>>> >>>> Internal Mic was worked. >>> >>> I see and in (Launchpad #174) there is another confirmation that >>> everything works, this time with an UX534FTC. >>> >>> I also got a report from a user in the Red Hat bugzilla about this: >>> >>> On an UX534F just these 2 commands are enough to make everything work: >>> >>> hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf hda-verb /dev/snd/hwC0D0 0x20 >>> 0x400 0x7774 >>> >>> I'm not entirely sure if using the other 2 commands you gave me are >>> actively causing problems there, or if they just are not necessary. >>> I've asked the reporter about this. >>> >>> So it looks like some models need just: >>> >>> hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf hda-verb /dev/snd/hwC0D0 0x20 >>> 0x400 0x7774 >>> >>> While others need all 4 commands: >>> >>> hda-verb /dev/snd/hwC1D0 0x20 0x500 0xf hda-verb /dev/snd/hwC1D0 0x20 >>> 0x400 0x7774 hda-verb /dev/snd/hwC1D0 0x20 0x500 0x45 hda-verb >>> /dev/snd/hwC1D0 0x20 0x400 0x5289 >>> >>> Kailang, is that enough to write a kernel patch for this? If not what >>> other info do you need ? >> >> A quick follow-up on this, one of the reporters of: >> https://bugzilla.kernel.org/show_bug.cgi?id=206289 >> >> Still has a problem with the internal mic not working. >> >> He has tried both using all 4 of these: >> >> hda-verb /dev/snd/hwC1D0 0x20 0x500 0xf >> hda-verb /dev/snd/hwC1D0 0x20 0x400 0x7774 hda-verb /dev/snd/hwC1D0 >> 0x20 0x500 0x45 hda-verb /dev/snd/hwC1D0 0x20 0x400 0x5289 >> >> As well as just using: >> >> hda-verb /dev/snd/hwC1D0 0x20 0x500 0xf >> hda-verb /dev/snd/hwC1D0 0x20 0x400 0x7774 >> >> Which some users report is enough for them. >> His exact modelis "UX533FTC-A8221R" >> >> Still the 2 / 4 commands (depending on the exact model) do help for various >> other users/models so it would be good to get these added as fixups to the >> kernel. >> >> The specific model with the internal-mic issue will need further examination. >> >> Regards, >> >> Hans >> >> >> >>>>> -----Original Message----- >>>>> From: Hans de Goede >>>>> Sent: Wednesday, June 24, 2020 9:19 PM >>>>> To: Kailang ; Takashi Iwai >>>>> Cc: c ; alsa-devel@alsa-project.org; >>>>> nuno.dias@gmail.com >>>>> Subject: Re: Fixing sound on Asus UX534F / some UX533 models >>>>> >>>>> Hi, >>>>> >>>>> On 6/23/20 12:02 PM, Hans de Goede wrote: >>>>>> Hi, >>>>>> >>>>>> On 6/4/20 8:49 AM, Kailang wrote: >>>>>>> Hi Hans de Goede, >>>>>>> >>>>>>> Please test below. >>>>>>> >>>>>>> hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf hda-verb /dev/snd/hwC0D0 >>>>> 0x20 >>>>>>> 0x400 0x7774 hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45 hda-verb >>>>>>> /dev/snd/hwC0D0 0x20 0x400 0x5289 >>>>>>> >>>>>>> I think Headset Mic will work. >>>>>> >>>>>> Thank you, and sorry for being somewhat slow to respond. >>>>>> >>>>>> I do not have access to the affected hardware myself. >>>>>> >>>>>> I've asked users who have reported bugs about this to test these >>>>>> setting and report back in the following bug-reports: >>>>>> >>>>>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439 >>>>>> https://bugzilla.kernel.org/show_bug.cgi?id=206289 >>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1834751 >>>>>> >>>>>> I will follow-up when I have heard back from the bug-reporters. >>>>> >>>>> Ok, I've gotten the first feedback. I ve asked the users to test the >>>>> following after running the 4 suggested hda-verb commands: >>>>> >>>>> 1. Speakers >>>>> 2. Headphones output >>>>> 3. Internal mic. >>>>> 4. Headset mic. (using a phone headset with builtin mic with a >>>>> single T-R-R-S >>>>> connector) >>>>> >>>>> I've got feedback from a user with a UX533FTC-A8221R laptop: >>>>> >>>>> 1. Speakers: works >>>>> 2. Headphones output: works >>>>> 3. Internal mic: doesn't work >>>>> 4. Headset mic: works >>>>> >>>>> So things are looking ok, but we still have some work to do to get >>>>> the internal mic to work. >>>>> >>>>> Kailang do you have any suggestions for getting the internal mic to work? >>>>> >>>>> Regards, >>>>> >>>>> Hans >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Takashi Iwai >>>>>>>> Sent: Tuesday, June 2, 2020 8:42 PM >>>>>>>> To: Hans de Goede >>>>>>>> Cc: Kailang ; c >>>>>>>> ; alsa-devel@alsa-project.org; >>>>>>>> nuno.dias@gmail.com >>>>>>>> Subject: Re: Fixing sound on Asus UX534F / some UX533 models >>>>>>>> >>>>>>>> On Tue, 02 Jun 2020 11:51:49 +0200, Hans de Goede wrote: >>>>>>>>> >>>>>>>>> Hi Kai-Heng Feng, Takashi, >>>>>>>>> >>>>>>>>> I see that you are on the notification list for this bug: >>>>>>>>> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439 >>>>>>>>> >>>>>>>>> So you may have already seen this. Some owners of affected >>>>>>>>> laptops (which have non working speakers / headphone output >>>>>>>>> atm), have done some heroic debugging work and come up with a >>>>>>>>> set of >>>>>>>>> 2 hda-verb commands which fix this. >>>>>>>>> >>>>>>>>> I'm not all that familiar with writing hda quirks, so I was >>>>>>>>> hoping that one of you 2 can come up with a patch to fix this at >>>>>>>>> the kernel level. >>>>>>>>> >>>>>>>>> This would also resolve these 2 bugs, which I believe are the >>>>>>>>> same bug >>>>>>>>> really: >>>>>>>>> >>>>>>>>> https://bugzilla.kernel.org/show_bug.cgi?id=206289 >>>>>>>>> https://bugzilla.redhat.com/show_bug.cgi?id=1834751 >>>>>>>> >>>>>>>> Adding verbs are trivial and it can be done even without patching >>>>>>>> kernel but providing by a patch via patch module option of >>>>>>>> snd-hda-intel >>>>> driver. >>>>>>>> >>>>>>>> But, before moving forward, I'd like to confirm about the >>>>>>>> correctness (and the >>>>>>>> safeness) of those verbs. >>>>>>>> >>>>>>>> Kailang, could you check the COEF verbs mentioned in the bug >>>>>>>> entry >>>>> above? >>>>>>>> >>>>>>>> >>>>>>>> thanks, >>>>>>>> >>>>>>>> Takashi >>>>>>>> >>>>>>>> ------Please consider the environment before printing this e-mail. >>>>>>> >>>> >