As yupik has fm on sec mi2s, add corresponding dai for
sec mi2s.
Change-Id: I898126136499786f0bb76394269016b501114a57
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This reverts commit ed43bdaa54
reversing changes made to 53feb46e27.
Change-Id: Ic9fdc04d08c9bfd4b0be2f29c315e1602375bddd
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
As a part of SSR/PDR, afe_close() is called. If APR handle
is NULL, BT modules were not unloaded. Unload the modules
to recover post SSR/PDR.
Change-Id: I69bdb3ab1d55ad9a0a8ed3eed069c97af9143722
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
Avoid copy to user more than requested buffer size
to avoid memory corruption.
Change-Id: Ibf1607f777a358ebd16fd8b8728809afda34eba7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Register SWRM_DP_PORT_CTRL_BANK only has sample interval low.
When disconnecting swr port, only update sampleinterval low for
active port.
Change-Id: Iec7c266fce76ce140a43f9e410126ad5560f5b81
Signed-off-by: Meng Wang <mengw@codeaurora.org>
FLUENCE_NN_COPP_TOPOLOGY doesn't support stereo input.
Update channel number to mono for FLUENCE_NN_COPP_TOPOLOGY.
Change-Id: I51c0b55cc2bb7379ea79021fe0fc937ffbea6396
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Long int negative value passed as part of ucontrol structure
is assigned to int num_app_cfg_type making it positive and
leading to overflow while populating maximum supported
lsm_app_type_cfg structures.
Change-Id: I81e3c75eea82265c8e8e1b3f8f95d9e334c895c4
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
We do not set the dma_mask so by default it only
accepts 32bit dma address. setting the dma_mask to
DMA_BIT_MASK(64) makes it accept 64 bit dma address
as well
Change-Id: I3c5dc78e69432f261bee26bf9e0d8d097bc16d09
Signed-off-by: Huicheng Liu <huicliu@codeaurora.org>
Add spin lock to synchronize the audio_aio_open and SSR event
to avoid accessing uninitialized wait events during SSR.
Change-Id: I3ba0100a653903f9a4d8809d0d831d2ab04f9622
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
Add control to set VMAX to adjust different vibrator
setting from userspace.
Change-Id: I7300e4f0ae57e403c8fc79db38598946289effb6
Signed-off-by: Meng Wang <mengw@codeaurora.org>
When ext clk stop wakeup and slave_pending_irq come together
then interrupt at swrslave is cleared due to calling
enable_slave_irq. Do not clear interrupts for enable_slave_irq
when its called from clk stop wakeup.
Change-Id: Ia710030ab80306d6750bea7264f0d4c07053d701
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add support to use debugfs to crash device when q6lsm_apr_send_pkt
timed out due to no response from ADSP. By crashing the device,
crash dump can be collected to aid debugging on ADSP.
Change-Id: I2c53f62a9f99ee6f27fe68894dfbd3dc3aa52ed1
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Check and enable audio core vote only when reference count of
mi2s is 1 and disable only when reference count is 0.
Change-Id: If6a8c18feec30fa83363804d5160fd6996aa0319
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
As yupik idp has wcd937x support, add port map for same.
Change-Id: I9b907fc2e5aa4a9ad810f01f4be5cc5b2d1659b5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add function to get wcd937x codec variant. Also add wcd937x
support in msm dailinks for yupik.
Change-Id: Id794a12da0f5aa771727d9f03ef949ae1d32b9da
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
During SSR use cases, when AFE APR handle is NULL
and AFE close is invoked, mutex unlock is done without
locking. Fix it and bail out without unlocking the
mutex in this scenario.
Change-Id: Ia2988b56425d8c2d5c726d5860c13e655e7e4ed1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Mark IIR filter coefficient registers as volatile to
get actual coefficient when running tinymix.
Change-Id: I0be0a8caef4df5f987abf3981b91d5ec924b883b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
In mmap mode, when playback is triggered, send as much as periods
to DSP.
In previous implementation, only 1 period be sent to DSP at trigger
time, it's consumed in DSP and then send back a write-done event,
which will be captured and trigger another write action in the
event_handler.
The problem is, any jitter in the event transmission will result
in a delay on the next write, and a gap in the output is noticeable.
A multiple-periods queue in DSP can filter out such a jitter to
avoid impact to the output.
Change-Id: I6f04971c076409b5ada8e40cea2b4e01de88b5a9
Signed-off-by: Han Lu <hanlu@codeaurora.org>
Signed-off-by: Sitong Chen <sitochen@codeaurora.org>
Add check if irq is disabled before enabling PDM WD and if
its already enabled before disabled.
Change-Id: Ia36653568b21f9b41dfcdd1da13300f8850c4ea9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>