Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp208978imj; Thu, 14 Feb 2019 18:44:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IYHRkH+hZaRjmLy78f81QzN1AFuaGzYWqvdHITJNIjEFiLiCPnL9wmFJXathL4+UtU+tt4l X-Received: by 2002:a17:902:4025:: with SMTP id b34mr7739133pld.181.1550198686603; Thu, 14 Feb 2019 18:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198686; cv=none; d=google.com; s=arc-20160816; b=kyya9KTz0L+gO0tZhzEYXRCuJjSoKjNhab87KG2VbRlcIOhqPFQm975Zm1crY6GD8v s2Itdhwo9IDJJghmPT0XkK3kehkt5amBkfwIQp8x3Y3vgpRdAe4gi/ykwjC0aEnklGXv tSwMcv84PAuSocXQ5BWipS8hcPFmRY3n3Ph/OUIE4TA0pKh9rMyttbqZWgywpVBfb1em fY9lUmj/X2JVA5HVzu0Qd2px58RaVbU/ctgUua28izXxPpZzB+IpZv1v70wvMQ/k05gG p9B1Kzm2E876wyq5qd4L9yGRbd7FFCvwFk7J5E/F3DL7GMYmLnm2BVt7/7RHHp+y2iTn dEPg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GWjo4mqGZbjZWycwYN1t97GtqcbKWjfFY1gLTfTDiCE=; b=sKysBLC1JpdKrGZuA8y67i8uHJfsDUt5uHqup54Ck5C1H7C302kRaSNbquzMbVpZa2 MBF/470nEp2PKTJtx+AaiChS1jXjd4poe8bx2azyjkjnWb/qW9Wjlq3VGwomb7txlT85 LLpyILppzSDGvsH0B1XlKTDbituVS+mA0l5+A3xEeyoq4jpGWs3ZFN9TmmN2mllFlGia aDAHeZWsANtxfOy2fgOsP0OgjJMxkTHXyrj6cOge421SBvVx62VsStRiG49Exp9FJgKi lFkNHSub0EwU2p09+53zemcx2+n4F//8lWbXke937glgcXQugJx5/HqAcEgn2nareY3S YeSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gYxQfsK5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si1440253pgc.122.2019.02.14.18.44.30; Thu, 14 Feb 2019 18:44:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=gYxQfsK5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731447AbfBOCJE (ORCPT + 99 others); Thu, 14 Feb 2019 21:09:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:49216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfBOCJC (ORCPT ); Thu, 14 Feb 2019 21:09:02 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0581321B68; Fri, 15 Feb 2019 02:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196541; bh=/oRdmyHA0YM8XPjS7A+VU/JPOikW0RiWqE0BXljpxwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gYxQfsK5rHPj9wxO9jYgfoREUkOF9pOpGz+Dywt4h1d1VuVcvDv0tG7nBcurkwcoD lwoO90u4PBbn9Z2ZOtXNa3dDEXmhL2XTqhq+wYyYLxXALKb3yHoTNACrUTsh7HT/eE w/PD4XpoIoYarNo0yQON24xPkAcGXg5RhjvEhPhw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rander Wang , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL 4.20 02/77] ASoC: Intel: Haswell/Broadwell: fix setting for .dynamic field Date: Thu, 14 Feb 2019 21:07:40 -0500 Message-Id: <20190215020855.176727-2-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rander Wang [ Upstream commit 906a9abc5de73c383af518f5a806f4be2993a0c7 ] For some reason this field was set to zero when all other drivers use .dynamic = 1 for front-ends. This change was tested on Dell XPS13 and has no impact with the existing legacy driver. The SOF driver also works with this change which enables it to override the fixed topology. Signed-off-by: Rander Wang Acked-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/broadwell.c | 2 +- sound/soc/intel/boards/haswell.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c index 68e6543e6cb0..99f2a0156ae8 100644 --- a/sound/soc/intel/boards/broadwell.c +++ b/sound/soc/intel/boards/broadwell.c @@ -192,7 +192,7 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = { .stream_name = "Loopback", .cpu_dai_name = "Loopback Pin", .platform_name = "haswell-pcm-audio", - .dynamic = 0, + .dynamic = 1, .codec_name = "snd-soc-dummy", .codec_dai_name = "snd-soc-dummy-dai", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, diff --git a/sound/soc/intel/boards/haswell.c b/sound/soc/intel/boards/haswell.c index eab1f439dd3f..a4022983a7ce 100644 --- a/sound/soc/intel/boards/haswell.c +++ b/sound/soc/intel/boards/haswell.c @@ -146,7 +146,7 @@ static struct snd_soc_dai_link haswell_rt5640_dais[] = { .stream_name = "Loopback", .cpu_dai_name = "Loopback Pin", .platform_name = "haswell-pcm-audio", - .dynamic = 0, + .dynamic = 1, .codec_name = "snd-soc-dummy", .codec_dai_name = "snd-soc-dummy-dai", .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, -- 2.19.1