18 Dec, 2020
15 commits
-
* origin/audio/ssi:
LF-106: ASoC: fsl_ssi: request BUS_FREQ_AUDIO
MLK-15975-1: ASoC: fsl_ssi: support multi fifo script -
* origin/audio/spdif: (17 commits)
MLK-22621: ASoC: fsl_spdif: fix coverity issue 11546762
MLK-22621: ASoC: fsl_spdif: implement bypass mode
ASoC: fsl_spdif: add support for 88200 and 176400 rates
MLK-23146-1: ASoC: fsl_spdif: add intermediate RX rates for iMX8MM.
MLK-23618-11: ASoC: fsl_spdif: Don't bind clock with regmap
... -
* origin/audio/sof: (28 commits)
LF-3026-2 ASoC: SOF: imx8m: Remove internal priv->suspended variable
LF-3026-1 ASoC: SOF: imx8m: Introduce imx8m_dsp_set_power_state
LF-2605 ASoC: SOF: imx: Use sdev->pdata->hw_pdata for private data
ASoC: SOF: imx8m: Add correct prototype for imx8m_dsp_suspend
ASoC: SOF: imx8m: Use helper functions to enable/disable clocks
... -
* origin/audio/sai: (33 commits)
MLK-23618-17: fsl_sai: fix hang in probe at boot time
MLK-23792-1: ASoC: fsl_sai: Monitor spdif rx clock in imx8mm
MLK-23618-9: ASoC: fsl_sai: Don't bind clock with regmap
LF-1162-1: ASoC: fsl: sai: convert pm_qos_*() usage to new cpu_latency_qos_*()
MLK-21957-3: ASoC: fsl_sai: add bitcount and timestamp controls
... -
* origin/audio/rpmsg: (73 commits)
LF-2225-6 ASoC: codecs: rpmsg_cs42xx8: change to .mute_stream()
LF-2225-5 ASoC: codecs: rpmsg_wm8960: change to .mute_stream()
MLK-23702-4: ASoC: imx-rpmsg: support rpmsg audio for i.MX8MP
MLK-23702-3: ASoC: rpmsg_wm8960: Add i2c interface
MLK-23702-2: ASoC: imx-pcm-rpmsg: Don't register codec driver if it is from DT
... -
* origin/audio/micfil: (7 commits)
ASoC: fsl_micfil: fix PDM root clock frequency
MLK-22598: ASoC: fsl_micfil: fix a cherry-pick error
MLK-24132: ASoC: fsl_micfil: Fix kernel panic when hwvad is disabled
MLK-23906-4: ASoC: fsl_micfil: Don't bind clock with regmap
MLK-23242-2: ASoC: fsl_micfil: Add support for imx8mp
... -
* origin/audio/hdmi: (37 commits)
LF-2191: ASoC: imx-cdnhdmi: Remove unused code
LF-2700: ASoC: fsl: imx-cdnhdmi: Fix error prompt
LF-2567-6 ASoC: imx-cdnhdmi: Use set_jack ops to set jack
MLK-24916-2: ASoC: fsl_aud2htx: Add S32_LE support
MLK-24611-3: ASoC: imx-cdnhdmi: Add hdmi jack
... -
* origin/audio/fm: (9 commits)
LF-1378-19 ASoC: soc: imx-si476x: use asoc_rtd_to_cpu() / asoc_rtd_to_codec()
MLK-11429-21: ASoC: fsl: port si476x machine driver from imx_3.10.y
MLK-11305 radio-si476x: support set V4L2_CID_AUDIO_MUTE CTRL
MLK-22355: mfd: si476x: Use system_freezable_wq instead of system_wq
MLK-10055-2: mfd: si476x-i2c: sound is registered when no FM module attached
... -
* origin/audio/esai: (8 commits)
MLK-24612-2: ASoC: fsl_esai: Add esai mix driver
MLK-24612-1: ASoC: fsl_esai: Add esai client driver
MLK-23618-10: ASoC: fsl_esai: Don't bind clock with regmap
LF-601-2: ASoC: fsl_esai: add chan_name for dma_params
LF-601-1: ASoC: fsl_esai: Switch to imx-pcm-dma-v2
... -
* origin/audio/dsp: (117 commits)
MLK-24929 ASoC: fsl_dsp: Support aac streams for cplay
MLK-24924-2 dsp: 8mp: change ocram layout for lpa
MLK-24883 ASoC: fsl_dsp: Add sections check for dsp firmware
MLK-24816-2 ASoc: fsl_dsp: Correct set connected component port
MLK-24816-1 ASoc: fsl_dsp: Support seek for compress pipeline
... -
* origin/audio/dma: (19 commits)
MLK-25116-3: sound: core: memalloc: add page alignment for iram
LF-1378-8 ASoC: soc: imx-pcm-dma-v2: use asoc_rtd_to_cpu() / asoc_rtd_to_codec()
LF-1011-16 ASoC: fsl: pcm-dma-v2: drop snd_soc_pcm_lib_ioctl
ASoC: fsl: imx-pcm-dma-v2: Fix compile issue for upgrade to 5.5
LF-374: ASoC: imx-pcm-dma-v2: Fix compile issue with SND_SOC_IMX_PCM_DMA=m
... -
* origin/audio/codec: (20 commits)
LF-2972: ASoC: wm8524: avoid EPROBE_DEFER log
MLK-25015: sound: soc: codecs: pcm512x: set input sclk
LF-2644-3 ASoC: ak4458: use reset control instead of gpio
Revert "LF-2644-3 ASoC: ak4458: get reset GPIO as non-exclusive"
LF-2644-3 ASoC: ak4458: get reset GPIO as non-exclusive
... -
* origin/audio/card: (62 commits)
MLK-25134: sound: soc: fsl: imx pcm512x: set one to one ratio
MLK-24930-1: sound: soc: fsl: imx pcm512x: iqaudio dac
LF-2131: ASoC: imx-sii902x: Remove unused code
LF-2511-3: ASoC: fsl-asoc-card: Merge some features to this common driver
MLK-24423: sound: soc: fsl: imx pdm: fixed mclk improve voice
... -
* origin/audio/xcvr: (38 commits)
LF-2782 ASoC: fsl_xcvr: fix resource leak
ASoC: fsl_xcvr: move reset assert into runtime_resume
MLK-24965: ASoC: fsl_xcvr: bit and timestamp counters
MLK-24957-1 ASoC: fsl_xcvr: sync with upstream version
MLK-23603-4: ASoC: fsl_xcvr: adjust watermark and max burst values
... -
* origin/audio/audmix:
Revert "ASoC: fsl_audmix: make clock and output src write only"
MLK-23618-8: ASoC: fsl_audmix: Don't bind clock with regmap
17 Dec, 2020
3 commits
-
This is buggy and causes kernel crashes.
Instead of priv->suspended we can use pm_runtime_suspended call.
priv->suspended was used to keep track if the SOF device is suspended
in order to avoid suspending an already suspended device.SOF has refined its state machine. One problem for SOF imx
implementation was that if the DSP is turned of and a System PM
happens then it will leave the DSP turned on.In order to fix this in System PM resume we activate runtime PM suspend.
Thus after SND_SOF_SUSPEND_DELAY_MS timeout the DSP device will enter
runtime suspend and the DSP will be turned off.Signed-off-by: Daniel Baluta
-
This is used by SOF core to keep track of PM state.
Each PM handler (system/runtime) must call snd_sof_dsp_set_power_state
and change the state according to the desired PM state.Signed-off-by: Daniel Baluta
-
Fix coverity issue 11546762.
Signed-off-by: Viorel Suman
15 Dec, 2020
1 commit
-
Since mmap for userspace is based on page alignment, add page alignment
for iram alloc from pool, otherwise, some good data located in the same
page of dmab->area maybe touched wrongly by userspace like pulseaudio.Signed-off-by: Robin Gong
Reviewed-by: Shengjiu Wang
14 Dec, 2020
21 commits
-
request BUS_FREQ_AUDIO
Signed-off-by: Shengjiu Wang
-
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.Signed-off-by: Shengjiu Wang
(cherry picked from commit 9d71068cf7d1fc1ec36e5fb34a321c1bdbaad324) -
Implement SPDIF bypass mode. It implies internal SoC
routing of SPDIF input signal to SPDIF output signal. The
test bed requires two boards: B1 configured in bypass mode,
and B2 to feed B1 SPDIF RX port and read B1 SPDIF TX port:
B2 TX -> B1 RX,
B2 RX
Reviewed-by: Shengjiu Wang -
Add support for 88200 Hz and 17600 Hz.
Signed-off-by: Viorel Suman
Reviewed-by: Shengjiu Wang -
Add intermediate RX rates for iMX8MM.
Signed-off-by: Viorel Suman
Reviewed-by: Shengjiu Wang
(cherry picked from commit a4f24900c310f44af4f3399129476c3d231b74ba) -
The call flow:
devm_regmap_init_mmio_clk
- clk_prepare()
- clk_pm_runtime_get()Cause the power domain of lpcg clock always be enabled.
which impact the power consumption.So we can't bind clock with regmap, then explicitly enable
clock when using. As we already enable all clock in
pm_runtime_resume, so only need to enable clock in probe.Signed-off-by: Shengjiu Wang
Reviewed-by: Daniel Baluta -
Switch to new API introduced by:
c2233a266178 ("ASoC: soc: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer")Reviewed-by: Daniel Baluta
Signed-off-by: Dong Aisheng -
request BUS_FREQ_HIGH
Signed-off-by: Shengjiu Wang
-
On recent kernels clks which are marked with CLK_SET_RATE_GATE are
"protected" against further changes at clk_prepare time, including clk
reparent. Wrap clk set_parent and set_rate operations with
disable_unprepare and prepare_enable.Signed-off-by: Viorel Suman
-
Allow PLL switch for playback stream only and remove
PLL switch guard with regard to capture stream as the
clock for capture stream is provided externally.Signed-off-by: Viorel Suman
(cherry picked from commit c8213da5fbcd370acb4d764bef5df5981a517c11) -
Set SPDIF master clock frequency as function of rate.
Signed-off-by: Viorel Suman
(cherry picked from commit 407430a03994e4acff508afe8c9772680558c1c5) -
iMX8 platforms typically have 2 AUDIO PLLs being configured to handle
8k and 11k audio rates. The patch implements the functionality to
select at runtime the appropriate AUDIO PLL as function of audio
file rate.Signed-off-by: Viorel Suman
(cherry picked from commit 3a29374cfbe0bfaf1785fa66163ffd3b9e30aca3) -
Use txclk array to keep all 7 TxClk sources instead of keeping clocks per
rate - need to do this in order to avoid multiple prepare_enable /
disable_unprepare of the same clock during suspend/resume.Signed-off-by: Viorel Suman
(cherry picked from commit 61bc5c83af0713a09b520486051a2efcbe852763) -
Since i.MX8 MQ SPDIF interface is able to capture raw data.
Add support in SPDIF driver for this functionality.Signed-off-by: Viorel Suman
(cherry picked from commit e13a302391f56a6bb547ff89e3fac73941cee429) -
Remove redundant code and use snd_ctl_boolean_mono_info
instead.Signed-off-by: Viorel Suman
(cherry picked from commit 6ae5e1bf20eeff7e5ec821d96958329170359ce8) -
specify the spdif in imx8mm for the ipg clock is higher that
it can support 192kHzSigned-off-by: Shengjiu Wang
Reviewed-by: Viorel Suman
[ Aisheng: change dt part to json schema ]
Signed-off-by: Dong Aisheng -
The ipg clock is higher enough to support 192kHz in imx8
Signed-off-by: Shengjiu Wang
Reviewed-by: Viorel Suman -
Introduce a SoC data struct which contains the differences between
the different SoCs this driver supports. This makes it easy to support
more differences without having to introduce a new switch/case each
time.
And in imx8qm, the spdif has two interrupt numbers and the burst size
should be 2 for EDMA limitation to support dual FIFO.Signed-off-by: Shengjiu Wang
Reviewed-by: Daniel Baluta
[ Aisheng: change dt part to json schema ]
Signed-off-by: Dong Aisheng -
After commit 17b3f99a360d76 ("ASoC: SOF: imx: Replace sdev->private with
sdev->pdata->hw_pdata") sdev->private was replaced with
sdev->pdata->hw_pdata.Because there are some patches that are not upstream yet, this update
wasn't propagated to those patches.Signed-off-by: Daniel Baluta
-
Signed-off-by: Daniel Baluta
-
Signed-off-by: Daniel Baluta