Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4122008pxb; Tue, 19 Apr 2022 17:45:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwogzaW0fabhalIWJ8g0SHRSrI9ly2OATkr3YRlIGiNgHd5fAbT4sEkUFjUcYSdVqpKm582 X-Received: by 2002:aa7:d049:0:b0:41d:8c82:1a61 with SMTP id n9-20020aa7d049000000b0041d8c821a61mr20242093edo.323.1650415544305; Tue, 19 Apr 2022 17:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650415544; cv=none; d=google.com; s=arc-20160816; b=rTDcDwLck6fpn/A/plqgXKv5ElCvZ6oTDmN0H70dO9FeFkhpw/uROXZ0N7LOkMk7Df KayZTBuamQ2bu157iMQZUAgtYY8HaST/zMPqKOxJPiurWDVivdTEOJJe/HSnZmKx+RQI fpCBus6uislmEa/JmO2oekGqFeVIH4rx7o6bsHQkzJHWtAuZ+nDY+Yd0pwErUkbGby5i F7UKvDGHHLPbY8SdFxHmiTnXzBeVRILId1VeDzpZrQBu9ltp3C7vumtpg2bBki+L9lPQ TIvwzgCYklhCLZfGpsE7X+ACYvxi4CGprZuH/aH9A/9dubSdCFzsIDbF8Hd0/HfbefkN hwRQ== 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=FEwok1lzjt/HO93wIkHzSCWrGpT3TbisaBs2ZCCYLc0=; b=ea3ijIq8SZ+WAEoKoVs+klqTThGjqkBELfD0zO7+FyP86etnXkcISIf0n+jlTStGia AG9BoOTXl5I4hMGHmcx6nbA1hKLtKjgcNX8QKqectNCKdGq3Z3mPraBKGIkwo2feOGoL 3iVSR2Do/M8QmAf7bsG0LIh5CcfEekP+R2kBuFuXKhn/ccADNetlL+P+Ye7z2TwgTkiY CqyueHuqwXCvowokGc/pwCMGYu86wtOVIH2xvG2F/YMLtUIk0saWF2NgRSlI5ioAgH2D jdn/NqL2dSuMayLoNT17Kj7SKKpK/qu4mNIVpuORdQu3mPloSVmi+4Skc+KPL4dQBt96 y/Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=x67D8AFH; 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 h1-20020a170906584100b006efdae095adsi612478ejs.954.2022.04.19.17.45.21; Tue, 19 Apr 2022 17:45:44 -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=x67D8AFH; 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 S1348208AbiDSNVz (ORCPT + 99 others); Tue, 19 Apr 2022 09:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238617AbiDSNVv (ORCPT ); Tue, 19 Apr 2022 09:21:51 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80391344FC; Tue, 19 Apr 2022 06:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650374349; x=1681910349; h=from:to:cc:subject:date:message-id:mime-version; bh=FEwok1lzjt/HO93wIkHzSCWrGpT3TbisaBs2ZCCYLc0=; b=x67D8AFHMemndeCBOdJuHzopTptr1WH+fOyvUfBDiIGp946j27+aQ6x5 IPlny3LTJoGREEhCXlz8IsxAeeH3pYeh9TAc1wIC9fs5m1GuZu8r19TaY IaqXitwyP5AZ3Zc92X45pvAk9ZSTXjz82Vsd4vck9Hrrhy5HEfHBmyL1z k=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 19 Apr 2022 06:19:08 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 06:19:07 -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 06:19:07 -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 06:19:01 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v2] ASoC: qcom: SC7280: Update machine driver startup, shutdown callbacks Date: Tue, 19 Apr 2022 18:48:49 +0530 Message-ID: <1650374329-7279-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 avoid sound card registration failure on other platforms. Without this change, platforms with WCD codec is failing to register sound card. Fixes: c5198db82d4c ("ASoC: qcom: Add driver support for ALC5682I-VS") Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- Changes Since V1: -- Update swith case in startup, shutdown callbacks for handling all dai id's -- Update commit message and add Fixes tag sound/soc/qcom/sc7280.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/sound/soc/qcom/sc7280.c b/sound/soc/qcom/sc7280.c index 4ef4034..834c081 100644 --- a/sound/soc/qcom/sc7280.c +++ b/sound/soc/qcom/sc7280.c @@ -291,13 +291,7 @@ static void sc7280_snd_shutdown(struct snd_pcm_substream *substream) SNDRV_PCM_STREAM_PLAYBACK); } break; - case MI2S_SECONDARY: - break; - case LPASS_DP_RX: - break; default: - dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, - cpu_dai->id); break; } } @@ -312,14 +306,8 @@ static int sc7280_snd_startup(struct snd_pcm_substream *substream) case MI2S_PRIMARY: ret = sc7280_rt5682_init(rtd); break; - case MI2S_SECONDARY: - break; - case LPASS_DP_RX: - break; default: - dev_err(rtd->dev, "%s: invalid dai id 0x%x\n", __func__, - cpu_dai->id); - return -EINVAL; + break; } return ret; } -- 2.7.4