Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2745883imm; Sun, 29 Jul 2018 02:22:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfK9FNFqPeO73peKZjtEmPtgMwhlUbmsMSrnTVV5v3RGM+PK4BD3zJNZC4hYPiEWiowNKlH X-Received: by 2002:a62:828a:: with SMTP id w132-v6mr13504178pfd.121.1532856147067; Sun, 29 Jul 2018 02:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532856147; cv=none; d=google.com; s=arc-20160816; b=RNHmd8J5izEb2NxJtEdwbBJs/wq6OEZHLOWOTwP/bDdRNN9/DKjLltMKAOOWmx9IHp yAw6MuVWfzc2YJufT5zV9SFuKG76U4KYx2l3mKcLXaeN9qXSDhD4qTDOsCwXNmnFyFz5 LfGyX3kKG7eJJhZg5f3We1MwUXxGBRxHkhQGIEjkarxYlwemJywaOxCL6JbA25xyNkD6 UxgIn9HxmlLNQXKt9menQGc0rheK8mr2BdcaA0k4wu9+565ql8XCflia582kbBg/bkau l/8mNtsX/8nKdw95m90RA5Qfwtfc4pTLNAeYdID0vDrIImiqJdamGZ56RdetP61bLitX V2FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:arc-authentication-results; bh=pQGdKT+JOWhy/0L8TXD3WYAECGPLOkCwadHG0g0WcLc=; b=uvsPwhf0+Utt4wrHWTOjrDWlSV3AgZ4dcsq5vXQfsHaifTZnsJMkz/nsdm0w6xtvz0 m/rOpLicgaFv0DCgrRp7IhWpwWJykLXriZKoJ23fK8BKs54UgOmcMfsWiGmvQDP+eYiP K2DSgqRkuQvDxwLzswuHy2jTrOXlXNvoN2eVmFaAnwx5XNzSpc3w5sgaHZjfth5ZKklo ej+DIVE64eCOOgtLjAZrycI7mmqYGe+11mt6iCrzvQr42Vv3qJ9uZhVwQuw4z+XvJs8e yLWWVRO+GsXlkWeY8bInhj6F/oFB10DuvJbMmjalEx8U2aiwhziQojBIl6jCg38u/UW8 tuuA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127-v6si7693617pgb.200.2018.07.29.02.22.12; Sun, 29 Jul 2018 02:22:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbeG2KvO (ORCPT + 99 others); Sun, 29 Jul 2018 06:51:14 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:46583 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbeG2KvO (ORCPT ); Sun, 29 Jul 2018 06:51:14 -0400 Received: from [192.168.122.135] (helo=_) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fjht5-0007jj-1O; Sun, 29 Jul 2018 10:21:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 29 Jul 2018 10:21:14 +0100 From: Ben Dooks To: kbuild test robot Cc: Jorge Sanjuan , linux-kernel@lists.codethink.co.uk, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, jonathanh@nvidia.com, broonie@kernel.org, thierry.reding@gmail.com, kbuild-all@01.org, linux-tegra@vger.kernel.org Subject: Re: [Linux-kernel] [PATCH 3/4] ASoC: tegra: Allow 32-bit and 24-bit samples In-Reply-To: <201807290647.ybnC01Ii%fengguang.wu@intel.com> References: <20180727125931.9794-4-jorge.sanjuan@codethink.co.uk> <201807290647.ybnC01Ii%fengguang.wu@intel.com> Message-ID: <0e990da63c37ef2bc0babc9ee96ef798@codethink.co.uk> X-Sender: ben.dooks@codethink.co.uk User-Agent: Roundcube Webmail/1.1.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-07-28 23:28, kbuild test robot wrote: > Hi Edward, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on tegra/for-next] > [also build test ERROR on v4.18-rc6 next-20180727] > [if your patch is applied to the wrong git tree, please drop us a note > to help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Jorge-Sanjuan/ASoC-Tegra30-TDM-support/20180728-163720 > base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git > for-next > config: arm-multi_v7_defconfig (attached as .config) > compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 > reproduce: > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > GCC_VERSION=7.2.0 make.cross ARCH=arm > > Note: the > linux-review/Jorge-Sanjuan/ASoC-Tegra30-TDM-support/20180728-163720 > HEAD 14bbc96df0fa027f7bc057eb2da8181baff4e22c builds fine. > It only hurts bisectibility. > > All errors (new ones prefixed by >>): > > sound/soc/tegra/tegra30_i2s.c: In function 'tegra30_i2s_hw_params': >>> sound/soc/tegra/tegra30_i2s.c:155:3: error: 'audio_bits' undeclared >>> (first use in this function); did you mean 'audit_names'? > audio_bits = TEGRA30_AUDIOCIF_BITS_24; > ^~~~~~~~~~ > audit_names > sound/soc/tegra/tegra30_i2s.c:155:3: note: each undeclared > identifier is reported only once for each function it appears in > > vim +155 sound/soc/tegra/tegra30_i2s.c > > 133 > 134 static int tegra30_i2s_hw_params(struct snd_pcm_substream > *substream, > 135 struct snd_pcm_hw_params *params, > 136 struct snd_soc_dai *dai) > 137 { > 138 struct device *dev = dai->dev; > 139 struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai); > 140 unsigned int mask, val, reg; > 141 int ret, sample_size, srate, i2sclock, bitcnt; > 142 struct tegra30_ahub_cif_conf cif_conf; > 143 > 144 if (params_channels(params) != 2) > 145 return -EINVAL; > 146 > 147 mask = TEGRA30_I2S_CTRL_BIT_SIZE_MASK; > 148 switch (params_format(params)) { > 149 case SNDRV_PCM_FORMAT_S16_LE: > 150 val = TEGRA30_I2S_CTRL_BIT_SIZE_16; > 151 sample_size = 16; > 152 break; > 153 case SNDRV_PCM_FORMAT_S24_LE: > 154 val = TEGRA30_I2S_CTRL_BIT_SIZE_24; > > 155 audio_bits = TEGRA30_AUDIOCIF_BITS_24; > 156 sample_size = 24; > 157 break; > 158 case SNDRV_PCM_FORMAT_S32_LE: > 159 val = TEGRA30_I2S_CTRL_BIT_SIZE_32; > 160 sample_size = 32; > 161 break; > 162 default: > 163 return -EINVAL; > 164 } > looks like we failed to merge in a fix from later in the internal series we have. jorge: can we get the channel fix from here into this patch and resubmit? commit dd439f5f0b748eba43da7f18cabec8850dcd18b1 Author: Edward Cragg Date: Thu Sep 15 17:01:49 2016 +0100 ASoC: tegra: i2s: Add support for more than 2 channels