[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5555B259.10508@linaro.org>
Date: Fri, 15 May 2015 09:46:17 +0100
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Patrick Lai <plai@...eaurora.org>, Mark Brown <broonie@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Banajit Goswami <bgoswami@...eaurora.org>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.de>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
alsa-devel@...a-project.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v1 10/13] ASoC: qcom: Add apq8016 lpass driver support
Thanks for review,
On 15/05/15 06:23, Kenneth Westfield wrote:
> On Wed, May 13, 2015 at 05:03:06AM -0700, Srinivas Kandagatla wrote:
>> This patch adds apq8016 lpass driver support. APQ8016 has 4 MI2S which
>> can be routed to one internal codec and 2 external codec interfaces.
>>
>> Primary, Secondary, Quaternary I2S can do Rx(playback) and Tertiary and
>> Quaternary can do Tx(capture).
>
>> diff --git a/sound/soc/qcom/Kconfig b/sound/soc/qcom/Kconfig
>> index 865205e..9cc5ed7 100644
>> --- a/sound/soc/qcom/Kconfig
>> +++ b/sound/soc/qcom/Kconfig
>> @@ -20,6 +20,12 @@ config SND_SOC_LPASS_IPQ806X
>> select SND_SOC_LPASS_CPU
>> select SND_SOC_LPASS_PLATFORM
>>
>> +config SND_SOC_LPASS_APQ8016
>> + tristate
>> + depends on SND_SOC_QCOM
>> + select SND_SOC_LPASS_CPU
>> + select SND_SOC_LPASS_PLATFORM
>
> Continuing from my comments on patch 2/13, should an OF dependency be added
> here as well?
LPASS_CPU and LPASS_PLATFORM already has this dependency, so there is no
chance that APQ8016 can be selected without OF.
>
>> +
>> config SND_SOC_STORM
>> tristate "ASoC I2S support for Storm boards"
>> depends on (ARCH_QCOM && SND_SOC_QCOM) || COMPILE_TEST
>
>> diff --git a/sound/soc/qcom/lpass-apq8016.c
>> b/sound/soc/qcom/lpass-apq8016.c
>> new file mode 100644
>> index 0000000..5cbf17f0
>> --- /dev/null
>> +++ b/sound/soc/qcom/lpass-apq8016.c
>
>> +static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int
>> chan)
>> +{
>> + clear_bit(chan, &drvdata->rdma_ch_bit_map);
>> +
>> + return 0;
>> +}
>> +
>> +static int apq8016_lpass_init(struct platform_device *pdev)
>> +{
>> + struct lpass_data *drvdata = platform_get_drvdata(pdev);
>> + struct device *dev = &pdev->dev;
>> + int ret;
>> +
>> + drvdata->pcnoc_mport_clk = devm_clk_get(dev, "pcnoc-mport-clk");
>> + if (IS_ERR(drvdata->pcnoc_mport_clk)) {
>> + dev_err(&pdev->dev, "%s() error getting pcnoc-mport-clk:
>> %ld\n",
>> + __func__,
>> PTR_ERR(drvdata->pcnoc_mport_clk));
>> + return PTR_ERR(drvdata->pcnoc_mport_clk);
>> + }
>> +
>> + ret = clk_prepare_enable(drvdata->pcnoc_mport_clk);
>> + if (ret) {
>> + dev_err(&pdev->dev, "%s() Error enabling ahbix_clk: %d\n",
>
> Please correct the clock name in the log message ...
>
Yep, will fix it.
>> + __func__, ret);
>> + return ret;
>> + }
>> +
>> + drvdata->pcnoc_sway_clk = devm_clk_get(dev, "pcnoc-sway-clk");
>> + if (IS_ERR(drvdata->pcnoc_sway_clk)) {
>> + dev_err(&pdev->dev, "%s() error getting pcnoc-sway-clk:
>> %ld\n",
>> + __func__,
>> PTR_ERR(drvdata->pcnoc_sway_clk));
>> + return PTR_ERR(drvdata->pcnoc_sway_clk);
>> + }
>> +
>> + ret = clk_prepare_enable(drvdata->pcnoc_sway_clk);
>> + if (ret) {
>> + dev_err(&pdev->dev, "%s() Error enabling ahbix_clk: %d\n",
>
> ... here too.
>
Sure, I will fix it.
--srini
>> + __func__, ret);
>> + return ret;
>> + }
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists