Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5196952ybe; Mon, 9 Sep 2019 23:21:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqysihjSA+cyAN8nWSOOytXLP9jeIvq/rHpLczTUr7DUkDo31Pglrb2nNJ8g0SypvFDmS8FH X-Received: by 2002:a05:6402:1606:: with SMTP id f6mr21460416edv.92.1568096471352; Mon, 09 Sep 2019 23:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568096471; cv=none; d=google.com; s=arc-20160816; b=UPL4liKwqiyrGOwEFivi+czcv1omPQjl+BmYWb96/QcUYqWzPyOKdLBgO6Nb9PO8/a vPbR1UiBO/+fAiqFNjIVdN4NZBvSWK4oaO3tgkk0ZLn9UfOSG8CZW7ONvRLtoQKjBpPy VN7+v+Da8qQEvgKXGnEBUrNoOyzjX4M9e9PBsZfPzy4CmBUHGyyjJFhiWYhUqCO3B8un 892vlD4iwh98eUVw2PRuaH9Y2kHJLPuhJbuJJuwVmApBd/ot6Aa/bl2NhoUFtqRzxcMi DFCU6AqJVHwe2DDF/njza4NNLfwAfx97KX/P5TDTDFo3miOXKpeWRKcQ5OgsdXJfnQy5 TwPQ== 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=E3azs1hVn5ybyTVGB0DwK0X5yX+rfxDbMRUleLk2Iqs=; b=JlQSixOkhy7UcYrihEGsVc1RVUmKr0+C2pGxC87Q1fCCysKxRdGQzyh6z3nq/iq+CF +BtyWi4pMp+gbLxrrFQcCop7Ze/8DDmPlKJfD1OouCJQj1J5mTCfGXG0fCLu36w1SNtv J1hUtaYA9kcZOpo+TzebE5uwJp90o8n2voxrpI6YbUXBuVBny6ag+rJnnlRumiKsMns/ vPhiU7Frs22uL4/yk7ClkrS0hlvCfTf+UZPb6ePeW1EOblWxkTKE/fWBuanh03Vk6PmR QRYpYkpJGCU0ICxUo5mp8TfrMrD03uDVZ3oCF6PMYXlsnFT0SwUTCUd7/u1YSgnJlpWq 6sZg== 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 d6si7985066edv.22.2019.09.09.23.20.45; Mon, 09 Sep 2019 23:21:11 -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 S1731024AbfIIKew (ORCPT + 99 others); Mon, 9 Sep 2019 06:34:52 -0400 Received: from inva021.nxp.com ([92.121.34.21]:34772 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730179AbfIIKeu (ORCPT ); Mon, 9 Sep 2019 06:34:50 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BB17A200148; Mon, 9 Sep 2019 12:34:49 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C12212001C3; Mon, 9 Sep 2019 12:34:44 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 60346402F3; Mon, 9 Sep 2019 18:34:38 +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 Subject: [PATCH 2/3] ASoC: fsl_asrc: update supported sample format Date: Mon, 9 Sep 2019 18:33:20 -0400 Message-Id: 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, so S20_3LE format should not be supported, it is word width is 20bit. 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