From patchwork Thu Apr 21 12:54:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12821594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3709BC433F5 for ; Thu, 21 Apr 2022 12:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ausVzRM7BLf2XTYfbLkPIbMxcoOqAFhfBGzjyHHH5Ek=; b=1wJgSLld+yqdsR YNppfcOsZNOLZZjHaStTypV798mdHj62X7vcpLil3mAuUMZmWDU/Kosk8b6UYLhRvWevZrWtKytHa CUiM641elTVS9JUgJhrIJnCQxMWFRHsL3FLTUloD5o0gWMY17+n3qpdodKdCk6HKn7rK9FwJv5oIE AzWbnJKiQ0oFhuSaEAL30hOqhm4Cuik1ha1pW+8kwLIcIyb5zWseGFBGaX7jfrmBTlmTn9YNRddO8 LvfjYTaw/O7yWjVK3Eqt7hyhfnVpt6Xc2ZUlFISh15SgFrMwg8ZkkgeSwYiyq3JYGpN5mZ1Ups0pn dr3OBZa2IcpwGToysi1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhWKW-00DSXo-1X; Thu, 21 Apr 2022 12:54:40 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhWKS-00DSWK-NJ for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 12:54:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650545676; x=1682081676; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5fez7wr8uqc+IWPhOReqP+qP7BSjjeMLlqht5y+cQyI=; b=D9uR5GTdtLTTjM642CpcV3FNh7FmpwthfYIZjd2pK/LeHJXlTsVRTeCK n8pHbYxTNkp1a/qn/GZk0qUArCN5EBLPvZ8lKtXhoIuqqosd1ypl4xS6e KhFYa6Yb6aCb3hOaviJYrVGcw3HJaDHzWaoa8y/c/H6HMfeHp5hubAVKx utHf9IbIo9MChG5AQug7wvutccrit+kGFUY+62kH6i1FZK5m+dArxl7Hf Y9bgsa2BSPpRuDAG6A5CinrOUen3dS9u3EJ7xGaVlq8Mzk/cSWMjhBM2w SFT0AoAQTMReEpgy8dm7m+hqELd/YpD29yOuF1pnU0XSxNo4VkR+8nooy g==; X-IronPort-AV: E=Sophos;i="5.90,278,1643698800"; d="scan'208";a="156304300" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2022 05:54:24 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 21 Apr 2022 05:54:24 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 21 Apr 2022 05:54:21 -0700 From: Codrin Ciubotariu To: , , CC: , , , , , Codrin Ciubotariu Subject: [PATCH 2/2] ASoC: atmel: mchp-pdmc: set prepare_slave_config Date: Thu, 21 Apr 2022 15:54:03 +0300 Message-ID: <20220421125403.2180824-2-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220421125403.2180824-1-codrin.ciubotariu@microchip.com> References: <20220421125403.2180824-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_055436_871364_F6165EB3 X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since a pointer to struct snd_dmaengine_pcm_config is passed, snd_dmaengine_pcm_prepare_slave_config() is no longer called unless it's explicitly set in prepare_slave_config. Fixes: 50291652af52 ("ASoC: atmel: mchp-pdmc: add PDMC driver") Suggested-by: Sascha Hauer Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-pdmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index 1a7802fbf23c1..a3856c73e2214 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -966,6 +966,7 @@ static int mchp_pdmc_process(struct snd_pcm_substream *substream, static struct snd_dmaengine_pcm_config mchp_pdmc_config = { .process = mchp_pdmc_process, + .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, }; static int mchp_pdmc_probe(struct platform_device *pdev)