From patchwork Mon Aug 12 09:52:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 11089603 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EB4514F7 for ; Mon, 12 Aug 2019 10:32:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C1C826E96 for ; Mon, 12 Aug 2019 10:32:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5082327E01; Mon, 12 Aug 2019 10:32:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 75C7626E96 for ; Mon, 12 Aug 2019 10:32:49 +0000 (UTC) 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 5AA43166A; Mon, 12 Aug 2019 11:53:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5AA43166A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1565603653; bh=jJACdRkg+KfBHjWmKbVvJvgK+ckIrw0/wPJ24pfJs0c=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=TIOx29DHqaGIg2VKKSeuF3W8mpPIjhiBTJ/5ApEntjRWd5EqOEYdhynm4xujYYTNO +2fD+xYmOJ7pEkY97yBtfUXxojuGFI3YZQU7R27Jaw3cKs+dhXiRsqcJ9uzPVkaap+ 8TjUX+0QD7VS1ajA15zoMJmTCSHmlEgHfNQ704Qc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7E1E2F8048D; Mon, 12 Aug 2019 11:52:28 +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 42223F80214; Mon, 12 Aug 2019 11:52:25 +0200 (CEST) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 B785FF801EB for ; Mon, 12 Aug 2019 11:52:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B785FF801EB Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="ZXCv7TzR" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7C9qGKm114315; Mon, 12 Aug 2019 04:52:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1565603536; bh=YGITip7GjyHjocLrS7YJyZGxRBGEnTaB1pLAKOMDQJA=; h=From:To:CC:Subject:Date; b=ZXCv7TzRA//7ltmBJoRalAmA+s+C/bZKXykKmuQrEDKVXq1ZWR+zOQvH3YpRLpuea 9Nt27ECQ+kayhJcXqw8iqtGyCWjRQSqAXRjcsrCi6l/LjVuEUlM1FgkdMmn+ZlcQlQ U2+zKAX0ggiVG0tDBEOm0+IrbvxcSYujd4iWtOEw= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7C9qG47106100 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Aug 2019 04:52:16 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 12 Aug 2019 04:52:15 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) 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; Mon, 12 Aug 2019 04:52:15 -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 x7C9qDhP045058; Mon, 12 Aug 2019 04:52:14 -0500 From: Peter Ujfalusi To: , Date: Mon, 12 Aug 2019 12:52:24 +0300 Message-ID: <20190812095226.18870-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.22.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 0/2] ASoC: pcm3168a: DAC/ADC independence and right_j fix 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" X-Virus-Scanned: ClamAV using ClamSMTP Hi, The first patch makes sure that the DAC and ADC side of the codec can be used and configured independently from each other. The second patch allows the reconfiguration of tdm_slots and slot_width. It is needed in case the codec is configured as slave and right_j whisch is the only mode when it can support 16 and 24 bit audio, but 16 bit requires 16 slot_width while 24 bit can use 48 or 32 slot_width. The codec driver must allow runtime reconfiguration of the tdm_slots and slot_width for this purpose. Regards, Peter --- Peter Ujfalusi (2): ASoC: pcm3168a: Retain the independence of DAC and ADC side of the codec ASoC: pcm3168a: Allow reconfiguration of tdm_slots and slot_width sound/soc/codecs/pcm3168a.c | 129 ++++++++++++++---------------------- 1 file changed, 50 insertions(+), 79 deletions(-)