Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2746545pxu; Sun, 29 Nov 2020 03:47:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhCi1xsHpdA1Q61uOaeeXh823GjODfBzmhT22uxpp8/43TtahWhgdHBJlDGjoqlEQWkmVh X-Received: by 2002:a17:906:4488:: with SMTP id y8mr4864161ejo.370.1606650446068; Sun, 29 Nov 2020 03:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606650446; cv=none; d=google.com; s=arc-20160816; b=gGJ/YCwy9BZL64ngHbIgmC8Ue67ONWhot/UCS1cz/vKcIQEZd7VkQukWRg/HC/8S4r ohvTm5u8kzXzkxbiJEGQ6aeNU8z58sFOxY5gyzQ0Z6YZsbZnBDZYdigF3rdDPd60ukDi GSbtXe8SDsZ+lF70U7cuJ6qMFPTJRZegwCBCz7IaclpcfuDOg/wOx0+gSc7VLLZnNeMx tAMu7Uj2DfFy6C4G8vhKBd1dP6VXkqir4pjiI9pjyo6FbH0Y8TgxWCLHFzwLsVkx5ziV oo5EofSlIve7D553Iq2a3s3GTYFQMQERsBMsvXNMBDYwOXW7UGjKcNPipYz9OnSvGcT5 99FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=irnQ+2Yons8v2XohFJM2rIMLXWasN59GGOMkiFM6BM4=; b=ghfbgUtp/6m0uoGk+FUWPvf4joL6vnCPbPeHHPJx+SIyzqubi635M4FJ6CsIsojgbL U5put69Mgmtg68hZw9c5/yZPeq4cNTIhr52c8rir6jfjmL6F1aa9iL5y/QIA8FqbpQbY wFSP7SQXGtCERlYc6s31x3CJylj5XDC4iRGyGXJkYdHhPUivpNL6FUF7N4vIPivUIObA lpo8QoyU4n/BSXVe48guHASnxGGVd8QsA75pIxaxcyc6o3+1HJzNfX9J1MHU+aD9jLxn DDSW/N42IyPJEt/67UE/EE12dL0No+MAp+hwHYFDZ8G07EJRiwa8sDHya2c1CXlPXpmE G6NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si8272869ejm.64.2020.11.29.03.47.03; Sun, 29 Nov 2020 03:47:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbgK2Lo1 (ORCPT + 99 others); Sun, 29 Nov 2020 06:44:27 -0500 Received: from mga07.intel.com ([134.134.136.100]:8115 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727517AbgK2Lo0 (ORCPT ); Sun, 29 Nov 2020 06:44:26 -0500 IronPort-SDR: pWxYXbTZpOdiE8gJohq2P0nALiNcl+9kziI80Ot9WTKkx9XmhQI+kL6Cth55EUPiy7/0M8TY4k gzxUcqJ0ouZw== X-IronPort-AV: E=McAfee;i="6000,8403,9819"; a="236654210" X-IronPort-AV: E=Sophos;i="5.78,379,1599548400"; d="scan'208";a="236654210" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2020 03:43:10 -0800 IronPort-SDR: cpjO0/NBIZu5CdhR6eFa4YtgRAEv6JePLDo0TDzdw84P+IxoFXDfEkd7H9nA+K/fYOxySF3a8u 7rX/O/MhDnZw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,379,1599548400"; d="scan'208";a="480261633" Received: from crojewsk-ctrl.igk.intel.com ([10.102.9.28]) by orsmga004.jf.intel.com with ESMTP; 29 Nov 2020 03:43:08 -0800 From: Cezary Rojewski To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, mateusz.gorski@linux.intel.com, Cezary Rojewski Subject: [PATCH 3/8] ASoC: Intel: Skylake: Enable codec wakeup during chip init Date: Sun, 29 Nov 2020 12:41:43 +0100 Message-Id: <20201129114148.13772-4-cezary.rojewski@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201129114148.13772-1-cezary.rojewski@intel.com> References: <20201129114148.13772-1-cezary.rojewski@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit e603f11d5df8997d104ab405ff27640b90baffaa upstream. Follow the recommendation set by hda_intel.c and enable HDMI/DP codec wakeup during bus initialization procedure. Disable wakeup once init completes. Signed-off-by: Cezary Rojewski Reviewed-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20200305145314.32579-4-cezary.rojewski@intel.com Signed-off-by: Mark Brown Cc: # 5.4.x --- sound/soc/intel/skylake/skl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index f46b90ccb46f..1a3a3d6a3141 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -129,6 +129,7 @@ static int skl_init_chip(struct hdac_bus *bus, bool full_reset) struct hdac_ext_link *hlink; int ret; + snd_hdac_set_codec_wakeup(bus, true); skl_enable_miscbdcge(bus->dev, false); ret = snd_hdac_bus_init_chip(bus, full_reset); @@ -137,6 +138,7 @@ static int skl_init_chip(struct hdac_bus *bus, bool full_reset) writel(0, hlink->ml_addr + AZX_REG_ML_LOSIDV); skl_enable_miscbdcge(bus->dev, true); + snd_hdac_set_codec_wakeup(bus, false); return ret; } -- 2.17.1