Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1121656ybe; Thu, 19 Sep 2019 08:57:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy3mCL1h5wX0SmzVwV8PFvZjSW5E1xLJhrXgE9tPZ+1VIvDhvXha9ay+udWnghOvKykSjU X-Received: by 2002:a17:906:699:: with SMTP id u25mr9037617ejb.250.1568908679151; Thu, 19 Sep 2019 08:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568908679; cv=none; d=google.com; s=arc-20160816; b=lLiZbN7m802wuXiI8+gclSDUKr3HCm5D6lOUpEjS5bB4m+kKbf3rRecSySMbBIeBaE LwHGB08S2YAEG0gDrrc3PtxNPBGdVKTvtsJd1QS1K2NiTlM0QggPoDHcGMPEcG7LD5yh 6svBbaskZZmpmLdPz8vvtUrXejZwjLlkaEDpEXqalcgski4R/1sVvi2WtFwGgFh3EI67 Bf72+BInU2bXilQx6UUHfo1ACzlTl1G2xBiU/uUcSEW0lpbi4uo320qi18sP4JNY0HrB BThWez0JyFBxDgfJx9LEOo6tWBnaIQixyjSZ3Xu/sVjv8A1aLcPU7svLcCfcwTJg6CfP xtTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from; bh=Ll0cZE5tqxg/EZlavNEPdlEmhKLtqwNmbsUoJUSra5Y=; b=ymH7q1PG3iBZYeXNO2MaBETbl6jPUPxPKwbVMDZi/0l9qBwN3tr1crFJlqCGMyo2Yi F9eR62v0egipFsu6Re7Mkw+VxC3J0RgjyFFPbCrK39RMqfVJ1Cnqjsx61lyk6NR8DmmJ sezGDD8NbDxHKH8ifseO4ucG7jSeUk31iWpwnC+JIxUa0+ZUZnKotFHLuwMeD639KsUM rbNUO/jh4gbeiu3zsRX3c9MQ7GtpcfpQMXJswVonY8KBGamjeTLWLNILROCDONZBRhfg PHbQhLPQNPpLXZKXARm9W89xJ8Ofde2qprszlaTh4QD08Dt/Id8Os4tUbpt+i25pkxuE 7Tjw== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si5354796edp.17.2019.09.19.08.57.36; Thu, 19 Sep 2019 08:57:59 -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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390276AbfISMNh (ORCPT + 99 others); Thu, 19 Sep 2019 08:13:37 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45788 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387417AbfISMNS (ORCPT ); Thu, 19 Sep 2019 08:13:18 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CCCA71A03F0; Thu, 19 Sep 2019 14:13:16 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D4B471A0084; Thu, 19 Sep 2019 14:13:09 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8FF7C402E6; Thu, 19 Sep 2019 20:13:01 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, lars@metafoo.de Subject: [PATCH V3 2/4] ASoC: fsl_asrc: update supported sample format Date: Thu, 19 Sep 2019 20:11:40 +0800 Message-Id: <5811f393692a7668564fd4b9ef5708c1e3db8dc0.1568861098.git.shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ASRC support 24bit/16bit/8bit input width, which is data width, not slot width. For the S20_3LE format, the data with is 20bit, slot width is 24bit, if we set ASRMCR1n.IWD to be 24bits, the result is the volume is lower than expected, it likes 24bit data right shift 4 bits So replace S20_3LE with S24_3LE in supported list and add S8 format in TX supported list Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_asrc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 4d3804a1ea55..584badf956d2 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -624,7 +624,7 @@ static int fsl_asrc_dai_probe(struct snd_soc_dai *dai) #define FSL_ASRC_FORMATS (SNDRV_PCM_FMTBIT_S24_LE | \ SNDRV_PCM_FMTBIT_S16_LE | \ - SNDRV_PCM_FMTBIT_S20_3LE) + SNDRV_PCM_FMTBIT_S24_3LE) static struct snd_soc_dai_driver fsl_asrc_dai = { .probe = fsl_asrc_dai_probe, @@ -635,7 +635,8 @@ static struct snd_soc_dai_driver fsl_asrc_dai = { .rate_min = 5512, .rate_max = 192000, .rates = SNDRV_PCM_RATE_KNOT, - .formats = FSL_ASRC_FORMATS, + .formats = FSL_ASRC_FORMATS | + SNDRV_PCM_FMTBIT_S8, }, .capture = { .stream_name = "ASRC-Capture", -- 2.21.0