From patchwork Tue Jun 18 05:29:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 167108 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3756616ilk; Mon, 17 Jun 2019 22:30:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqxygyuVLQ84EM2I2BIqMVVTGtJUtt68lqqjGbyxMqIubQ59Nly6vWpeD4pTuZ8LrHcX+1 X-Received: by 2002:a1c:e709:: with SMTP id e9mr1496280wmh.144.1560835810211; Mon, 17 Jun 2019 22:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560835810; cv=none; d=google.com; s=arc-20160816; b=rjCUJdiUHSDZ6+QuF3ztFAxpUWPcxqCll9bgO+26MVSbTzIJIJyflKMmEvmCv2CRgE OZZEvUclfwf0cBmvBMIUa+XHrDrs/zAm+N8FaV1/+Y8yhwnHI5MKt65PH4ynMOZCXOdi hy19tFNx9JmX3Eix6xLa3EVDzyhnAiCwCPR72RT5V+RFcFbH18MyTTfRDEh2EACIV+nW ARs+roXyF1uEEackDNDZ9CLocGFIYO7+7DMQvIbA4sEdLc0MWhuHddheaPfWvxRRKWCK EdwY/UEkV0w9tNWnPcsGB0JUTrl/FL2mxrmnXL/DGzUXl3fBgO6+1cIYbGyd2jSp6oXB m5lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:delivered-to:dkim-signature:dkim-filter; bh=BqL0Y2qk0FtDqC2agKwv73bi1+ktGdeN6fQtbnkanms=; b=gnwicTyPGFX2vsKctNq+DUNIHhtiVhpO2ZOwfyPixukJ8VLcRIzUiIiUTCd3Zid6qL F9dmu/flWKbqMeBxIjufik+yY+ESnpQOpVq1FWbFExSBUQEi67sFBF1Z8AxGUf0BavHk 7B3pH0BWvPLX0B/jeTwW3AqDRSDCzWrtAEaBspSpnm4LqSWIczGO9QNVbk6ShVz4Wzp3 Dll02KLK4dJRM3JexTCcaMbuVf20dQHfD+T3LLiEtDMYx+nRu0HmosMPTJ+UIQhJJo3l CaGh8dSHjv7jSRWgH2uoI11nAGye2c6H+zH93c7olioTNjmalqmFkiA5GnbTKHS/gU1q JBlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=eK4yyzNq; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mPvW2e6m; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id y6si1122794wrl.231.2019.06.17.22.30.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 22:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=eK4yyzNq; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mPvW2e6m; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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 5324916F7; Tue, 18 Jun 2019 07:29:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5324916F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1560835809; bh=qKGt6ovEO2iegOW3q+Z5Q69RLjXu578/8HbD84Rk6QU=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=eK4yyzNqcp47SaacEJtRaUv0X8q2gIhywtcb0eqAtGC5XakBqkoXZQCL9W7wkp6Tb sC8gFI2GSLFCw9VgxwYoVE8IsDcLKZQvgczTxGGTWG5c4vCkYDgYtINtkSuxmp8lI+ qs2p5NogkMXJ1m31jUBN9ijWFLv0I5ZB4QCUhW70= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D3CD7F896DB; Tue, 18 Jun 2019 07:29:18 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id CFB3BF896F4; Tue, 18 Jun 2019 07:29:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (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 E4B04F8075C for ; Tue, 18 Jun 2019 07:29:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E4B04F8075C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mPvW2e6m" Received: by mail-pf1-x444.google.com with SMTP id r7so6956347pfl.3 for ; Mon, 17 Jun 2019 22:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Lj4Or491uCz2tJJXb3WzbO2VXWNk3Hk7nTOtYQN43sI=; b=mPvW2e6mcV/CIqhidFpo+Yurn5TdvkXOW1QdaK3u5WTFGziti+wTCsJW/eOOr02fqG J9JT0PVET8S1CLVBiYeXo2sKcEPICn18rwWbomdjPf2FiLN4VjQzlUsjJufdGHsHnIl/ yucipCljbwALWRVvWM6KF4m8FqUC2+lBTG3jYhsyOODebLlB5k6xtqgnNbW6rZWsrHBN +ls1KOFsQeRhllGKvOrw9dfca9T45nBQEH7T4VCNFlpTSgvYvAJ3jh+83VBphd3ftRIL nZl+2bwQZIS7GAI/obVHxanKvqbfkrHlqkWTaG4cJGi3M4vUQGG4EWgtvcuI2qzN5EqR RdqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Lj4Or491uCz2tJJXb3WzbO2VXWNk3Hk7nTOtYQN43sI=; b=LPwAm1KWUWIBw9Wc3zKw1ETp4fMT3Ltcyrs+tvtdoprYvrp7sGRWGO6j4OcsS+8FE5 CNlfPKhV7Dn76F6PstVzphmi5m/y7ZMLothj3vtwoSZNoSOYDDFMV9hWmHKJGm6Y5zZ+ A6E3A33Ii+8A2zHRc5PcX9cqF5SCyTNyEH3SC/9LwuzBxAQPjP6RxuAeMAF/NPSYk8md 9sTrU1XrNkAqKSX8gmlMeJJ9RH8fbu7gJwRVNQWYs0bxrq+kz/Pg35/NW/r72dnk5TKs Fr+pmFFGLRnpfbA/1FQNGCJcl7sUQkqVcdFmByqZGq0acPx4TMQiLEB9rT5kPBo8+vtK oF4Q== X-Gm-Message-State: APjAAAV+cIhvPk0VNCdOsVioHOlp2Rg0pJn56ngk7vRpXQkwKmkSHySi RE61NHyozbOm9xhqiCoaE3HR8w== X-Received: by 2002:a17:90a:a385:: with SMTP id x5mr3088727pjp.76.1560835753055; Mon, 17 Jun 2019 22:29:13 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b6sm13477601pgd.5.2019.06.17.22.29.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 22:29:12 -0700 (PDT) From: Bjorn Andersson To: Patrick Lai , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Mon, 17 Jun 2019 22:29:09 -0700 Message-Id: <20190618052909.32586-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Cc: linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: qcom: common: Mark links as nonatomic 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The interface used to communicate with the DSP can sleep, so mark the links as nonatomic. This prevents various sleep while atomic errors when bringing up the audio interface. Suggested-by: Srinivas Kandagatla Signed-off-by: Bjorn Andersson --- sound/soc/qcom/common.c | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c index 97488b5cc515..2c7348ddbbb3 100644 --- a/sound/soc/qcom/common.c +++ b/sound/soc/qcom/common.c @@ -116,6 +116,7 @@ int qcom_snd_parse_of(struct snd_soc_card *card) goto err; } + link->nonatomic = 1; link->dpcm_playback = 1; link->dpcm_capture = 1; link->stream_name = link->name;