From patchwork Sun Nov 15 12:23:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Marinushkin X-Patchwork-Id: 324612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A50BAC2D0E4 for ; Sun, 15 Nov 2020 12:21:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A8ED22384 for ; Sun, 15 Nov 2020 12:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="a80RMa/L"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=birdec.com header.i=@birdec.com header.b="jIuvz2M+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A8ED22384 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=birdec.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 D22AD17CD; Sun, 15 Nov 2020 13:21:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D22AD17CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1605442914; bh=BiFzyyHX0cu8irIo44fgju/9AuV8VYo5DHXhVtYj+CY=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=a80RMa/LEC8Q0hQ1GKmpQU/PdtKT+vjyeAg3N4RkaRegeoCiJ6oPqaZKS3F4Qxyo6 svjG3tsOGJ/StHyqhoCgHejs5g2yaGMy3PMxmF1F31C5bKOKotaZwbDE5tS7vfos1b wRtkoc60rDoxnXj+l4j/C9GkBzZH0cjK5mcRdZF0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4120AF801ED; Sun, 15 Nov 2020 13:21:04 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 267E9F801F5; Sun, 15 Nov 2020 13:21:02 +0100 (CET) Received: from host.euro-space.net (host.euro-space.net [87.117.239.2]) (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 01D40F8010A for ; Sun, 15 Nov 2020 13:20:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 01D40F8010A Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=birdec.com header.i=@birdec.com header.b="jIuvz2M+" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=birdec.com; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version :Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XmHXTe7cxRnQuTBQKB4v6q2G6D8or4BNzeFn2Gmr0D4=; b=jIuvz2M+Emk4aaBpOiKGQP4kEd DCX4GjrN8wJVxuVQcfugu0I4LuvkJ/Rq+dY7TLFCy7x7I/8t8rATrrvr3YFjVSVveaOwP6EHDBKY6 Mdd77K4KlE8zIiWf10loXcZN7TKRC0v0ttLXKRQXzj6+oJILgA4DxvCTC2kEsYdH9+yxKlJv6b9bE gmtP3y1edcOAk0PElv7EtFUwuz8En0/JRSMAZ38TtOf/Pfao42IsRxHjKaL8BpAQlXaniBz/l0ErO 4loCDpTHCyaaQI9/ADnFF1o9it9qlfqa6/QecVYFWlMyRAweCF9Rng263R5eYvNm6WmY8WkPMDkDS pheH9LLQ==; Received: from dynamic-078-054-118-130.78.54.pool.telefonica.de ([78.54.118.130]:55232 helo=gentoo0.localdomain) by host.euro-space.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1keH1Y-000338-HQ; Sun, 15 Nov 2020 12:20:52 +0000 From: Kirill Marinushkin To: Mark Brown , Takashi Iwai , Liam Girdwood , Peter Ujfalusi Subject: [PATCH v3 0/4] ASoC: pcm512x: Patch series to set fmt from `set_fmt()` Date: Sun, 15 Nov 2020 13:23:02 +0100 Message-Id: <20201115122306.18164-1-kmarinushkin@birdec.com> X-Mailer: git-send-email 2.13.6 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.euro-space.net X-AntiAbuse: Original Domain - alsa-project.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - birdec.com X-Get-Message-Sender-Via: host.euro-space.net: authenticated_id: kmarinushkin@birdec.com X-Authenticated-Sender: host.euro-space.net: kmarinushkin@birdec.com X-Source: X-Source-Args: X-Source-Dir: Cc: Matthias Reichl , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Kuninori Morimoto , Kirill Marinushkin 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" Set format from `set_fmt()` func instead of `hw_params()`, plus supportive commits Kirill Marinushkin (4): ASoC: pcm512x: Fix not setting word length if DAIFMT_CBS_CFS ASoC: pcm512x: Rearrange operations in `hw_params()` ASoC: pcm512x: Move format check into `set_fmt()` ASoC: pcm512x: Add support for more data formats sound/soc/codecs/pcm512x.c | 134 ++++++++++++++++++++++++++++----------------- 1 file changed, 84 insertions(+), 50 deletions(-) Reviewed-by: Peter Ujfalusi