Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3271140imu; Fri, 18 Jan 2019 07:38:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lu/whCfSV4FdF0QAGV+TrVSihhSFuQEpJ4j3tdh/Q+Igt1LCC+J4EaxNvT1e2yAFTJ0yE X-Received: by 2002:aa7:8608:: with SMTP id p8mr20077269pfn.125.1547825882878; Fri, 18 Jan 2019 07:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547825882; cv=none; d=google.com; s=arc-20160816; b=albJRmtsbL0RV4j9CGNurtZuaMQs2GxX+l0bu+fx7Pi5418uw9aYmX8/PMBAMPCHin 9/j/+cOTiC+bFEuNlOhT9kXT+oZz9TomFyqmdhJauhOvbHWB3MCI1yBCInBMDTE8yKdd tRY5eGpCIrtnDB5w8GidFeaqWYgymlIwn0ZUaDF32a6VtgYtfZlg3DmVVCG2DB8JjkWC HA09s2io0FrxunVOrrLRcaDUoS8Fkx1oN2rKx7sgAnnr/Xi9ukViyTl7zgPx6DDyBQo9 iYstmaT1N/WhcOnYuHixrn9rX3vmgCFGGBts6PNRgJEiyGz5YD/uI3w+fqd7ILzlgwnb /g4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KlCbU+v2Ly6akxMfB/fMOsrfrjngzKkxYrx+Juqud64=; b=QsjLGrEIL8Ob5jzogk967KBO6dKYMwqcyGx9+hpjz0+jJKj0oos+yGeOjNtxIBHFL0 Cx6h7SP/VjaTdBn1Rl7uawrM1SO+nFzckg+RhUgjWKbKSXvYk5GOwumRJMXawut204Cr ZeqeDlk+K1eOMx4gVOOZIwV02ww0Iff5uhnH414MxLfm/iUrY32MWUnprZIPmKuNhuiy M+uCtNJThvQ8rk8Dq8T9wQaBk3nOiR4X4SROsjwdAqhxyRZu6L+Z5hM/JZesJgT+1GkR HPXMXKyXT2jcY+1nsX4LYkp1noh2+XTanu4utrg5HNoTyrZTBTqKnWbrt68lpqkKVSJ3 jBIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si4909240pge.479.2019.01.18.07.37.44; Fri, 18 Jan 2019 07:38:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbfARPfU (ORCPT + 99 others); Fri, 18 Jan 2019 10:35:20 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42776 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727608AbfARPfT (ORCPT ); Fri, 18 Jan 2019 10:35:19 -0500 Received: by mail-ed1-f67.google.com with SMTP id y20so11415593edw.9 for ; Fri, 18 Jan 2019 07:35:18 -0800 (PST) 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=KlCbU+v2Ly6akxMfB/fMOsrfrjngzKkxYrx+Juqud64=; b=MnCUSay7XVR1dnzfcyReZ2sIFXXbeZBbsPS7bBPTVML+L+69QA5A8n2zUdg/WQl3WJ vRix8bfD/ji1+qTc4OWF66yupIZnYvJJ1ITf/+U4bPIl/y93WdI9gIzJ4kQqtxz5SXX6 kK96FSA2J7sQ1uGb/q3OPknXSbvIF3Sk4hlj3NTf8QuET044LSVi1ivou3FKXAY+F+bi 7df5RYK6Q0+h84seCZklotFg7H/XbwnZ4zJ0QeJWG2u533t/lE+zY16hpoouumrNkNqt Tqw84aabJos0LwCKph3gL8NN0sEK+wksMy/XbGtLYFpNFp+6lbUAOLrjs/Prz8N9dv9H Skrg== X-Gm-Message-State: AJcUukeQSxYnw5PVBB9Z56ofh97pEICxae1KHffVUaFEGSzNaF86Iy4n wZW4UcC3lNtlCrF4OUnTz7DI6khGVeM= X-Received: by 2002:a17:906:e0cb:: with SMTP id gl11-v6mr15085794ejb.92.1547825717007; Fri, 18 Jan 2019 07:35:17 -0800 (PST) Received: from dhcp-44-202.space.revspace.nl ([2a01:4f8:1c0c:6c86:46e0:a7ad:5246:f04d]) by smtp.gmail.com with ESMTPSA id c11-v6sm3971571ejz.70.2019.01.18.07.35.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 07:35:16 -0800 (PST) Subject: Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL) To: Mogens Jensen Cc: Dean Wallace , Pierre-Louis Bossart , Andy Shevchenko , Stephen Boyd , Michael Turquette , linux-clk , Stable , Johannes Stezenbach , Carlo Caione , Andy Shevchenko , Linux Kernel Mailing List References: <20181025232517.ywnw54qibemosjws@picard> <3iO9ehQbZm_haTV0IuZ0qhsVHR0QLUbTgRJT8ZenGuRsnz2_uBvO93f0bHVYnsApibUT16JsJ0dgphLhUBd-u0t-lDBNsbvvlKWTgq8XOlw=@protonmail.com> <3e12e051-b874-187d-d4f5-e146f59c659b@redhat.com> <20190117091214.7djttnpo4jjzi4su@spock> From: Hans de Goede Message-ID: <983fb777-df22-1b53-acea-8bbcab23b260@redhat.com> Date: Fri, 18 Jan 2019 16:35:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 1/17/19 8:30 PM, Mogens Jensen wrote: > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Thursday, January 17, 2019 12:05 PM, Hans de Goede wrote: > >> Hi, >> >> On 17-01-19 10:12, Dean Wallace wrote: >> >>> Hi Hans, Mogens, >>> On 17-01-19, Mogens Jensen wrote: >>> >>>> Kernel is compiled with SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH and the quirk seems to have fixed the problem caused by commit 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL"), as sound is now working if running "speaker-test" on my system which is clean ALSA. >> >> Note being "clean ALSA" is really not a good thing now a days, >> for lots of things we depend on pulseaudio (like setting >> up UCM mixer profiles). >> > I'm using UCM mixer profile from: > > https://github.com/plbossart/UCM/tree/master/chtmax98090 > > This is enabled with: > > alsaucm -c chtmax98090 set _verb HiFi set _enadev Speakers > >>>> Unfortunately, SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH driver is unusable on Clapper Chromebooks as audio played from everything but "speaker-test" as video players or web browsers is extremly low and sounds like played at 10x speed. At the same time kernel log is spammed with messages like this: >>>> max98090 i2c-193C9890:00: PLL unlocked >>>> intel_sst_acpi 80860F28:00: FW Version 01.0c.00.01 >>>> writing to lpe: 00000000: 01 01 01 01 00 00 08 00 ff ff ff ff 55 00 00 00 ............U... >>>> writing to lpe: 00000000: 01 01 01 01 00 00 1a 00 ff ff ff ff 75 00 12 00 ............u... >>>> This is probably not related to the problem discussed in this thread, but the result is that I have to use the legacy driver SND_SOC_INTEL_BYT_MAX98090_MACH and therefore still has to revert commit 648e921888ad for sound to work. >>>> Is it possible to create a fix for SND_SOC_INTEL_BYT_MAX98090_MACH on kernel 4.19? Kernel 4.19 is a long term release so it would be very nice to have fix for this version upstream. >>> >>> I have been reverting "clk: x86: Stop marking clocks as CLK_IS_CRITICAL" >>> and the patch that initially added the quirk for swanky because of sound >>> instability issues as you described. I'm compiling vanilla Archlinux >>> kernel with SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH, using pulseaudio, >>> and have sound in all my apps. >>> Baytrail sound has always been a little touchy, especially using headset >>> with mic, but since the clk patch breaking sound and the quirk patch to >>> fix it, there is a lot more instability. Just running pavucontrol, or >>> plugging in headset sets it off. It's a head scratcher. >> >> Mogens, Dean, can you please try the SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH >> driver, without reverting any patches, with the attached patch on top and >> see if that helps? >> >> Thanks & Regards, >> >> Hans > > I have applied the patch to kernel 4.19.15 and unfortunately this has not solved the problems. > > Audio generated from "speaker-test" is normal, but from everything else is very low and played at 10x speed. However, I'm not seeing the "max98090 i2c-193C9890:00: PLL unlocked" message in kernel log anymore, but it's still spammed with "writing to lpe: ...". Hmm, I've a feeling the problem is your using alsa directly, do you have dmix enabled ? You probably need dmix since the SST sound support only supports 48KHz AFAIK. Can you perhaps give things a try with pulseaudio ? Regards, Hans