Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4301177pxb; Tue, 19 Apr 2022 23:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/1wgquQMD55mrEXgl1elgBpi9SxxScrqd4nk6l42tYs810EniaWnuo3yRorcB9yGqDhMx X-Received: by 2002:a63:2c10:0:b0:3a9:fb93:4858 with SMTP id s16-20020a632c10000000b003a9fb934858mr12060887pgs.262.1650436027122; Tue, 19 Apr 2022 23:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650436027; cv=none; d=google.com; s=arc-20160816; b=tjdNZvxj02dNlkp0hEJI+akNai2CqhjOhUpEwwHjhWlNVQTzHPROPLLSSboE2J5hq1 mJAZgx5lLWwBUZ2GON7+OvFOcyD0HN7llmmox6dpf8vQ4WtOVQnGTDFJXtV+5alQxCqd bW/Bsih44j4/HsvTW8smD16jecaLQ0g8zTc5lGv8GpJ7eRhCPNCQXTa9/hMP4QgDjzf9 OwRi+DcMGJ3I8+rzFtipNj7TpTvMMT87LyXCqaI4Dyb4ZGXRosTebFvp8NkJvbJ1U6Mq YDaxSsy0/XQ5YGt4meEs/NER+sOkNtAxXwV5sR+qi1XdP0mc6DN6zyghH6x3tIN2aZcn rMKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=O7ltANC2Z4ZUrUzcxO7rd/MTdeXiJHIdWVuveYrHpkE=; b=iwPm/7iwS0aZcEXGlSEyEjP2bJeS7cJ4/gR1eBclnLfVzN/B79P3RcFjtagRElelKb h4QJqXw51Q/ysYnwKyMRbAfI1BS7bWqobYaWfDEc/tsE1HczLxeqAHpKl11fW+/fow0r yPwoSiV+QcsNtvC7qucsqKb4Hbymw2FqNdy0cBx3B2l10wMjofEaNuKsCXbfdfvhDfBI WpXtlbOwtZLIzaVHrjnqew4vEydkLzxCmf6fRyxoKLEJH7fRSnG3s+KMHSL8daQMuZDe niFjHsF68nHWCu7B8azJwmlgtKtHPJYEM602WBw2UlWulwVoI24mlGCm1u5UhLWiP4uF ucyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=NofznVY3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw7-20020a17090b4d0700b001d2a904dad6si5504135pjb.19.2022.04.19.23.26.52; Tue, 19 Apr 2022 23:27:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=NofznVY3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243502AbiDSHUP (ORCPT + 99 others); Tue, 19 Apr 2022 03:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349245AbiDSHUN (ORCPT ); Tue, 19 Apr 2022 03:20:13 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4850331DF6; Tue, 19 Apr 2022 00:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650352650; x=1681888650; h=from:to:cc:subject:date:message-id:mime-version; bh=O7ltANC2Z4ZUrUzcxO7rd/MTdeXiJHIdWVuveYrHpkE=; b=NofznVY3Uuur+OS6FW+cwtVBkL6tF+HrgKPjwUZ0SWLlaskWI+KqVZtN 4qKcYypaIvZGWAg2JEPKBEMVyGVIyxXolEAzeJ2hN3Badk6c+KOnWLoB0 /Z58GU6cu1SW6tROaianGfOmLnFFDYbUdhQQ/t9nAmdBh/giAyRdm1tmc Q=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 19 Apr 2022 00:17:29 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 00:17:28 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 19 Apr 2022 00:17:27 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 19 Apr 2022 00:17:21 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH] ASoC: qcom: SC7280: Update machine driver startup, shutdown callbacks Date: Tue, 19 Apr 2022 12:46:59 +0530 Message-ID: <1650352619-17370-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update machine driver startup, shutdown callback functions to support codec DMA paths. Without this change, platforms with WCD codec is failing to register sound card. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- sound/soc/qcom/sc7280.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/qcom/sc7280.c b/sound/soc/qcom/sc7280.c index 4ef4034..d64df11 100644 --- a/sound/soc/qcom/sc7280.c +++ b/sound/soc/qcom/sc7280.c @@ -295,6 +295,10 @@ static void sc7280_snd_shutdown(struct snd_pcm_substream *substream) break; case LPASS_DP_RX: break; + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9: + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8: + case LPASS_CDC_DMA_VA_TX0 ... LPASS_CDC_DMA_VA_TX8: + break; default: dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); @@ -316,6 +320,10 @@ static int sc7280_snd_startup(struct snd_pcm_substream *substream) break; case LPASS_DP_RX: break; + case LPASS_CDC_DMA_RX0 ... LPASS_CDC_DMA_RX9: + case LPASS_CDC_DMA_TX0 ... LPASS_CDC_DMA_TX8: + case LPASS_CDC_DMA_VA_TX0 ... LPASS_CDC_DMA_VA_TX8: + break; default: dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, cpu_dai->id); -- 2.7.4