From patchwork Mon Dec 24 09:02:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Kumar X-Patchwork-Id: 10742157 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC98F13AD for ; Mon, 24 Dec 2018 09:38:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABA3B28A8E for ; Mon, 24 Dec 2018 09:38:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A029828E8F; Mon, 24 Dec 2018 09:38:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41FA628A8E for ; Mon, 24 Dec 2018 09:38:05 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8BCB6267A66; Mon, 24 Dec 2018 10:38:03 +0100 (CET) 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 595C7267A6E; Mon, 24 Dec 2018 10:38:00 +0100 (CET) Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by alsa0.perex.cz (Postfix) with ESMTP id 3515B2678D5 for ; Mon, 24 Dec 2018 10:37:57 +0100 (CET) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2F3636085F; Mon, 24 Dec 2018 09:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1545642147; bh=ARkw0UyVva+HQF45urB7dPlLF1OqEeTe9mZXYxZFc/s=; h=From:To:Cc:Subject:Date:From; b=If4Fki+fk7I0Ca4u9xxgrwwMAo9oKH18Um1C0cvgZcR41eRguq5NLF5b19zhdMlew bH8kcQCQyo2IDFkgGqGzXHYTd1ooQAuOWGnj49jfXubxyLqwok9HL18vlQG79DGUQy 1a8GjRKkGmlAUHJXN1e8ZSuiJb4tMaDlzRcB+oY0= Received: from rohkumar-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rohitkr@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 37894602CB; Mon, 24 Dec 2018 09:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1545642146; bh=ARkw0UyVva+HQF45urB7dPlLF1OqEeTe9mZXYxZFc/s=; h=From:To:Cc:Subject:Date:From; b=XaxtLHME6Ls6tj/f0R3xO6L8w3UAjt9gCmtQp8FmEzvSxBaVxwWvIp5WfO3g97bup 3B3/jlLgIB3MqJT04ui2R9GPyvR3jj1kL5ydhxXvDtvA2Y6zhLI5imH2oxazCnbppY LiPykUhP8fzjnUBivPp10r6FXwYA4LdkGaZ54sog= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 37894602CB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rohitkr@codeaurora.org From: Rohit kumar To: plai@codeaurora.org, bgoswami@codeaurora.org, asishb@codeaurora.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, rohkumar@qti.qualcomm.com, srinivas.kandagatla@linaro.org Date: Mon, 24 Dec 2018 14:32:11 +0530 Message-Id: <1545642133-16120-1-git-send-email-rohitkr@codeaurora.org> X-Mailer: git-send-email 1.9.1 Cc: Rohit kumar Subject: [alsa-devel] [PATCH 0/2] ASoC: soc-core: add snd_soc_of_lookup_component() 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 X-Virus-Scanned: ClamAV using ClamSMTP Platform DAI component probe is not called if it is not present in component list during sound card registration. Add snd_soc_of_lookup_component() to get component info from device_node. This can be used by machine driver to make sure that card components are registered before calling snd_soc_register_card(). Ajit Pandey (2): ASoC: soc-core: add snd_soc_of_lookup_component() ASoC: qcom: defer probe if platform dai is not registered include/sound/soc.h | 1 + sound/soc/qcom/common.c | 9 +++++++++ sound/soc/soc-core.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+)