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=-7.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 E52E4C433ED for ; Fri, 2 Apr 2021 09:00:46 +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 2282F61105 for ; Fri, 2 Apr 2021 09:00:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2282F61105 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 C7AC816A4; Fri, 2 Apr 2021 10:59:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C7AC816A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1617354042; bh=Hw4urW311SjiyIPvsHR4cP0+5Hu42j07ddiHJKdo9Yk=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=vusswXHrKDMk3A1DKW5WAXSHtyoAgDmdQTZLLoZut2sodHTKDy3nrW4BBOBUI1KY6 DAKKzAcT8PGZnqpTugBcLofO8klvqG8RxUmB9iwx83FegOlfVC8vZCsmBbUDhA+Sjw 0efZP8AXFSBtAjmDqy7Q19zfkFiIilvPNWgmmmh0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4579CF800F5; Fri, 2 Apr 2021 10:59:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 40413F8016E; Fri, 2 Apr 2021 10:59:50 +0200 (CEST) Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C7083F800F5 for ; Fri, 2 Apr 2021 10:59:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C7083F800F5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="By3vlDiX" Received: by mail-pf1-x42c.google.com with SMTP id x26so3266759pfn.0 for ; Fri, 02 Apr 2021 01:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0rVACHbDkid1fDW/Of/8klaULkPRVDsEPB5Q/2pdAMo=; b=By3vlDiX92An/BBKnPT34ut+9iMCVjOHJdDiwttDnLAkEQdR/u2gN+i0ASEcMxfpYC BGhFmvmtnDEdh5rAq4c8cavYZ0P8fb0zC60gyVXJlWRgtqZ09JM6qaho1KJF1IPVIuHZ 3hrWnLZpvGOghv3GHew8NcSUVJ1ajxvQoqbBNCEhE+39gLUYuCpTJJgGI6Z/2A4HM/P9 uc0IHZOwxuMzrXzWfsIHyG5MFKOQSTTV05pzhYHZ/KLCtGK+k4Zc2OCCtBMW7/3jWRuM 04uW2Da8UPsxDsbgr4YCBYK0uGDOIsa0i1p5KAZ4Ra1htRd3QcFjsAECf2VAAsT8lfg1 IhUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0rVACHbDkid1fDW/Of/8klaULkPRVDsEPB5Q/2pdAMo=; b=iWnu2Lj0K99EYmYUVLykjD6U/jSKNyw2fVS8p4Rj0xvXQ9EVhmuy3W1RFXcl0ZHz+9 3MPABFvcXyDo9J6fVUjcAXLSFOm79ylvWRbF0A5z0tusSK0o9ZhMHwO77WRu6X5ueMBy /kSX9pfYWouBcoeRRDK13O4u6Hbk4cE/PQ98PVdYHn8L6/nWzQP59HJGVYZlDfAqAWKv n1OUQUqzrB0gLA+iHiAeUDLZYe02bJ0XxGFXz27PMjXUoolasZSHnoepSXu1iPRfBx1v DuSoLOQiIQjAbfuO0oU57dg3NS0BgDiAAwXf7ie3laiamwCA8+auBSQUBOlyV0j60P0u YNYg== X-Gm-Message-State: AOAM5304RXzF30HfGoS9JOYofu6Xh4dWRIfLIFk+iG4subXw/6db/WXm lKWMG+j5qFlI9svyEpBJxHE= X-Google-Smtp-Source: ABdhPJzU9Kv5zDQQqSqI86EpmslOOI5d80+OTNA0mKJjMD2Gb90rGupg/7tOeBifXKoIgHHcMgT3pg== X-Received: by 2002:aa7:9471:0:b029:1f2:3e6c:69e3 with SMTP id t17-20020aa794710000b02901f23e6c69e3mr11161443pfq.69.1617353982477; Fri, 02 Apr 2021 01:59:42 -0700 (PDT) Received: from Asurada-Nvidia (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id h6sm7726661pfh.13.2021.04.02.01.59.41 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Apr 2021 01:59:42 -0700 (PDT) Date: Fri, 2 Apr 2021 01:57:41 -0700 From: Nicolin Chen To: Alexander Shiyan Subject: Re: [PATCH] ASoC: fsl_esai: Fix TDM slot setup for I2S mode Message-ID: <20210402085741.GA11737@Asurada-Nvidia> References: <20210402081405.9892-1-shc_work@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210402081405.9892-1-shc_work@mail.ru> User-Agent: Mutt/1.9.4 (2018-02-28) Cc: alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , Fabio Estevam , Takashi Iwai , Liam Girdwood , Mark Brown , Shengjiu Wang 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" On Fri, Apr 02, 2021 at 11:14:05AM +0300, Alexander Shiyan wrote: > When using the driver in I2S TDM mode, the fsl_esai_startup() > function rewrites the number of slots previously set by the > fsl_esai_set_dai_tdm_slot() function to 2. > To fix this, let's use the saved slot count value or, if TDM > is not used and the number of slots is not set, the driver will use > the default value (2), which is set by fsl_esai_probe(). > > Signed-off-by: Alexander Shiyan Acked-by: Nicolin Chen