Received: by 10.213.65.68 with SMTP id h4csp1680593imn; Mon, 19 Mar 2018 10:23:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELtx/xlwc1AgYf5mqk3nNSKkK60iz4MHgxGtVNy2sWtzqkWqKS5WMxowVociYzOftQgvr+DE X-Received: by 10.99.185.7 with SMTP id z7mr9936266pge.123.1521480184729; Mon, 19 Mar 2018 10:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521480184; cv=none; d=google.com; s=arc-20160816; b=npassA2Du1nwpO+F7h446GCqE4IVnsSw7ey+Ske45ProzTHob3GoIE4wcI7HC/2HCl x1vFFN7O4U8dCBoLwjNmTXi5JQag9uI+i1eI4knx8ZNe5eUGSOjioX//blnGMuJWAPfT VJYBj+r8xUqWU2UzxVHw+RvlKMNLdjsMTuv1UhkenWgiOMZ6NEjf2cSfxTm9xnMz1xFR 72IsIIsoJYWEzHbb5q4lNBWBaJ/CRR7d/xctWwfkWXGk1KkvefjgJD2XiZt6qJ97MoFa ES3S//3KTled9PDhS+mSWwHAHWvG0H6+qaBwbTl4q/UabxMD+1eZClLTgNn+NkOCfGe4 aPYg== 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=hadqpfoFG3j9dawhvnItfm4LXav56utYIn8d9rZrWw0=; b=VpELnYpeZeEFUVzvt2jPXFVQ9Gm0ag2HHGZ735zCb0JNOYTqpOKqTqfKdaZVZZXrpj AQv4Yic5YYXJ8VU/WUaY5t5rvKN8Sun7TUacXaCZEk5RQsl6HgXzT8iNuoNZMeZ7SJ8L 7sZcD7CAWNSc+L1Yay73iSaP2YzO37eT2tB1H2FuRbobx1YpT1iQvbF3rx7XxLq5ukAs fiLzt1lSNALYmO8aXU7LKd3odseD2sogvDVkRgjV79pJQhg1c9Mmz7Vr2wLV0RVhmYhY 9Uom3Pq2ZwT0i6k3InF3NCG/jv4n4V9a7lMsN85B1UDvCjM+vptU1BdMWwRP5h20yv/v dq1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=LexKO/el; 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 e133si245154pfh.410.2018.03.19.10.22.49; Mon, 19 Mar 2018 10:23:04 -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=@microsoft.com header.s=selector1 header.b=LexKO/el; 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 S967867AbeCSRU7 (ORCPT + 99 others); Mon, 19 Mar 2018 13:20:59 -0400 Received: from mail-cys01nam02on0124.outbound.protection.outlook.com ([104.47.37.124]:59524 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966396AbeCSQJJ (ORCPT ); Mon, 19 Mar 2018 12:09:09 -0400 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=hadqpfoFG3j9dawhvnItfm4LXav56utYIn8d9rZrWw0=; b=LexKO/elTu5cLRoCZjCcCBO44GC8hii4ucCsBwc5vOxzFcr5sfWo8VuFYv5wgD3TVC7mdJaGVUxAJE/wSQMk32U6QaFI1Cw+jVsgMT/IZnBSCOy4taqoudGqdH5WYnZ4f0OSGpOQFWo46HOaK+PddIB0k5+6RTUWWg+ffNK6mno= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0965.namprd21.prod.outlook.com (52.132.133.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:08:59 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:08:59 +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.4 072/167] ASoC: rsnd: SSI PIO adjust to 24bit mode Thread-Topic: [PATCH AUTOSEL for 4.4 072/167] ASoC: rsnd: SSI PIO adjust to 24bit mode Thread-Index: AQHTv5xL54Dhx717jkq1SRtcupDstA== Date: Mon, 19 Mar 2018 16:06:52 +0000 Message-ID: <20180319160513.16384-72-alexander.levin@microsoft.com> References: <20180319160513.16384-1-alexander.levin@microsoft.com> In-Reply-To: <20180319160513.16384-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;DM5PR2101MB0965;7:Cp9DOGHtm0oCqDaNO8sWEc/4AAMmGrCvvsMF/SLhqzYIQTjoLXPHdh2l4E6rO8TkjPv2SYLykFbLpjdtM0OyhNDYV0PiBF9MMau0pYmB3tV8rBh8Qc5hAHXuZbaofFlXIzszlsn4Jku4kzsFobebNezmU0iejiFZMFDNcIFmeVCakM/k7Peycr/2kw2wovHMkEMAGN/D2VwJDGTUXw84OMtn0dOxWABoKjEl1wwyKoae586UwRMgNMx6UGIQ+iLp;20:OGFqhXGXOfayalMmcZ67WQSq1W8go2VJNeKaR7fDISfx/yb4X8Wq+sDUehsSWWwRWt30ESTW3g7ueegfASPW4IBKSzKVW4pJu7hrYDpOVnC+RYHyG10ghvEyR2Tk5ij8Wecqo7s2KPPFBPnHS2nSoHwSSL1kvAF+yrmYDTNqsQU= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 97a154c5-5289-4166-e986-08d58db3b9c4 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0965; x-ms-traffictypediagnostic: DM5PR2101MB0965: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0965;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0965; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(396003)(39860400002)(376002)(39380400002)(189003)(199004)(25786009)(7736002)(6506007)(86362001)(86612001)(10090500001)(478600001)(53936002)(6666003)(6512007)(36756003)(2950100002)(8936002)(110136005)(54906003)(105586002)(14454004)(107886003)(72206003)(10290500003)(316002)(102836004)(2501003)(59450400001)(5250100002)(99286004)(22452003)(305945005)(6436002)(6486002)(1076002)(76176011)(26005)(4326008)(186003)(97736004)(106356001)(3660700001)(3846002)(6116002)(5660300001)(68736007)(2900100001)(8676002)(81166006)(81156014)(3280700002)(2906002)(66066001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0965;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: dGsXgAuD/+yIZDu5b8w9J4EglZItgfK3SMSc1c2syFcm8pQpt0uyP7cpKjAWC1k0OWmsrqj5t3zkOwQV5Eu+eWaJyovaAdAG2gE2YmhFM08BkBI0J68afw5svI+14uydD1mpgVNV4SwKiq5m9w0ntQUWtoXBh2UAOUYDzo6lC/eRw4aVRCR6SbGy7ffNzjjB8AHdae3BvAy7g+ZvsfI2e9Kzdhhn8iSHPBgCPByi9VeepcpVt1klIBLA/22ApUaRVO43t70lKjBFMxi1m5iGCRWMO8Y8M3YwQafj98+qlZQ4CBiV/1c6oUFNeRUs9Yycho/iF1GN8FEj5W+dMMWbqw== 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: 97a154c5-5289-4166-e986-08d58db3b9c4 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:06:52.6064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0965 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kuninori Morimoto [ Upstream commit 7819a942de7b993771bd9377babc80485fe7606b ] commit 90431eb49bff ("ASoC: rsnd: don't use PDTA bit for 24bit on SSI") fixups 24bit mode data alignment, but PIO was not cared. This patch fixes PIO mode 24bit data alignment Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sh/rcar/ssi.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index 38aae96267c9..63f901d50131 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c @@ -444,6 +444,13 @@ static void __rsnd_ssi_interrupt(struct rsnd_mod *mod, struct snd_pcm_runtime *runtime =3D rsnd_io_to_runtime(io); u32 *buf =3D (u32 *)(runtime->dma_area + rsnd_dai_pointer_offset(io, 0)); + int shift =3D 0; + + switch (runtime->sample_bits) { + case 32: + shift =3D 8; + break; + } =20 /* * 8/16/32 data can be assesse to TDR/RDR register @@ -451,9 +458,9 @@ static void __rsnd_ssi_interrupt(struct rsnd_mod *mod, * see rsnd_ssi_init() */ if (rsnd_io_is_play(io)) - rsnd_mod_write(mod, SSITDR, *buf); + rsnd_mod_write(mod, SSITDR, (*buf) << shift); else - *buf =3D rsnd_mod_read(mod, SSIRDR); + *buf =3D (rsnd_mod_read(mod, SSIRDR) >> shift); =20 elapsed =3D rsnd_dai_pointer_update(io, sizeof(*buf)); } --=20 2.14.1