Received: by 10.223.176.5 with SMTP id f5csp780494wra; Sat, 3 Feb 2018 10:06:48 -0800 (PST) X-Google-Smtp-Source: AH8x227tTHTkHzUcXg/c6vsoj0uadRAqJOqMieQYL5BLPVknIxO46zn5Eotuk3jVDHxyEX/Ss6Pd X-Received: by 10.101.100.8 with SMTP id a8mr7017050pgv.102.1517681208114; Sat, 03 Feb 2018 10:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517681208; cv=none; d=google.com; s=arc-20160816; b=q8SUTcjgqPZbi6wI3JxZGo016dMJ91p0IFe9o+EOV2KX8RMs2sEo3bcd3Tmifwfgtx vtRJFGEdbtcjzjvo96JuqRey8lxcKRR+DLpOGdv6W1kOmqmYDdNqNGmA/1En92B1DtGE dyZgtjItInljSYK69Cg+SIK16Sp9NV0cE+fCGRwn0UQcTaMIuf8EJNKUqnO90Ilg8xDl ALX5I9/c4l+Kkbq2HHg+MTSFcOnRRm6AeFvbXXyXfxmyewW1fFIC/4GZsw3C8RVZ+hn1 kHbNwBmwPok3kgBPOo0F7eonu+hlmyTqB7anwvo9C6kWWNvIN6kg5hPblWTYcIYTRia8 xArg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Uy6pEvIFO5lDSOY5o1H1u3sKBdpcZQrJ722PLL84Jq0=; b=A2EeSFCbYf6CoLjA6iJriV2asXgWrQKXnwee/daB+n5W3+lJv+ZX1ym79YbZgd81ns Eb4+V/U5QPWHRn1fEDzMOSiugL5Ggtv9xIqzHC+rOSE2jVUJ2LRvwNK93jRc+mqNNlas T0B5MtlcCeEYTRyAL5pe5pLSfdK91fMfIJiFwCRfeZkS4Pqf+G/quEY8xTsJgfuFKncl Z2VtvMcWY2zRXWHzBGpoEpdEW69T/MIHZJfJ2fJJXR1CL90FVK1zqLQpLg60WUCfDc4N 7oXLMDMoxHTh5VG7QA+rgrU5HcagM43Mv1HlIzpIfdl2XQNuy4sPuYTpYP6hNwHavbBr R73g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=kRMS4gue; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l64si3978724pfi.388.2018.02.03.10.06.33; Sat, 03 Feb 2018 10:06:48 -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=@microsoft.com header.s=selector1 header.b=kRMS4gue; 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=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753385AbeBCSFa (ORCPT + 99 others); Sat, 3 Feb 2018 13:05:30 -0500 Received: from mail-dm3nam03on0129.outbound.protection.outlook.com ([104.47.41.129]:34880 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753006AbeBCSB7 (ORCPT ); Sat, 3 Feb 2018 13:01:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Uy6pEvIFO5lDSOY5o1H1u3sKBdpcZQrJ722PLL84Jq0=; b=kRMS4gueI2X9ve/M6ghV42/bmRgcUXiuY+aOCIyfcYiFthoF9QHaGGjX9FD4prVNTpeSD6lojHUaLOGbJIYvee0FReoutEmOm5LnVuQD7gG1t2g2HDPBDoeXcbnCzPJTgLwSshqGKf4pTMyeaxoo1ODlktSrdHdajYtUmE4op6g= Received: from BL0PR2101MB1027.namprd21.prod.outlook.com (52.132.20.161) by BL0PR2101MB1092.namprd21.prod.outlook.com (52.132.24.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.485.4; Sat, 3 Feb 2018 18:01:23 +0000 Received: from BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9]) by BL0PR2101MB1027.namprd21.prod.outlook.com ([fe80::a8da:b5d9:d710:9bf9%3]) with mapi id 15.20.0485.006; Sat, 3 Feb 2018 18:01:23 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Kuninori Morimoto , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 044/110] ASoC: rsnd: fixup ADG register mask Thread-Topic: [PATCH AUTOSEL for 4.14 044/110] ASoC: rsnd: fixup ADG register mask Thread-Index: AQHTnRjsyGlOT51Da06iE8BpIBZZkQ== Date: Sat, 3 Feb 2018 18:00:49 +0000 Message-ID: <20180203180015.29073-44-alexander.levin@microsoft.com> References: <20180203180015.29073-1-alexander.levin@microsoft.com> In-Reply-To: <20180203180015.29073-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR2101MB1092;7:psK2IlKZ4oYSc8zC/ESjfnw5+k2gAe26P1sSZDNY/o50SSW7SGTJb2/xzPx1sONVsYsJq9caivfEHMSR8vDBKcpBkAyPMWDpC97nIP6vpfEDE2v7i6SHwFDYB8QtwcFHyKXMUlYoqZgCDQ6K91M31apVpUE0naOBLXmJqVo+Ke4Ak8zodpIviZGgxaie3ZDMqBB1Tog2Cpf5vI60BafYSdCFc5AR63GrxU+PdOyukUD5wx4liWuI9SMfxSzkZgCK x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 51634185-ff13-471d-5197-08d56b30236a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7193020);SRVR:BL0PR2101MB1092; x-ms-traffictypediagnostic: BL0PR2101MB1092: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BL0PR2101MB1092;BCL:0;PCL:0;RULEID:;SRVR:BL0PR2101MB1092; x-forefront-prvs: 05724A8921 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(189003)(199004)(3280700002)(14454004)(3660700001)(105586002)(3846002)(6666003)(22452003)(6116002)(99286004)(305945005)(7736002)(2950100002)(66066001)(478600001)(54906003)(110136005)(68736007)(316002)(86362001)(106356001)(186003)(26005)(6506007)(76176011)(6346003)(10090500001)(575784001)(102836004)(6436002)(4326008)(8936002)(2501003)(53936002)(86612001)(2900100001)(6486002)(2906002)(6512007)(25786009)(97736004)(72206003)(1076002)(107886003)(36756003)(5660300001)(5250100002)(8676002)(81156014)(81166006)(10290500003)(22906009)(21314002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL0PR2101MB1092;H:BL0PR2101MB1027.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: vNpN1VsxxEtsX8Wlcwm1TgZKqRYeGJriydwhLDSTK2L4Uhjhn848pI2OyUdRiYAna71vhblJxArPX0sDU4V3KQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51634185-ff13-471d-5197-08d56b30236a X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2018 18:00:49.7534 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR2101MB1092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuninori Morimoto [ Upstream commit d5aa24825da5711f8cb829f873160ddf1a29b19c ] BRGCKR should use 0x80770000, instead of 0x80FF0000. R-Car Gen2 xxx_TIMSEL should use 0x0F1F, R-Car Gen3 xxx_TIMSEL should use 0x1F1F. Here, Gen3 doesn't support AVD, thus, both case can use 0x0F1F. Signed-off-by: Kuninori Morimoto Reviewed-by: Hiroyuki Yokoyama Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sh/rcar/adg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index 938baff86ef2..2684a2ba33cd 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -216,7 +216,7 @@ int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *cmd_m= od, NULL, &val, NULL); =20 val =3D val << shift; - mask =3D 0xffff << shift; + mask =3D 0x0f1f << shift; =20 rsnd_mod_bset(adg_mod, CMDOUT_TIMSEL, mask, val); =20 @@ -244,7 +244,7 @@ int rsnd_adg_set_src_timesel_gen2(struct rsnd_mod *src_= mod, =20 in =3D in << shift; out =3D out << shift; - mask =3D 0xffff << shift; + mask =3D 0x0f1f << shift; =20 switch (id / 2) { case 0: @@ -374,7 +374,7 @@ int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *ssi_mod= , unsigned int rate) ckr =3D 0x80000000; } =20 - rsnd_mod_bset(adg_mod, BRGCKR, 0x80FF0000, adg->ckr | ckr); + rsnd_mod_bset(adg_mod, BRGCKR, 0x80770000, adg->ckr | ckr); rsnd_mod_write(adg_mod, BRRA, adg->rbga); rsnd_mod_write(adg_mod, BRRB, adg->rbgb); =20 --=20 2.11.0