From patchwork Fri Jul 13 15:36:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 141906 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp950940ljj; Fri, 13 Jul 2018 08:39:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpelwhEIHlB6yl+iz7mf9CLuZCGNhPkSI/HkDoMzpprtaeoJHLXf1t4Zgw3vX/W0peMJ/3Rp X-Received: by 2002:a5d:428a:: with SMTP id k10-v6mr5311581wrq.225.1531496366959; Fri, 13 Jul 2018 08:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531496366; cv=none; d=google.com; s=arc-20160816; b=D+yptNZugqFUoHCQTO7Jj50GqDjk1L3Rj2WXzsy+u+IdvtQB6hR0pE2roEyhHMGdfv nHW2gcWK/dCxjioDKRSvy8+rF78wCtYb6agqIAOLraeO44oaAIxE18auftbvVWB0dufh BXrm3/2cvoOdutvkaUWLGibzSmH9dtpn5GzgU5LPIi/2NLt6xSMZiY2UhZe1L09yKcCa kqVodh4OGn3dKSY4D6AM9yO+FhrExl09DnkrMberjw1PL+nh2fhWI0OB556bW8OBdMHz PMtxjFCzFInTK9mTVlj7lnXbv38YMqeXG1z/qny+iiBkT+M6W+PnZlXDiPxYpjUw3ur7 7few== 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:delivered-to:arc-authentication-results; bh=eNTa3cL/F8pM6kp4/5hkuXhbX5XlY3JUhWBcjF1cjJw=; b=TJpA4zQUIG8VRAZl8rpAwLcXKIy5s82P5yJumllstQxxTNlSgkWbRswSV7UvMhVvVQ 8ZqcIXr/3A3rQlcltjqHE4a5SwHSjdmlJEyXdB/tf3BXH2TdW8jN9aOBG8jQvGvrdy3u MyG/sCRpPTQzqgavsnin+i9zUjMLac0/KQnhJ1sSge6yxpAJxMdtSlX2gklD7+/S38Ra 3e0p8woOPr+LU5/Srwr+BsquM6I6nUETW48F3ENQCq8MP6AfgTPGbjsVx+C2kZY/uUH6 csaNIJGnxCb/2Qo1MTTNaZM0OqMpDGWKR6mv01wECEptzVj1Y9i/4SMQ7RCiw/JxZyMy kzsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="h/ZJ9Xxw"; 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 ESMTP id n18-v6si22269237wrw.308.2018.07.13.08.39.26; Fri, 13 Jul 2018 08:39:26 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="h/ZJ9Xxw"; 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 alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 93716267729; Fri, 13 Jul 2018 17:39:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 684F726772A; Fri, 13 Jul 2018 17:39:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by alsa0.perex.cz (Postfix) with ESMTP id 651F6267727 for ; Fri, 13 Jul 2018 17:39:21 +0200 (CEST) Received: by mail-wm0-f68.google.com with SMTP id 69-v6so9754865wmf.3 for ; Fri, 13 Jul 2018 08:39:21 -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=cKK0sp5xcDVw+DeKQ9QC8gIRM8ZcvvZ84rhkF+pNVfc=; b=h/ZJ9XxwkjgntGXLEZqNOOq/uFAlicm7sO2LvA4FfB70RMnL6XECZUH63QdSob+LXC 6mF82omv8Q5cAwlgLL+uojk/DBlg94u15ccTpZ1MoIfIkmz94GQ8tvK2fb7fNmp94EKt q6yuQHeaJJoyG1KgmDuMFiFnU2da29G2zINOU= 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=cKK0sp5xcDVw+DeKQ9QC8gIRM8ZcvvZ84rhkF+pNVfc=; b=pf2vSg8AyQlw7VPTBaVsVN3pk/3NQQQv4/ivapCF8dS6jqIULziaDBW+mwPFUltgDn tksVxPltlMaqavU1JnJJu+LaymZw9ZVKw2D++18BUgUpwNTfe3RKg00bH430/PLd49gW y07ILlvH3eXogXH5TtdzWuSJqrRxYTB3hGtEbg2CNeBboQno+QOt4I+hMH2lx5entXaP e6GmppYkAJ0XQ3R3Ah6hRXSZ6WNqekluH/DP9w6gV4Zu74pbY8ZlTlibJh6rnBlFTLe2 fSVeLOu9eH472x3s642oSkxYY9YcVFduGLt1ZsnAzzTo0AuZJUQUSSM0jH7X4D6QVbRA vBYg== X-Gm-Message-State: AOUpUlHYAg7IinbGDhDnOYBSYpHyOumWd+rJMFNZCE729brMk7VxW5gy OKVM6KSYyArobXWZqS4eUPegdg== X-Received: by 2002:a1c:dc41:: with SMTP id t62-v6mr4391694wmg.42.1531496361040; Fri, 13 Jul 2018 08:39:21 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 63-v6sm4840902wmo.22.2018.07.13.08.39.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Jul 2018 08:39:20 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, lgirdwood@gmail.com, alsa-devel@alsa-project.org Date: Fri, 13 Jul 2018 16:36:27 +0100 Message-Id: <20180713153632.32511-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 Cc: bgoswami@codeaurora.org, linux-kernel@vger.kernel.org, tiwai@suse.com, vkoul@kernel.org, rohitkr@codeaurora.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v2 0/5] ASoC: core: add support to card re-bind using component framework X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org During discussion regarding card re-binding when components unregister and register back at https://lkml.org/lkml/2018/7/9/785 it was suggested that component framework can be added into core to provide this feature. With this new changes the card will re-bind once the dependent component re-registers after unregistering. This works based on the match done from component name using component framework. I have tested this patch with qdsp start-stop and module-load-unload usecase for more than 10000 times in loop on Qcom platforms. Thanks, srini Changes since v1: - Added new flag to enable/disable auto bind at card level, It is useful if machine driver/module is really removed/unloaded. Also to help cleanup the master component. Without this we will endup with a memory leak if the machine driver and memory associated with card are removed. - removed unregister from unbind callback. - updated match function as suggested by Vinod. - Added qdsp6 cleanup patches to this series. Srinivas Kandagatla (5): ASoC: core: add support to card re-bind using component framework ASoC: qdsp6: q6afe-dai: remove component fw related code ASoC: qdsp6: q6asm-dai: remove component framework related code ASoC: qdsp6: q6routing: remove component framework related code ASoC: qcom: apq8096: remove component framework related code include/sound/soc.h | 7 ++++ sound/soc/qcom/apq8096.c | 75 ++++------------------------------------ sound/soc/qcom/qdsp6/q6afe-dai.c | 34 +++--------------- sound/soc/qcom/qdsp6/q6asm-dai.c | 35 +++---------------- sound/soc/qcom/qdsp6/q6routing.c | 32 ++++------------- sound/soc/soc-core.c | 62 +++++++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+), 156 deletions(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel