- Apr 17, 2019
-
-
Gao Pan authored
add debug message when i2c peripheral clk rate is 0, then directly return -EINVAL. Signed-off-by:
Gao Pan <pandy.gao@nxp.com> Reviewed-by:
Andy Duan <fugang.duan@nxp.com> (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Fugang Duan authored
Manage irq resource request/release in runtime pm to save irq domain's power. Signed-off-by:
Frank Li <Frank.Li@nxp.com> Signed-off-by:
Fugang Duan <fugang.duan@nxp.com> Tested-by:
Guoniu.Zhou <guoniu.zhou@nxp.com> Reviewed-by:
Frank Li <Frank.Li@nxp.com> (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Fugang Duan authored
- Add runtime pm support to dynamicly manage the ipg and per clocks. - Put the suspend to suspend_noirq. - Call .pm_runtime_force_suspend() to force runtime pm suspended in .suspend_noirq(). BuildInfo: - SCFW 88456c73, IMX-MKIMAGE 06bc2767, ATF a438801 - U-Boot 2017.03-imx_v2017.03_4.9.51_imx8_beta1+g7953d47 Signed-off-by:
Fugang Duan <fugang.duan@nxp.com> Signed-off-by:
Gao Pan <pandy.gao@nxp.com> Reviewed-by:
Anson Huang <Anson.Huang@nxp.com> During 4.14 rebase added pm_runtime_get_sync/pm_runtime_put around the reading of LPI2C_PARAM. Signed-off-by:
Leonard Crestez <leonard.crestez@nxp.com> (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Gao Pan authored
When we do system suspend, the runtime pm will be disabled, but we need to control the PMIC to power on/off the regulator, if the runtime pm is disabled, if will failed to request runtime wakeup. So data transfer will failed. Signed-off-by:
Bai Ping <ping.bai@nxp.com> Signed-off-by:
Gao Pan <pandy.gao@nxp.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Gao Pan authored
restore pin setting for i2c in suspend/resume Signed-off-by:
Gao Pan <gaopan@freescale.com> (cherry picked from commit 8aed73af218f25e0677b8980b3706246dd68790d) Signed-off-by:
Robin Gong <yibin.gong@nxp.com> Conflicts: drivers/i2c/busses/i2c-imx.c Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Gao Pan authored
Due to the eviation i2c clk settings, the result may less than 100KBps. As a result, some i2c slave works in wrong condition. This patch changes i2c bitrate to 200KBps Signed-off-by:
Gao Pan <pandy.gao@nxp.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Gao Pan authored
A NACK flag in ISR means i2c bus error. In such codition, there is no need to do read/write operation. It's better to return ISR directly and then stop i2c transfer. Signed-off-by:
Gao Pan <pandy.gao@nxp.com> (cherry-pick from 839d59e48b6fdbd882776a48a88ce26ff14d8b86) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Gao Pan authored
restore pin setting for i2c in suspend/resume Signed-off-by:
Gao Pan <gaopan@freescale.com> (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
gaopan authored
The i2c irq is masked when pcie starts a i2c transfer process during noirq suspend stage. As a result, i2c transfer fails. To solve the problem, IRQF_NO_SUSPEND is added to i2c bus. Signed-off-by:
Gao Pan <b54642@freescale.com> Signed-off-by:
Fugang Duan <B38611@freescale.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Leonard Crestez authored
enable cs42888 and si476x sound card Signed-off-by:
Shengjiu Wang <shengjiu.wang@freescale.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
enable mqs sound card. Signed-off-by:
Shengjiu Wang <shengjiu.wang@freescale.com> (cherry picked from commit 21cf6e439bdf9a0cf287b1dd04ceb56d0486167d) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Zidan Wang authored
enable WM8960 and WM8958 sound card, and ASRC Signed-off-by:
Zidan Wang <zidan.wang@freescale.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch enabled SND_SOC_FSL_ASRC driver. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch enable FW_LOADER_USER_HELPER. Without this config imx/sdma/sdma-imx6q.bin firamware is not loaded. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch replace codec to component to fix the compilation errors. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch replace codec to component. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch replace Codec to Component. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
IOMUXC_GPR2 register is not used for imx8, there is a new register designed for this usage in imx8, so it also need the ipg clock. Signed-off-by:
Shengjiu Wang <shengjiu.wang@freescale.com> Reviewed-by:
Daniel Baluta <daniel.baluta@nxp.com> (Fixed merge conflicts) TODO: checkpatch warnings Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
Add MQS's bit description in gpr header file. Signed-off-by:
Shengjiu Wang <shengjiu.wang@freescale.com> (cherry picked from commit 1e576de4b46a0fadd1c8df7f08229ac759e765f5) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch replace codec to component. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
This patch remove duplicate label ‘fail’. Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
Now we can replace Codec to Component. xxx_codec_xxx() -> xxx_component_xxx() Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
Enable DMA workaround for fsl_spdif driver. sound/soc/fsl/fsl_spdif.o: In function `fsl_spdif_remove': fsl_spdif.c:(.text+0xb3c): undefined reference to `fsl_dma_workaround_free_info' sound/soc/fsl/fsl_spdif.o: In function `fsl_spdif_hw_free': fsl_spdif.c:(.text+0x1010): undefined reference to `clear_gpt_dma' sound/soc/fsl/fsl_spdif.o: In function `fsl_spdif_probe': fsl_spdif.c:(.text+0x1b98): undefined reference to `fsl_dma_workaround_alloc_info' sound/soc/fsl/fsl_spdif.o: In function `fsl_spdif_hw_params': fsl_spdif.c:(.text+0x1fa8): undefined reference to `configure_gpt_dma' Makefile:1032: recipe for target 'vmlinux' failed Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Daniel Baluta authored
Old implementation uses /usr/lib/imx-mm/audio-codec to look for codec libraries. Also this is the patch where Yocto rootfs stores the codec libraries. So until we align Yocto with the kernel lets change the driver to use the old path. Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit 69db3ccf656bd1f4f1283d7ea9529fac383d7a1a) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
With rpmsg sound, when the m4 image is not loaded. There is error log [ 46.275223] imx-wm8960 sound-rpmsg-wm8960: ASoC: CODEC DAI rpmsg-wm8960-hifi not registered [ 46.284543] imx-wm8960 sound-rpmsg-wm8960: snd_soc_register_card failed (-517) The issue is caused by that codec is not registered, the sound card registration will fail So add check in probe function for codec dai is ready or not. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 6fab38509647529c165bb610b8a7996d6ad16307) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
With rpmsg sound, when the m4 image is not loaded. There is error log [ 46.257647] imx-cs42888 sound-rpmsg-cs42888: ASoC: CODEC DAI cs42888 not registered [ 46.265413] imx-cs42888 sound-rpmsg-cs42888: snd_soc_register_card failed (-517) The issue is that codec is not register, the sound registration will fail So add check in probe function for codec dai ready or not. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit f4070228834cfbfc641d394559c360a99f3d1ff0) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
Commit 786c8bd56324 ("MLK-19734-3: dmaengine: imx-sdma: change fifo offset of fifo_num") change the offset of fifo_off, so the sai driver need to be updated. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit c94ce8776e01f1f40a866d4da89603ab042dde0f) (cherry picked from commit 40729241d568966657089385d04d84973ea8797b) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Vipul Kumar authored
As per commit 2474e403 ("ASoC: fsl_ssi: Replace fsl_ssi_rxtx_reg_val with fsl_ssi_regvals"), made changes to fix the compilation errors. sound/soc/fsl/fsl_ssi.c: In function ‘fsl_ssi_hw_params’: sound/soc/fsl/fsl_ssi.c:817:41: error: ‘struct fsl_ssi’ has no member named ‘rxtx_reg_val’ struct fsl_ssi_rxtx_reg_val *reg = &ssi->rxtx_reg_val; ^~ sound/soc/fsl/fsl_ssi.c:879:7: error: dereferencing pointer to incomplete type ‘struct fsl_ssi_rxtx_reg_val’ reg->rx.srcr &= ~SSI_SRCR_RFEN1; ^~ AR drivers/base/built-in.a scripts/Makefile.build:305: recipe for target 'sound/soc/fsl/fsl_ssi.o' failed make[3]: *** [sound/soc/fsl/fsl_ssi.o] Error 1 Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
With dual fifo enabled, the case recording mono sound in the background, playback sound twice in parallal, the second time playback sound may distort, the possible reason is using dual fifo to playback mono sound is not recommended. This patch is to provide a option to use multi fifo script, which can be dynamically configured as one fifo or two fifo mode. Vipul: while rebasing on v4.19, rename registers and fields macros as per commit a818aa5f ("ASoC: fsl_ssi: Rename registers and fields macros"). Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 9d71068cf7d1fc1ec36e5fb34a321c1bdbaad324) (cherry picked from commit e8964703c042c6317ed01ddab3cc9a1b67668e78) (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
With LPA mode, if the period size is small, the timer for query buffer pointer will be triggered immediately after suspend, the MU interrupt will resume the system quickly. This patch is to disable timer when suspend. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 9c5e78cf50855bd73f2b5c3dc8bc48f8a0907b39) (cherry picked from commit c20c073cb64dbe8c8b30f786ffbcd6a56a09c79c) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
We first add the jack kcontrol in commit c2c7959e ("MLK-11479-09 pulseaudio5.0 mute Headphone volume when Headphone plugged") After that there is change in kernel by commit f63e8581 ("ASoC: jack: create kctls according to jack pins info"), the jack kcontrol will be created with snd_soc_jack_add_pins. So our change for jack kcontrol in machine driver is not need now, for driver already call imx_wm8958_gpio_init -> snd_soc_card_jack_new -> snd_soc_jack_add_pins. otherwise the jack kcontrol will be created twice. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 696ff858bb3a484c2ec105c62b29f39e0e61905b) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
We first add the jack kcontrol in commit c2c7959e ("MLK-11479-09 pulseaudio5.0 mute Headphone volume when Headphone plugged") After that there is change in kernel by commit f63e8581 ("ASoC: jack: create kctls according to jack pins info"), the jack kcontrol will be created with snd_soc_jack_add_pins. So our change for jack kcontrol in machine driver is not need now, for driver already call imx_wm8962_gpio_init -> snd_soc_card_jack_new -> snd_soc_jack_add_pins. otherwise the jack kcontrol will be created twice. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 72951c2da09799a32883457834479d6280138fb5) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Shengjiu Wang authored
We first add the jack kcontrol in commit c2c7959e ("MLK-11479-09 pulseaudio5.0 mute Headphone volume when Headphone plugged") After that there is change in kernel by commit f63e8581 ("ASoC: jack: create kctls according to jack pins info"), the jack kcontrol will be created with snd_soc_jack_add_pins. So our change for jack kcontrol in machine driver is not need now, for driver already call imx_wm8960_gpio_init -> snd_soc_card_jack_new -> snd_soc_jack_add_pins. otherwise the jack kcontrol will be created twice. Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 538e8f43b621f93fcf3c2a0fcbf82c3de1a2e36e) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Daniel Baluta authored
If the DSP firmware binary is already loaded it is wrong to update SDRAM located sections because we will overwrite and data stored there. This makes suspend/resume work. Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit 48ea0209f27808ee922f44b27bdcd332f0e3b4f5) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
-
Daniel Baluta authored
Finally! We register DSP as a sound card. Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit 3e993bbaa64fb366fc99650a7f837e30fa1b466d) (Vipul: Fixed merge conflicts) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Daniel Baluta authored
Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit a231836e5a05ce41506ff0a69a1f2ecfae3de456) TODO: checkpatch warnings Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Daniel Baluta authored
DSP driver now supports two interfaces. Old ioctl chardev based interface and ALSA compress interface. Because some part of the open/close code is common introduce two new functions which encapsulate the common functionality. Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit 61d764aa7352e135f7c700689c9266aa255445b0) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Daniel Baluta authored
While at it add include guard to dsp.h Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit a1c7e9a833bec9e517cc17c8e84e330dab198a7b) Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Daniel Baluta authored
Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit a0e9fa3a5d60e9e8b093c53e2700fcd08a6c07fc) TODO: checkpatch warnings Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-
Daniel Baluta authored
This is based on Xtensa Audio framework userspace implemention API. Reviewed-by:
Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Signed-off-by:
Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> (cherry picked from commit 83b6f7340c4bb5fd9380cce5d856b18b9dc34457) TODO: checkpatch warnings Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com> Signed-off-by:
Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> Signed-off-by:
Vipul Kumar <vipul_kumar@mentor.com>
-