From patchwork Tue Jun 26 09:20:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139926 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5006884lji; Tue, 26 Jun 2018 02:23:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf877KrGdCGtB07wE+B83cv/+UGe62ntAz1EyHTixoHremVY+HTbJ/Oyg4FO3IeS0ml2ECT X-Received: by 2002:a1c:ad09:: with SMTP id w9-v6mr990439wme.95.1530005017305; Tue, 26 Jun 2018 02:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530005017; cv=none; d=google.com; s=arc-20160816; b=L4H9Q84FX4j3s6ZB7mnrh8nAFdDOeqcPzj330eJBhD1SJnjeaKrmKfvqNYs4qbj9Mg su26G55oynl6Ch9HkbEis/USUq0/4o3FKUEpEaXMkfijM89kr7A1scJqKKIDUJRG/AIL DinyocDb6Id2EqDz/WhVxQ64NPezvnRMi8j4Q0OA/9dzLKVJjwRV94quZHRsQqiN0vY9 ZuTqFQLMAk673IQoJ2vxA7l/XuOuL1cev2FN+ls9Dt9OdOGJdgCt44eT6OUPjjfBqgs9 jWWs0kgg/tiuA05mqSVou6dcNYrqWl9NDrFtVfo4cyw8DpoFaoV0DHrP08FLv7U9VGDK cR9A== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=CV8PH+3WnlgbWpdAlTF4y2CHzQYWgopRCagmvtPxfjA=; b=BI9FnRyD7DX2UeNbNedyFC46N5A0DBk5sJM+2E9hMYSM0oHpeHsoG9utNqjcOwX9vt icwit/oCitx00D1AAayKWldpcRHqFJYpR5ceksbOtmAkIJSvtlSWquaiS5W9jKGGHsbZ JAvwv92brMFzM/9S/pgniis7dIu15WA17RB+c1ud66Rt3W9ei4z4FlMsVDngrkEm57aZ iDU0JWUPT8AnUOwFhCE1DLVfaiBCzIpzuBjfYFLgGhJjUm8flNqubbkwRI0vb92DbQC2 ZglAQzreAQbPMukh6DJmQSDybkfCrawb4smt26VhHMe7dG0vHh0lSl9/2FZ2rYPrivib jPFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ePWo9yuV; 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 x185-v6si1389131wmx.69.2018.06.26.02.23.37; Tue, 26 Jun 2018 02:23:37 -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=ePWo9yuV; 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 80349267892; Tue, 26 Jun 2018 11:22:45 +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 EF62826788E; Tue, 26 Jun 2018 11:22:35 +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-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by alsa0.perex.cz (Postfix) with ESMTP id 8B1EB267889 for ; Tue, 26 Jun 2018 11:22:33 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id x6-v6so1024545wmc.3 for ; Tue, 26 Jun 2018 02:22:33 -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:in-reply-to:references; bh=IdXa8XV5jspUkJyntVmzVAz5Mc3ePJihh8ETQaG1HXM=; b=ePWo9yuVO/2z1B/h+W3Er1GYoaNz996t3L70NG7cvpoOr9gUnDnpyHFVrg592zarqL tr3NZoT90g+YJpKeVg/VCIyZ5jqw9PaDPZXwFnjepjhZHNpWDlsw/LMhvLOgZFlN9GBb 0DXSEUm3X2S7LkAFVRvRSSP5aVvddW4J2s8uM= 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:in-reply-to :references; bh=IdXa8XV5jspUkJyntVmzVAz5Mc3ePJihh8ETQaG1HXM=; b=HpPhlkQsTpuUPxfkDcLSgOxBFGG1MncUjEPPjdI9BGmA3kgsO/CU8eq8zhaak24bY2 effs6v2oc7NSvlxRGjbN92emmDGUjVcjEXVt8toOSbfolLHp+qr8sLu0zL/7wpvIATI6 9K9Vhk4SUpAzVaEqoXfjrzQ/+0aTvzZwK/plOPfv5C0OHy7NHLBn9EE7o5Qn3xl5b4l3 vNe221IuvE1gKEoc+Tv/SHmyEjWOWh1Pd57Z8qReQZq6f53jkqUrkZA93HBextybbavD GFL2If2KrouEcEZPRAYIINZYxFSnV4DbAFIHguFA4JiqPD6e09Wb1rMNvIa1KYzW1Vrx sQmw== X-Gm-Message-State: APt69E0CExOr+xiuMkTzZ152edRBIsm8Chq5cjHhxMSPZyYF/WmKfYAX J2iAcdjYdqEgPtvOMeRbxPJiyg== X-Received: by 2002:a1c:c7c3:: with SMTP id x186-v6mr976651wmf.39.1530004953283; Tue, 26 Jun 2018 02:22:33 -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 x5-v6sm1438456wrr.3.2018.06.26.02.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 Jun 2018 02:22:32 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, robh+dt@kernel.org, alsa-devel@alsa-project.org Date: Tue, 26 Jun 2018 10:20:13 +0100 Message-Id: <20180626092016.9296-10-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180626092016.9296-1-srinivas.kandagatla@linaro.org> References: <20180626092016.9296-1-srinivas.kandagatla@linaro.org> Cc: devicetree@vger.kernel.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, tiwai@suse.com, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, niklas.cassel@linaro.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 09/12] ASoC: qdsp6: q6routing: support dt based module loading 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 This patch uses new compatible string to make DT based module loading work. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6routing.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index 593f66b8622f..ab696bf8d1d3 100644 --- a/sound/soc/qcom/qdsp6/q6routing.c +++ b/sound/soc/qcom/qdsp6/q6routing.c @@ -993,9 +993,16 @@ static int q6pcm_routing_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id q6pcm_routing_device_id[] = { + { .compatible = "qcom,q6adm-routing" }, + {}, +}; +MODULE_DEVICE_TABLE(of, q6pcm_routing_device_id); + static struct platform_driver q6pcm_routing_platform_driver = { .driver = { .name = "q6routing", + .of_match_table = of_match_ptr(q6pcm_routing_device_id), }, .probe = q6pcm_routing_probe, .remove = q6pcm_routing_remove,