From patchwork Tue Oct 15 08:52:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 176377 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5604230ill; Tue, 15 Oct 2019 01:52:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmyyixvNIh3ZFcuIgi4JNxttjuqDdrqtNyo+waalm3+j6KxKbOzv0Ui8sT8akGCFN582Hn X-Received: by 2002:a5d:488f:: with SMTP id g15mr16345261wrq.9.1571129565056; Tue, 15 Oct 2019 01:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571129565; cv=none; d=google.com; s=arc-20160816; b=EhcMnHjxoAXhzPWMlUxJII+5VvBFxvI6YOZ1Wx98VNy7Onx2q+gF2SQrC5LStp8d2s cgv1s4tAbMpFk0FpayUgmSgS40DkXhCta7khALU5TTCatNnBDkdcpugnfKeLy8O8kFKU RBtsfa61bIvGQ7lqCijU+oMJYp6FfUyOORRQb0yW++c97ZPPI0RdsifVae+rAB96QDiX XROYGvyebjw6z6ZRs8s/YA6n5veQZqfx4hzw5qcwqGpkdHdxwmh7t0jxsWhgNbuGDn0D Sl38w32qzlXolvzE0qd/tNiCs+1WtxTybX08TV2xLeAS2ihQDdQGWJKjE61aFtskXZGZ K7Kw== 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=A84qJTtt8mwdWlVn9b2oeHQThZ6vtJmruqXoXZzud9k=; b=YviWk1AiAMcymBdlg+rrDoK3VEGaN4dCt5njFFWR8gOC7qTZbsXIjSFPp3iGZkL/NC +Q5ArOTkekrq8lOILgAz8CdEEbdZYjSDcrl3Mr76oJOtUdb6HYy6dvmPIiNwr7zrp1VY H+NxgucTqLQlA7fsfD5YyjY3BEEGw8W9aaCI3tF7z+ahe6CcLnlvfUWh6iOIu4q4tDLa 8cJ9yLBuSvH+erIzbbFNURyKMUXOHsNxsXc2ugMDcQiy29XIRItLQsvwGZQRV5XUikJS 5l9LCAnIOlNbpdH58ZgJNMfedM5YpNJVFrifUjE+qZBhIGoNmQCoW9r8NXJsPMvUzKhK RklA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=ftGcJqq6; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=lcPOdWO8; 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: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id e21si9913065wme.69.2019.10.15.01.52.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 01:52:45 -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=ftGcJqq6; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=lcPOdWO8; 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 1BEBD850; Tue, 15 Oct 2019 10:51:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1BEBD850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1571129564; bh=54SH0nQsz/lpJDPdhsEY0CAnmCjgWuMVhe2h4GiK4Dg=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ftGcJqq6ZbM7S0OdDUuBOQbAVwltuGEQLvkIPOeWaF0YZjd+ubzyPQvt3Q/I8rbPY eFTU0uLtGnglgTe669E+cISIWp3sz9tZn+opkcT4uH6iJqb1iRtUpsdBjxx/7bFiS+ LuP4lpfTHjQGdj99zvwYkN9mNDhV7orm+k/XIj3U= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7D6B1F804A9; Tue, 15 Oct 2019 10:51:53 +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 5BB0CF804AA; Tue, 15 Oct 2019 10:51:52 +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 lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 0D5AFF80323 for ; Tue, 15 Oct 2019 10:51:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0D5AFF80323 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="lcPOdWO8" Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9F8pkQ5047957; Tue, 15 Oct 2019 03:51:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571129506; bh=axQVEWqT+D0hSCPpCuSK8EQtNwRDZI97d+FAeKlFG9A=; h=From:To:CC:Subject:Date; b=lcPOdWO86ty38K5AZ2n0NBUic34vExh/6f4zRpiRyM/93jajZ5RewF5P21kE3S58J gTW7JbjU6JMFxalauH6tsBzzQ8a5NPwy0NdTaaKdGOKR5bwGFgszS9Xf6BfMDK6N8e vjra6JHb8FkDxJVIYUv9c2RbqBInS8JDNhIB0SIM= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9F8pkoa128019; Tue, 15 Oct 2019 03:51:46 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) 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:51:39 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE106.ent.ti.com (157.170.170.36) 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:51:45 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9F8phjc047415; Tue, 15 Oct 2019 03:51:44 -0500 From: Peter Ujfalusi To: , Date: Tue, 15 Oct 2019 11:52:40 +0300 Message-ID: <20191015085240.21887-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] 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 Signed-off-by: Peter Ujfalusi --- sound/soc/codecs/pcm3168a.c | 2 -- 1 file changed, 2 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 diff --git a/sound/soc/codecs/pcm3168a.c b/sound/soc/codecs/pcm3168a.c index 708dac27feff..df8395b361d4 100644 --- a/sound/soc/codecs/pcm3168a.c +++ b/sound/soc/codecs/pcm3168a.c @@ -322,8 +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 */