Message ID | 20191015090037.23271-1-peter.ujfalusi@ti.com |
---|---|
State | Accepted |
Commit | a35716a95655d8fc15042c9d574374eceb9daf3d |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5610931ill; Tue, 15 Oct 2019 02:00:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzSEgpRCTqMxXcuAPlHgfDXs206GAPOmJEx6oe0phSsg6Ll+cbBggFzfFV6COxZCFShmJM X-Received: by 2002:adf:fd0a:: with SMTP id e10mr27675352wrr.55.1571130043984; Tue, 15 Oct 2019 02:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571130043; cv=none; d=google.com; s=arc-20160816; b=DmqyxxYp5lxIjxdDnWSWjed9s8xR1i0UiNiBLNQljn+JqfCa8G7+EHI9Tjzqb2Icdy 6lqf2cHqPbDvuwUy2ZnbjHJJEt1osdawlxTSltsQVMo/Nz+cfbqcmoiM7nOl7Yb/SFrs iPXU0eoJey3vLVllyTzBdgKODsbN+DtQ5VP0eh8R9epdM9/MMLAgccWpndtXT2vKHSWg fJBZxpwWeVNzqKBX0krMB1STLcCa9jtfmyHBnWCXp9aOgrg11vZDEY4Sh0sSNlYbzZC8 87O/1++RqYfVdQqBVclOb1bVsSDTbtwPoA8DSSSIOUFCftAOMCRjVX3pCUePLgUrG1j8 61Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:dkim-filter :delivered-to:dkim-signature:dkim-filter; bh=VAoGnvbxINpvJ7nGNfRUk8lNL6oL9+zxB3HxgSJAcFk=; b=Ebjfj8GGAr7JAsYhWbQbdDxzJS4mJAGaugMZJ/a6IcSOyf7eV1rvXDS9T86zHF2cE3 biOOj5MQBZvO42lUE+REN18FATIk4fCL1RLdBa0r9HshZgf3l3RmXJXhxNMtpfM8uewQ iYDi1cgXlpU8JNTIdsnpglN09ivb+hXYz5c0CJChX0m/9sgq6rJ7nrmzXmXR3uBtehRX 5WGUhzQZ5GbUcfl5tTi2RUeo87gHz2jmbLKCxhqmBXSLzkT1TerqtJ/vwpHyqFIR25GE 9PRPZlo4ymyD+8fd8N7Om8tZM94M7WqBO92ZLolLIaBHPqleoFYOWsZKrdDJXVWXwHWK RoUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=KAx2aUOJ; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Lll18lPC; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id d187si17681274wmc.143.2019.10.15.02.00.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 02:00:43 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=KAx2aUOJ; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=Lll18lPC; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4FB0F1612; Tue, 15 Oct 2019 10:59:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4FB0F1612 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1571130043; bh=NNe1hGsu/8qt+a0L7ayroso/LcOb9Fv90f3VCzTwv0c=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=KAx2aUOJjY5jd39U6SKMVAMsRKPHX1tFpCdCW9JwYq9ax8t6MJXS8/jUoRUKec8LB UPVrGtTq9qCMrRRJou8X9rVJeYGWRbQvV5VisLTzoGT8CxRgj1aXvF4Tk31tERUlcK COUYg2zJjrZiliXQQTgXzhk67nDDbhnW3f+GfKgA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DD1E7F804A9; Tue, 15 Oct 2019 10:59:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 73373F804AA; Tue, 15 Oct 2019 10:59:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, PRX_BODY_78, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1B08EF80323 for <alsa-devel@alsa-project.org>; Tue, 15 Oct 2019 10:59:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1B08EF80323 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Lll18lPC" Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9F8xiRn083807; Tue, 15 Oct 2019 03:59:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571129984; bh=f1ITR7CSRPyNf71KMs3arKJkHvJEZfWwNeWAfwbU8Bw=; h=From:To:CC:Subject:Date; b=Lll18lPCr239iDGmuIiJ+h8WyxBmh6pxZOSvGkJmxY7Gfb1H9gE1nJvrezF6/MZBV NzyUuPvylekV8bzXXfkGn1hAe75/Y5HK1FtYovWYqIly61jsaLXjkIRgqiFDSwruV/ 0uWYQg4zyY1GBEde53LuLA1yuJe59MYVE2WWqHfo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9F8xhsD003496 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Oct 2019 03:59:43 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 15 Oct 2019 03:59:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 15 Oct 2019 03:59:42 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9F8xf1s029434; Tue, 15 Oct 2019 03:59:41 -0500 From: Peter Ujfalusi <peter.ujfalusi@ti.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com> Date: Tue, 15 Oct 2019 12:00:37 +0300 Message-ID: <20191015090037.23271-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: alsa-devel@alsa-project.org, kuninori.morimoto.gx@renesas.com Subject: [alsa-devel] [PATCH v2] ASoC: pcm3168a: Fix serial mode dependent format support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" <alsa-devel-bounces@alsa-project.org> |
Series |
[v2] ASoC: pcm3168a: Fix serial mode dependent format support
|
expand
|
diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c index 708dac27feff..313500ab36df 100644 --- a/sound/soc/codecs/pcm3168a.c +++ b/sound/soc/codecs/pcm3168a.c @@ -322,9 +322,6 @@ static void pcm3168a_update_fixup_pcm_stream(struct snd_soc_dai *dai) u64 formats = SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_LE; unsigned int channel_max = dai->id == PCM3168A_DAI_DAC ? 8 : 6; - if (!pcm3168a->io_params[dai->id].fmt) - return; - if (pcm3168a->io_params[dai->id].fmt == PCM3168A_FMT_RIGHT_J) { /* S16_LE is only supported in RIGHT_J mode */ formats |= SNDRV_PCM_FMTBIT_S16_LE;
fmt 0 is perfectly valid (PCM3168A_FMT_I2S). Remove the return in case fmt == 0. Fixes: ("ASoC: pcm3168a: Use fixup instead of constraint for channels and formats") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- Hi, Changes since v1: - Remove one extra blank line also Regards, Peter sound/soc/codecs/pcm3168a.c | 3 --- 1 file changed, 3 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel