Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10133930ybi; Wed, 24 Jul 2019 16:46:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJh/L5Y09PrvfRQXN2tvG18fIu22BLgAo7tr1mTAvHyc0+S9+FKZk2zEEzD/wqW/e9EqoR X-Received: by 2002:a63:2744:: with SMTP id n65mr70508380pgn.277.1564011976965; Wed, 24 Jul 2019 16:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564011976; cv=none; d=google.com; s=arc-20160816; b=Zg+Y6z+Zb+xce1MLsW9MegMZldFwMzHxwXhMaQeHYwpxlJAacie6kA27qrn+AONmCv f49hNhVzDrhxP/lZm+R2Vfmp3qKZLTeLBw9/4a5mthonLj5b+JQQ2oZlrsreRn1x99Ot mSwdBPmusRzMJCh34hoASyOQv9ecjuvKQMJnpnlTsvd/fKdPB0we4bPewXCV5sSMUOOb TKyqvo/1hOBfRFhmYZjwODbAWJSjhetz+bJUm9PwK6fICqtZvyjsvMyT3tnVUMtq9JdI rec0G3VmtIvaDiweODdWanBkah1wvVifBP2JL+mCFNa7o80LyRxJ+NKyBc6cSi3ehNej RmSw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZgzYWTbimYumbv02qqAIZ2/aRk52qetw7wCRr6pkpJk=; b=GcmxGZC8xYcY6FlhVmmnW6Ji1Tjgiel40lFOwJJwVAaidLA1qIyrLXnvLJYMBiyCJE 4KN1kyRjvp2oIHwZaxAmi/NLCY+UHssvyYFds/xF/KunHdMaLT2LYXhYcQlx050tLmW8 b+mIupYXSC+3pLI64vliwijlbjvZewcDsbSAhcL0TXD1/cta5scvE/zt1xq8uGpV2FRj mWkXmBxHaTj9LfteBDxip59ZKS+1CV7A4qnQAHa+aK+OfFeem5VPClk8DgYoxXoVB4Hv CrD1CIgq82C3uvpQj8xRML7lkvTUVMJmEAKthyL2T9hZzaBN+P1BotefiGV+/VluTSZM kMLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zzHfEzu6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 185si16403092pgc.522.2019.07.24.16.46.01; Wed, 24 Jul 2019 16:46:16 -0700 (PDT) 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=zzHfEzu6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388437AbfGXTa4 (ORCPT + 99 others); Wed, 24 Jul 2019 15:30:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388426AbfGXTax (ORCPT ); Wed, 24 Jul 2019 15:30:53 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 341CB20659; Wed, 24 Jul 2019 19:30:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996652; bh=RHgChTb5kJ4u726IVWqaoD99WXZwv8fFPgWtTGxTtps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zzHfEzu6Au+vD9/fuusPV7kNzMtptI80KSdJJWaCOHZGTwtAE1aY/JnnC7GPzruDg M3GzYDNuHdWS5mqBHlJ/Gu71+rjxiDO3e5faH8yWJN5VJvW5LlxPQxSfc8Kl2sUU0W 3BQdzJfYN6488jhaDnixkxT4xi0zduw6aFDD9kME= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nilkanth Ahirrao , Suresh Udipi , Jiada Wang , Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH 5.2 119/413] ASoC: rsnd: fixup mod ID calculation in rsnd_ctu_probe_ Date: Wed, 24 Jul 2019 21:16:50 +0200 Message-Id: <20190724191743.774552265@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit ac28ec07ae1c5c1e18ed6855eb105a328418da88 ] commit c16015f36cc1 ("ASoC: rsnd: add .get_id/.get_id_sub") introduces rsnd_ctu_id which calcualates and gives the main Device id of the CTU by dividing the id by 4. rsnd_mod_id uses this interface to get the CTU main Device id. But this commit forgets to revert the main Device id calcution previously done in rsnd_ctu_probe_ which also divides the id by 4. This path corrects the same to get the correct main Device id. The issue is observered when rsnd_ctu_probe_ is done for CTU1 Fixes: c16015f36cc1 ("ASoC: rsnd: add .get_id/.get_id_sub") Signed-off-by: Nilkanth Ahirrao Signed-off-by: Suresh Udipi Signed-off-by: Jiada Wang Acked-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sh/rcar/ctu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c index 8cb06dab234e..7647b3d4c0ba 100644 --- a/sound/soc/sh/rcar/ctu.c +++ b/sound/soc/sh/rcar/ctu.c @@ -108,7 +108,7 @@ static int rsnd_ctu_probe_(struct rsnd_mod *mod, struct rsnd_dai_stream *io, struct rsnd_priv *priv) { - return rsnd_cmd_attach(io, rsnd_mod_id(mod) / 4); + return rsnd_cmd_attach(io, rsnd_mod_id(mod)); } static void rsnd_ctu_value_init(struct rsnd_dai_stream *io, -- 2.20.1