Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp369094ybc; Tue, 19 Nov 2019 02:45:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzELftfJocmHnjMxsR2A51rvusVVg99i+xcfnPO7gEtt4LTqBPNmUAXdw5jVsl73PESuNm6 X-Received: by 2002:a17:906:d795:: with SMTP id pj21mr35205295ejb.44.1574160342273; Tue, 19 Nov 2019 02:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574160342; cv=none; d=google.com; s=arc-20160816; b=nTb7oV+JeqZ/zCF+9cT4NRQ6tLWvKpc+KYrzxTWLs3ODiGRxOJ8LWT145unNlkH9Cl B7EbWlbE8nZjkG28+pHtcFtyDDYsLMuDsZOPTr3buSuoq5Ox3rX2Rp6g3cFmY6QaJQT1 zNO+ZA0oYeqiNf9AScQIJn7OGp3hpWeWnTh2FzictKDq/SPY1rXyvQJ2B20Axyk1/UHy 1b+uKhnU7VHr06s190ys2OUZPeL6xd9FuyUHYBQPJ6m4eG0pMsEzjgKS7PMX+fzGbW1M mojCz9k40/svxEo6nahn5aNvcULUHqqaVxRNnjqXXFeLLbKqHFMtcXPDfjAft3hBNna/ xpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5U//osoG6HStUHqGpmkPhVbyibRTSU8pr4L12sC9Jac=; b=Hy/Doa5AYZHw1OAXPtIULG3+c2R6YVO16Qu8fV1pjhrzNK3yWuifponbsgx+jHRYkQ BC1mZyRBJYyW5CUPvJTeWqxhap5MC8RANKR1wG70suFhomwEvtRqUk7kZQjJ1Dh8CaQK IsKlbPDAvM5z7U/gWZ4tY9Pg6ObZMcsayvX0xih+29iQgONsmSH5g1NPAEHyZ7aXGqcT acx51u9XMlEMI8ddXyOD4QJrHPoTOVspX1jlhnQsGG6u78L05nlTXwD3Z0pnYPwStZKS ujVb1k0cDHR+k73z6ucwzSc8XEvJ74UkoNuTUW7/C9ipERUSqDxTFMZbvxseVCUryFD6 JCXg== ARC-Authentication-Results: i=1; mx.google.com; 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 k17si3344033ejd.264.2019.11.19.02.45.13; Tue, 19 Nov 2019 02:45:42 -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; 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 S1726921AbfKSKnX (ORCPT + 99 others); Tue, 19 Nov 2019 05:43:23 -0500 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:49182 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfKSKnX (ORCPT ); Tue, 19 Nov 2019 05:43:23 -0500 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 757BE3C04C0; Tue, 19 Nov 2019 11:43:21 +0100 (CET) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id siZ-pYDAY8tK; Tue, 19 Nov 2019 11:43:15 +0100 (CET) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 62E023C0022; Tue, 19 Nov 2019 11:43:15 +0100 (CET) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.468.0; Tue, 19 Nov 2019 11:43:14 +0100 Date: Tue, 19 Nov 2019 11:43:12 +0100 From: Eugeniu Rosca To: Kuninori Morimoto CC: Eugeniu Rosca , Jiada Wang , Mark Brown , , , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Eugeniu Rosca , Nilkanth Ahirrao , Andrew Gabbasov Subject: Re: [PATCH] ASoC: rsnd: fix DALIGN register for SSIU Message-ID: <20191119104312.GA15556@vmlxhi-102.adit-jv.com> References: <20191118140126.23596-1-erosca@de.adit-jv.com> <8736ek7kx8.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <8736ek7kx8.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Mutt/1.12.1+40 (7f8642d4ee82) (2019-06-28) X-Originating-IP: [10.72.93.184] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Morimoto-san, On Tue, Nov 19, 2019 at 09:46:12AM +0900, Kuninori Morimoto wrote: [..] > Basically I have no objection. > But we can reuse dalign_values[0][x] value ? > > id = 0; > if ((snd_pcm_format_width(runtime->format) != 16) || > (mod != target)) { > inv = 0; > if (mod == ssiu)) > id = rsnd_mod_id_sub(mod); > /* Target mod needs inverted DALIGN when 16bit */ > } else { > inv = 1; > if (mod == ssiu) > id = rsnd_mod_id_sub(mod); > } > > return dalign_values[id][inv]; Thank you for your review comment. We will soon push a v2. -- Best Regards, Eugeniu