Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1336757rwd; Tue, 16 May 2023 15:54:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ceIlgt5i5JSnOvyh4lGUUnQDtJGncY26G2DYC4f0ECNM3Dt6YiPkZSJC0QkxFeiPNAON/ X-Received: by 2002:a17:902:dac9:b0:1ac:d03a:9702 with SMTP id q9-20020a170902dac900b001acd03a9702mr30395021plx.67.1684277677588; Tue, 16 May 2023 15:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684277677; cv=none; d=google.com; s=arc-20160816; b=emPP6kAe2LQTZYNcsd6fg+k3we+4dGh0AeXhEIa/tTbr+A3wJJF7vikeVSTuLMqxo4 4DQ4b9Su0Let1hFGYASB6c0c4ktGU/MOTTObjjSKVx2hHpaqCN/fqDhUEm+FsIVCSFPa nWgxb7beNRAL9S9JldC29lg41ZA9Cx63Ayua/m7Li2qKb0HRJuinNZilYKwtApqusxzS 4sex2cvujGF01uG7lo9/Rptyq5PFUIcsPjIC/b8TIkPJeD4UOqZFrVcWTtmVju5ob2sN 7uB9iVBXk9Hc0fv34JMt2VvAjvIMc/vKQnanYTEUm9PjAfBo26eUCiCcHAmaElgW2gvu XhJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MJGpY/NrMrg0JPSvmjgjr2tdaUCxwO0LhI4q74mpwfE=; b=oHmtNB8UE3qivZWPxmYg8TUqImvGTJ6U67CN2KMxekGeNmXXhnAUHQMimxj+wPBHhd OtrHpU11Gc7foD/RvU8DLcagWu3PC3cGe68V8/qH/6TKGpGPFcaFGkIcap4Ks0TAPtEP DwuWBR/nM3mJ2cFZ4xSjD2smKII2R4v5F3xPDic2aPllfkAq8ozifWn7DOe8w3dFq81H qIF52cy4M4bVP/obS/nbzwfPhN7DgV0UNOgRdW1dbeY0YuREjkpJ8UUJb+sI4Nyvm4tx 8rod4pKUH4xYpwVojQ3dLCjmGYJTXqfVWXS913dOSWB+EyYoovUSf3nTuklPwm4kjutQ bsiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="ska/yoAS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902b40500b001ae4b4527b3si1136450plr.290.2023.05.16.15.54.23; Tue, 16 May 2023 15:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="ska/yoAS"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjEPWha (ORCPT + 99 others); Tue, 16 May 2023 18:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbjEPWhK (ORCPT ); Tue, 16 May 2023 18:37:10 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84F36182; Tue, 16 May 2023 15:37:07 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-52c6f8ba7e3so13605808a12.3; Tue, 16 May 2023 15:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684276627; x=1686868627; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MJGpY/NrMrg0JPSvmjgjr2tdaUCxwO0LhI4q74mpwfE=; b=ska/yoAStgLqoC6IkwvPhKPiq7vXwb59GUYHSaIf8DtpCSLlwOU2aYHAo0+P+Re1AN XdEGGSOwLUK9aJJ/qgqkhxfk/cCLHHy7RUBItrWoWClEskoawObzfeLdKUN5Ac8lE/74 oTUOI8oscxXl8UCiwBmd0lVKStdoA3jxLWruQWGw3hmlT5YuNOKTVVQsIs1EIJZtMAIE su0MNU7RgNu5h4ImCfRd5HyTfFfr9jHslAQH9PFLzLN66JbAPR7PvWbJqodEwo6jm/5X p0YETctd9o3jsJTE5IEk9C9Qsvx1JcAM6GX8NYjDQn+/Zka0fAk+xtBRLGRqHv0NAm1i ndTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684276627; x=1686868627; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MJGpY/NrMrg0JPSvmjgjr2tdaUCxwO0LhI4q74mpwfE=; b=f8WkRj261eJcbafeJHl3UZP+ZzVS5smb4jIpz7IIX9LBZRMoPkm9dXj1p52KdF/W4m /W1di7KVTHhvIUbaCsqeHUaS2OQSWO5g3P4T+zh2kQTrZolD53phuS78p+6ryxtIx0MW aRlo6eTrZK+M1l7v7r1auIOpjWhZnOyiI3aVv7lBlQuxj4Xo+/NThNQ5u+bj1wEBqhDM /yvlRbDp92B8iESPCqImgRrM4qtauyQLcMZbMmEtoQtPU3ujAbbiYqvS9vX3eAPNnwUU MznNqVIiuz2ytXRnzk0w4oXX/UUeDiE+d7G0UpbnJSFZhwOhCSRsWMVyGqujXG+hUbO/ rhQw== X-Gm-Message-State: AC+VfDxt2NPTF3Ky+VAJoJ6uDmUamVkR8x8Zjp0F3Jslf1kRBOS1qUCk /gIRZP6uy73MLXzO8yjKnkgSaiKvD8c= X-Received: by 2002:a05:6a20:7f9d:b0:105:66a1:5d05 with SMTP id d29-20020a056a207f9d00b0010566a15d05mr15148395pzj.55.1684276627209; Tue, 16 May 2023 15:37:07 -0700 (PDT) Received: from ubuntu777.domain.name (36-228-97-28.dynamic-ip.hinet.net. [36.228.97.28]) by smtp.gmail.com with ESMTPSA id b20-20020aa78714000000b0062dbafced27sm11961983pfo.27.2023.05.16.15.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 15:37:06 -0700 (PDT) From: Min-Hua Chen To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Thierry Reding , Jonathan Hunter Cc: Min-Hua Chen , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: tegra: tegra210_adx: fix snd_pcm_format_t type Date: Wed, 17 May 2023 06:36:59 +0800 Message-Id: <20230516223700.185569-1-minhuadotchen@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org use snd_pcm_format_t instead of unsigned int to fix the following sparse warnings: sound/soc/tegra/tegra210_adx.c:125:14: sparse: warning: restricted snd_pcm_format_t degrades to integer sound/soc/tegra/tegra210_adx.c:128:14: sparse: warning: restricted snd_pcm_format_t degrades to integer sound/soc/tegra/tegra210_adx.c:131:14: sparse: warning: restricted snd_pcm_format_t degrades to integer Signed-off-by: Min-Hua Chen --- sound/soc/tegra/tegra210_adx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra210_adx.c b/sound/soc/tegra/tegra210_adx.c index 41117c1d61fb..bd0b10c70c4c 100644 --- a/sound/soc/tegra/tegra210_adx.c +++ b/sound/soc/tegra/tegra210_adx.c @@ -109,7 +109,7 @@ static int __maybe_unused tegra210_adx_runtime_resume(struct device *dev) static int tegra210_adx_set_audio_cif(struct snd_soc_dai *dai, unsigned int channels, - unsigned int format, + snd_pcm_format_t format, unsigned int reg) { struct tegra210_adx *adx = snd_soc_dai_get_drvdata(dai); -- 2.34.1