From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793AbbD3RQa (ORCPT ); Thu, 30 Apr 2015 13:16:30 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:38186 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbbD3RQ1 (ORCPT ); Thu, 30 Apr 2015 13:16:27 -0400 From: Srinivas Kandagatla To: Patrick Lai , Mark Brown Cc: Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Banajit Goswami , Kenneth Westfield , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio Date: Thu, 30 Apr 2015 18:15:48 +0100 Message-Id: <1430414148-10869-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This patchset adds apq8016 audio support into lpass driver. Existing Lpass driver can not be used as-it-is for apq8016 as it contains code specific to ipq806x. Also the driver only supports single i2s port, single dma channel and single bitclk control. APQ8016 has 4 MI2S( Primary, Secondary, Tertiary, Quaternary) which can be routed to internal wcd codec or external codecs. This routing is controlled by 2 mux registers. This patch series firstly re-organizes the lpass driver such that the SOC specific bits are moved away from the driver. And secondly the SOC specifics are now passed as lpass variant data which would include various register offsets, dma channel allocations and SOC specific clock handling. Finally the patchset add apq8016 lpass and machine driver. This patchset also has two trivial cleanup patches which are to do with redundant checks and removing unnecessary header files. All these patches are tested for HDMI audio via adv7533 bridge and Analog audio on APQ8016-SBC and msm8916-mtp boards. I dont have access to ipq806x boards to test these patches. This is very first version of the patches which was developed with very mimimal/no access to IP documentation. I would like to get your opinon on the over all approch. Kenneth/Patrick, Could you please try these patches on storm board? Thanks, srini Srinivas Kandagatla (14): ASoC: qcom: Remove redundant error check. ASoC: qcom: remove unnecessary header files ASoC: qcom: move ipq806x specific bits out of lpass driver. ASoC: qcom: remove hardcoded i2s port number ASoC: qcom: remove hardcoded dma channel ASoC: qcom: support bitclk and osrclk per i2s port ASoC: qcom: add no osr clk flag to lpass variant ASoC: qcom: add dma channel control offset to variant data ASoC: qcom: Add ability to handle interrupts per dma channel ASoC: qcom: add bit map to track static dma channel allocations ASoC: qcom: Add apq8016 lpass driver support ASoC: qcom: add apq8016 sound card support ASoC: qcom: Document apq8016 bindings. ASoC: qcom: document apq8016 machine driver bindings .../bindings/sound/qcom,apq8016-machine.txt | 61 ++++++ .../devicetree/bindings/sound/qcom,lpass-cpu.txt | 13 +- sound/soc/qcom/Kconfig | 25 ++- sound/soc/qcom/Makefile | 5 + sound/soc/qcom/apq8016.c | 214 ++++++++++++++++++ sound/soc/qcom/lpass-apq8016.c | 243 +++++++++++++++++++++ sound/soc/qcom/lpass-cpu.c | 234 ++++++++++---------- sound/soc/qcom/lpass-ipq806x.c | 95 ++++++++ sound/soc/qcom/lpass-lpaif-ipq806x.h | 172 --------------- sound/soc/qcom/lpass-lpaif-reg.h | 167 ++++++++++++++ sound/soc/qcom/lpass-platform.c | 197 +++++++++++------ sound/soc/qcom/lpass.h | 54 ++++- 12 files changed, 1121 insertions(+), 359 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8016-machine.txt create mode 100644 sound/soc/qcom/apq8016.c create mode 100644 sound/soc/qcom/lpass-apq8016.c create mode 100644 sound/soc/qcom/lpass-ipq806x.c delete mode 100644 sound/soc/qcom/lpass-lpaif-ipq806x.h create mode 100644 sound/soc/qcom/lpass-lpaif-reg.h -- 1.9.1