Received: by 10.192.165.148 with SMTP id m20csp4854188imm; Tue, 1 May 2018 05:11:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9EWK9IvIJc1FDalWMUe1YrTEKOjVLnp3nofV3oqoD0GR59PoLBRaLjA9vrM4RlwSsNzVh X-Received: by 2002:a63:b047:: with SMTP id z7-v6mr12567846pgo.74.1525176664888; Tue, 01 May 2018 05:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525176664; cv=none; d=google.com; s=arc-20160816; b=En71NK8VQQc3rlTWV5qFEqpjaIZOp6rnX+pLzr52ZUm1W6twWfgtQq1oo6Ph9osiOv ju7gbQUHh27sR8NO3M3sDY8bCiDGNRF1Bosty4vKv6RFNSUGBwcWbuD9/8WZs3jvC+K5 aoIsWBnrNa0f7CKM5gPBealFkVTbno3+5TdNquZtvYNZ0m6neoGXrNTOANInCdX/CcFh uT8MTJ96H0CSU7u/lLiffjssYKJEGDkXPeSOcEgdb+z8x9lPHjAafg0geMu7P+8o/btP BLEBQMz/e/dyeTdkM/vF+PqQOGDESP79P0lBgX5iPgKQ82/c9QJplhDIc/S4d7DGPH5n Mjlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=5RJ6vOeD4OYkEFFFgB35lGkoi0ukAD6UiHKxwBINnaY=; b=x9kpuGlAKbZaVwQ3ToDVBvS4BNLs87P50UosEd2/tC1VI7pDBWqPsnBZN59T/orCmF wGGdNgxx1k0VztGwFCu/F+4M5f2ub42JKDWTqHkJqtg2LZdlzbdZqhbPm8JbEHqZBN8q Drp++qw+G104/8N7C1cYKqWM9GFAESwpN+Ug2m2u0/13IpR2PIapNqTITVj7yPy0lHAl zaJ30ii6i4Vc0NxUgqEvmYelmP1o+3Ryl14h8gAuty4c6O0f5e1tESKpAhQbxbgMJYYf QhTeYvU6FHkdODuvBVKEyiSesqLh+hmBsIuhR9KDnQq7imixiKSzsKFqwb34/jRFLsk+ CEtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqRcqh0u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h68-v6si392748pgc.158.2018.05.01.05.10.49; Tue, 01 May 2018 05:11:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqRcqh0u; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089AbeEAMK3 (ORCPT + 99 others); Tue, 1 May 2018 08:10:29 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55238 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754928AbeEAMK0 (ORCPT ); Tue, 1 May 2018 08:10:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so17483158wmc.4 for ; Tue, 01 May 2018 05:10:25 -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=5RJ6vOeD4OYkEFFFgB35lGkoi0ukAD6UiHKxwBINnaY=; b=SqRcqh0u4dl3oEBLSQuz69n2V4XSTBssgi9GTw2/WLvx0/G3uz9lyq4h+iTll54Cd2 XIdMrCdfMskJxO8egN2aihNepPOW7ibtoq/zmJEpR5WZrZ6mN3ndPMyDjpkcsC5rNI10 61tMFWyA2UnmQU0L2S8uIpHR0AvVy5zqWG6Zo= 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=5RJ6vOeD4OYkEFFFgB35lGkoi0ukAD6UiHKxwBINnaY=; b=OBQ06b2YDVwtmKxREJXCcmg7Lr+T826lMmM4wclY39p9yXR+9tIH5l6TjkBynrxL4p l/1QEu1uhZJ+PEoCwr+OG2+kqf7qpicLy9imhbE1Fo87YdVyl7jqTorivMXN1bgsfqF8 NLVA4/2nqbbO7stPvzeaCbKWJ3Y7Z5iFm+jdOXm7w9EtsEGBD1zwiofRfgB2JwNayfB6 yKVcBMF+4i99fkYv/x5YC6fflwKy7xw4xpyZshi5WhV1F5x7v14R8SRJ72oS7m56RG7c QgKliH4kG1D1hTDAZ8fGlQsvffJ1CrNz2XwPLgdAJRMvcPMnVdnn2s1k815w42dF9rQS iocg== X-Gm-Message-State: ALQs6tCZYZs1hTfwZDU7cG81lO+wMm+L1cXZXH5TjE+U/eoB/iIQuXbx YeZmuVTcAJn0Fw5iRIXwN13F7g== X-Received: by 10.28.227.132 with SMTP id a126mr10951222wmh.93.1525176624721; Tue, 01 May 2018 05:10:24 -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 r200sm14565124wmb.39.2018.05.01.05.10.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 May 2018 05:10:23 -0700 (PDT) From: Srinivas Kandagatla To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com, Srinivas Kandagatla Subject: [PATCH v7 00/24] ASoC: qcom: Add support to QDSP based Audio Date: Tue, 1 May 2018 13:07:56 +0100 Message-Id: <20180501120820.11016-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thankyou everyone for providing feedback and testing v6 patchset. This patchset aims to provide a basic version of QCOM DSP based audio support which is available in downstream andriod kernels. This patchset support audio playback on HDMI-RX, MI2S, SLIMBus and will add support to other features as we move on. QDSP has both static and dynamic modules. static modules like AFE (Audio FrontEnd), ADM (Audio Device Manager), ASM(Audio Stream Manager) and CORE to provide this audio services. All these services use APR (Asynchronous Packet Router) protocol via smd/glink transport to communicate with Application processor. More details on each module is availble in there respective patch. This patchset is tested on DB820c, with HDMI audio playback, MI2S on DB410c on top of mainline, Also tested SLIMBus analog audio using wcd9355 with an additional patches. Patches are also tested on SDM845 by Rohit. Here is my test branch incase someone want to try these patches https://git.linaro.org/people/srinivas.kandagatla/linux.git/log/?h=v4.17-qdsp6 Here is block diagram to give a quick overview of the components +---------+ +---------+ +---------+ | q6asm | |q6routing| | q6afe | | dais | <------> | mixers | <-----> | dais | +---------+ +---------+ +---------+ ^ ^ ^ | | | | +------------------+----------------+ | | | | | | v v v v v +---------+ +---------+ +---------+ | q6ASM | | q6ADM | | q6AFE | +---------+ +---------+ +---------+ ^ ^ ^ ^ | | | CPU Side | ------+---------------------+-------------------+-------- | | | | |APR(smd/glink) | | | | | +------------------+----------------+ | | | | | | +-----+--+-----------------------------------+--+------- | | | | | QDSP Side | v v v v v v +---------+ +---------+ +---------+ | ASM | <------> | ADM | <-----> | AFE | +---------+ +---------+ +---------+ ^ | +-------------------+ | ---------------------------+-------------------------- | Audio I/O | v v +--------------------------------------------------+ | Audio devices | | CODEC | HDMI-TX | PCM | SLIMBUS | I2S |MI2S |...| | | +--------------------------------------------------+ Changes since v6 (https://lkml.org/lkml/2018/4/26/264) - Added relevant acks and reviewed-by tags. - Update apr_pkt_send and callbacks to take structures instead of void * suggested by Bjorn - Updated q6afe bindings to explain clearly on grandchild dai node bindings, suggested by Rob H. - Fixed few typos in APR commit msg spotted by Mark B. - rebased patchset on top of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/?h=for-next Srinivas Kandagatla (24): soc: qcom dt-bindings: Add APR bus bindings soc: qcom: Add APR bus driver ASoC: qdsp6: dt-bindings: Add q6core dt bindings ASoC: qdsp6: dt-bindings: Add q6afe dt bindings ASoC: qdsp6: dt-bindings: Add q6adm dt bindings ASoC: qdsp6: dt-bindings: Add q6asm dt bindings ASoC: qdsp6: q6common: Add qdsp6 helper functions ASoC: qdsp6: q6core: Add q6core driver ASoC: qdsp6: q6afe: Add q6afe driver ASoC: qdsp6: qdafe: Add SLIMBus port Support ASoC: qdsp6: q6afe: Add support to MI2S ports ASoC: qdsp6: q6afe: Add support to MI2S sysclks ASoC: qdsp6: q6adm: Add q6adm driver ASoC: qdsp6: q6asm: Add q6asm driver ASoC: qdsp6: q6asm: Add support to memory map and unmap ASoC: qdsp6: q6asm: Add support to audio stream apis ASoC: qdsp6: q6routing: Add q6routing driver ASoC: qdsp6: q6routing: Add support to all SLIMBus Mixers ASoC: qdsp6: q6routing: Add support to MI2S Mixers ASoC: qdsp6: q6afe: Add q6afe dai driver ASoC: qdsp6: q6asm: Add q6asm dai driver ASoC: qdsp6: dt-bindings: Add apq8096 machine bindings ASoC: qcom: apq8096: Add db820c machine driver MAINTAINERS: Add myself as co-maintainer of qcom audio .../devicetree/bindings/soc/qcom/qcom,apr.txt | 84 ++ .../devicetree/bindings/sound/qcom,apq8096.txt | 109 ++ .../devicetree/bindings/sound/qcom,q6adm.txt | 33 + .../devicetree/bindings/sound/qcom,q6afe.txt | 104 ++ .../devicetree/bindings/sound/qcom,q6asm.txt | 33 + .../devicetree/bindings/sound/qcom,q6core.txt | 21 + MAINTAINERS | 1 + drivers/soc/qcom/Kconfig | 9 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/apr.c | 378 ++++++ include/dt-bindings/soc/qcom,apr.h | 28 + include/dt-bindings/sound/qcom,q6afe.h | 31 + include/dt-bindings/sound/qcom,q6asm.h | 22 + include/linux/mod_devicetable.h | 11 + include/linux/soc/qcom/apr.h | 128 ++ sound/soc/qcom/Kconfig | 50 + sound/soc/qcom/Makefile | 5 + sound/soc/qcom/apq8096.c | 238 ++++ sound/soc/qcom/qdsp6/Makefile | 8 + sound/soc/qcom/qdsp6/q6adm.c | 636 +++++++++ sound/soc/qcom/qdsp6/q6adm.h | 25 + sound/soc/qcom/qdsp6/q6afe-dai.c | 752 +++++++++++ sound/soc/qcom/qdsp6/q6afe.c | 1046 +++++++++++++++ sound/soc/qcom/qdsp6/q6afe.h | 193 +++ sound/soc/qcom/qdsp6/q6asm-dai.c | 628 +++++++++ sound/soc/qcom/qdsp6/q6asm.c | 1401 ++++++++++++++++++++ sound/soc/qcom/qdsp6/q6asm.h | 69 + sound/soc/qcom/qdsp6/q6core.c | 380 ++++++ sound/soc/qcom/qdsp6/q6core.h | 15 + sound/soc/qcom/qdsp6/q6dsp-common.c | 66 + sound/soc/qcom/qdsp6/q6dsp-common.h | 24 + sound/soc/qcom/qdsp6/q6dsp-errno.h | 51 + sound/soc/qcom/qdsp6/q6routing.c | 983 ++++++++++++++ sound/soc/qcom/qdsp6/q6routing.h | 9 + 34 files changed, 7572 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8096.txt create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6adm.txt create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6afe.txt create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6asm.txt create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6core.txt create mode 100644 drivers/soc/qcom/apr.c create mode 100644 include/dt-bindings/soc/qcom,apr.h create mode 100644 include/dt-bindings/sound/qcom,q6afe.h create mode 100644 include/dt-bindings/sound/qcom,q6asm.h create mode 100644 include/linux/soc/qcom/apr.h create mode 100644 sound/soc/qcom/apq8096.c create mode 100644 sound/soc/qcom/qdsp6/Makefile create mode 100644 sound/soc/qcom/qdsp6/q6adm.c create mode 100644 sound/soc/qcom/qdsp6/q6adm.h create mode 100644 sound/soc/qcom/qdsp6/q6afe-dai.c create mode 100644 sound/soc/qcom/qdsp6/q6afe.c create mode 100644 sound/soc/qcom/qdsp6/q6afe.h create mode 100644 sound/soc/qcom/qdsp6/q6asm-dai.c create mode 100644 sound/soc/qcom/qdsp6/q6asm.c create mode 100644 sound/soc/qcom/qdsp6/q6asm.h create mode 100644 sound/soc/qcom/qdsp6/q6core.c create mode 100644 sound/soc/qcom/qdsp6/q6core.h create mode 100644 sound/soc/qcom/qdsp6/q6dsp-common.c create mode 100644 sound/soc/qcom/qdsp6/q6dsp-common.h create mode 100644 sound/soc/qcom/qdsp6/q6dsp-errno.h create mode 100644 sound/soc/qcom/qdsp6/q6routing.c create mode 100644 sound/soc/qcom/qdsp6/q6routing.h -- 2.16.2