Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1827915imm; Mon, 3 Sep 2018 10:28:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFrLujrhl/1Zq1Ppcu63gqEGzv0ImEd8lpwER7QkjGncb+NLXo7mxXpdRlifu6tsUp7l8P X-Received: by 2002:a63:fd06:: with SMTP id d6-v6mr26827901pgh.348.1535995706262; Mon, 03 Sep 2018 10:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995706; cv=none; d=google.com; s=arc-20160816; b=sZW3oBT1eIbrJIR7YMoWsi/XtZC0o0IY2dfVAaSFUn2GFRJHJLlIMpCg+e2eST0IKZ ZIUYdDt+oi8B/YRz3Z4P5RQDUE2SFmxmUNCf/uaULU4iFiSdKS3P7KVHBIxGNoWTIS8u wmpLEu19vK/R+wMPbPSXjalLPNNAdhYvUAI7c+srR5lxg15/cr8Sh+s2OHq8+gEpEPoA bHnxFaX3d+BF0WDfTa1/xnGvv7/QRlus/R2GdhYptKAZy4AjWMLPNh4sC5P6rCiooOdE G0/ymm+YhO6N1yeEllsZ0dvjOmY5wAiWSYeWcclzLuUZdI+fhz4H1TWBue/ACtCoAoRo HdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=q7PJsCg/zW90kxQ6vk4ygOKAWTwWUdaot/IgFmCj1V8=; b=onwq6suqq9FeliLRBZPX4huTpi+9bP8Rp97/EYGfD7IWv1eZIUw53v3IGdb+UbzZjt zfybr6EiBjyG/qpb65bNdxsB5dCWXHEKoUC1O9yLAx3NHWsYqV7eU7sSCvccj6apWsOm Xh0SwkPB5esT4eqzHkFhLwRMUqJCT1a9Gbi4IQzQmIK3T7z5OngFvl2EnCWxCPB7SsQb vMG8Y+lDPkCL7atD5/N/g/yEmaeqqxxSXtCV1Toj72Ct7Ec1t9P3/sFxiedEglJOXYvo nLKqs4ZbZZTm+xkGdewhJiGfayp8jOnF4GI25kkQ6iHQfsneaMEqGkB7Ec+X5sK4y1AR VGtA== 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 s125-v6si20277756pfb.335.2018.09.03.10.28.11; Mon, 03 Sep 2018 10:28:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730863AbeICVrx (ORCPT + 99 others); Mon, 3 Sep 2018 17:47:53 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbeICVrx (ORCPT ); Mon, 3 Sep 2018 17:47:53 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9902CD36; Mon, 3 Sep 2018 17:26:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai , Mark Brown Subject: [PATCH 4.14 132/165] ASoC: zte: Fix incorrect PCM format bit usages Date: Mon, 3 Sep 2018 18:56:58 +0200 Message-Id: <20180903165702.178484877@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Iwai commit c889a45d229938a94b50aadb819def8bb11a6a54 upstream. zx-tdm driver sets the DAI driver definitions with the format bits wrongly set with SNDRV_PCM_FORMAT_*, instead of SNDRV_PCM_FMTBIT_*. This patch corrects the definitions. Spotted by a sparse warning: sound/soc/zte/zx-tdm.c:363:35: warning: restricted snd_pcm_format_t degrades to integer Fixes: 870e0ddc4345 ("ASoC: zx-tdm: add zte's tdm controller driver") Cc: Signed-off-by: Takashi Iwai Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/zte/zx-tdm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/zte/zx-tdm.c +++ b/sound/soc/zte/zx-tdm.c @@ -144,8 +144,8 @@ static void zx_tdm_rx_dma_en(struct zx_t #define ZX_TDM_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000) #define ZX_TDM_FMTBIT \ - (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FORMAT_MU_LAW | \ - SNDRV_PCM_FORMAT_A_LAW) + (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_MU_LAW | \ + SNDRV_PCM_FMTBIT_A_LAW) static int zx_tdm_dai_probe(struct snd_soc_dai *dai) {