Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2890016pxk; Mon, 28 Sep 2020 02:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp/cUCW58aAZvThSkERs/xzzkjQeVLeYCYr/KlVUsH7fggFEU9zTmcdNwmq81ppXldVdCO X-Received: by 2002:a17:906:4c4c:: with SMTP id d12mr778976ejw.491.1601286961438; Mon, 28 Sep 2020 02:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601286961; cv=none; d=google.com; s=arc-20160816; b=JpVoTEbUrvgSx4VTmyaZVWNekSAFwTJv/ddjtAKYm33osZ5GdQ1u7yMk5cMhlor5IO C+7Byr/klgTnOoE0Yr+9ZpR+/4/AhmVm3f6tFRUoh5iMLnbmk+EPNenz+5QBCgvghCoe w+3GSRdWvbRzBWrh2gOp0jgSF7mK4GYbPJN9JptB8RfnOw7k4K4HgrQ83BM6VEcnxgDx SKbuLgyRDvA024wQo5tZ8QxooWLit5TKysBpxKy0IsOWkWRtetk3bdu//9bXOUthYfiX 3hIk53Vxp0gwSHnGAI8BVchomNO/ofhsGORpIhNK/65suuZJMY9DzUdhq9rYchBqTJe8 LZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=xaLCY4XeSpW2yZ4NBQ2ZM0m/9NK4BoTEVJtCzdYUC0w=; b=W1hAjzEVOX6O2ydovdSj6HRkoFmH6hEJInaLK7ZCLg9+E/6b3pl1g+DZlTrieJgOkf RtusEyyJHdVicKV4VvrnWq9EanBjeVwHOVftamcl3fxiatwciSFkSRIOiYsZc/fuAc7d 5s/SFA58hVCZPX/yHvV3aAV7Rx1wbdX7pCJ9yZfOv5kW9seALn4PBtA1GXLJg2hqP72h e7MWVQAkAarFouRjWbryaestxWib8Q1Jn9YtIhh7nReTFEnWVLQMYZYvdeVKmcQptQ88 dRRMRg6AX+u+gyUAFv5nImNM/jfkkHsAMBgr3akLWeynT+OCTYX83iG5ixazt2sQaHm7 2hmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MOwZKmms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si234924edv.551.2020.09.28.02.55.39; Mon, 28 Sep 2020 02:56:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MOwZKmms; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgI1JyV (ORCPT + 99 others); Mon, 28 Sep 2020 05:54:21 -0400 Received: from z5.mailgun.us ([104.130.96.5]:24226 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbgI1JyU (ORCPT ); Mon, 28 Sep 2020 05:54:20 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601286860; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=xaLCY4XeSpW2yZ4NBQ2ZM0m/9NK4BoTEVJtCzdYUC0w=; b=MOwZKmmswnfMnRmiV7wk2JAFjiIUvfkcX+HC2Uesp1Yb11IF9ovChns1dZN3Ayzb7Wj988fL vIQ3TWOncZaWnTCfVasmuSytQbXTQP356DwhEBvpanGOsbP09sAWTq71pFDBbRnAqchye+VH UugEhTE/8gohvxk8JQx/oHgnSr0= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 5f71b2acd106659f82730688 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 28 Sep 2020 09:53:48 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A4F08C433CA; Mon, 28 Sep 2020 09:53:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7ADA8C433C8; Mon, 28 Sep 2020 09:53:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7ADA8C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Srinivasa Rao Mandadapu Subject: [PATCH v7 0/6] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port Date: Mon, 28 Sep 2020 15:23:25 +0530 Message-Id: <1601286811-25962-1-git-send-email-srivasam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configuration changes. These patches depends on the DP patch series https://patchwork.kernel.org/project/dri-devel/list/?series=332029 https://lore.kernel.org/patchwork/project/lkml/list/?series=464856 changes since V6: -- Removed compile time define flag, which used for enabling HDMI code, based on corresponding config param is included. -- Updated reg map alloc API with reg map bulk API. -- Removed unnecessary line splits changes since V5: -- Removed unused struct regmap *map in lpass_platform_alloc_hdmidmactl_fields. -- DMA alloc and free API signature change in lpass-apq8016.c, lpass-ipq806x.c -- Keeping API "irqreturn_t lpass_platform_hdmiif_irq" under ifdef macro Changes Since v4: -- Updated with single compatible node for both I2S and HDMI. Changes Since v3: -- Removed id in lpass variant structure and used snd_soc_dai_driver id. Changes Since v2: -- Audio buffer size(i.e. LPASS_PLATFORM_BUFFER_SIZE) in lpass-platform.c increased. Changes Since v1: -- Commit messages are updated -- Addressed Rob Herring review comments V Sujith Kumar Reddy (6): ASoC: Add sc7180-lpass binding header hdmi define ASoC: dt-bindings: Add dt binding for lpass hdmi Asoc:qcom:lpass-cpu:Update dts property read API Asoc: qcom: lpass:Update lpaif_dmactl members order ASoC: qcom: Add support for lpass hdmi driver ASoC: qcom: sc7180: Add support for audio over DP .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 +++- include/dt-bindings/sound/sc7180-lpass.h | 1 + sound/soc/qcom/Kconfig | 17 + sound/soc/qcom/Makefile | 2 + sound/soc/qcom/lpass-apq8016.c | 4 +- sound/soc/qcom/lpass-cpu.c | 55 ++- sound/soc/qcom/lpass-hdmi.c | 470 +++++++++++++++++++++ sound/soc/qcom/lpass-hdmi.h | 122 ++++++ sound/soc/qcom/lpass-ipq806x.c | 4 +- sound/soc/qcom/lpass-lpaif-reg.h | 52 ++- sound/soc/qcom/lpass-platform.c | 421 ++++++++++++++---- sound/soc/qcom/lpass-sc7180.c | 116 ++++- sound/soc/qcom/lpass.h | 119 +++++- 13 files changed, 1301 insertions(+), 156 deletions(-) create mode 100644 sound/soc/qcom/lpass-hdmi.c create mode 100644 sound/soc/qcom/lpass-hdmi.h -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.