commit cd3ac9affc43b44f49d7af70d275f0bd426ba643 upstream.
Fix the audio clock rate according to the datasheet.
Reported-by: Dushara Jayasinghe <dushara@successful.com.au>
Signed-off-by: Songjun Wu <songjun.wu@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
The wcd934x codec DSP (WDSP) has clock gate that can be controlled by
driver or the hardware controller to ungate the clock to the WDSP. Due
to issues seen during back to back testing, it is found that the clock
is not properly ungated by the hardware controller and can cause hang
on the WDSP. Fix this issue by forcing the clock to be ungated from the
driver always.
CRs-fixed: 2024032
Change-Id: I668f2bb71e55474703997513dccacdc58a70a1d0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Clock framework in LPASS expects valid clock frequency
for slave mode (EBIT) as well. This is required to maintain
corresponding voltage as per respective frequencies by clock
team in frequency plan. Avoid sending zero clock frequency
in clock enable even though it is slave mode.
CRs-Fixed: 2028063
Change-Id: Ie9c28a921ee7bbeda67b0591f0caf0a88ea2d19c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update TDM slot mapping and add hostless FE DAIs for customized
sound card on automotive platform.
CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.
CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.
CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Update TDM slot mapping and add hostless FE DAI for customized
sound card on automotive platform.
CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add support for 7 channel mapping in asm to support
7 channel playback.
CRs-Fixed: 1114041
Change-Id: I0daf306d4495d3966406d05fc6328b2956a2d11f
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
This reverts 'commit 95939f7808e6 ("ASoC: wcd9335:
enable APC in Tx path")'
APC (Automatic Peak Control) causes volume difference
in the audio signal if two ADCs share the same mic
input.
CRs-Fixed: 2021320
Change-Id: I63d83fd3e511f40f4da82afb4993f360b4c9f058
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Soundwire control data is NULL if there is no soundwire slave
device enumerated.
Add null check to avoid panic.
Change-Id: Ief60d69c36c2a9831825f38da2c9a3f6dd5f13dc
CRs-Fixed: 2020293
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Initialize completion structure in wcd_mbhc_initialize
and wcd_mbhc_init to handle irq handlers getting called
before the completion structure is initialized and ready
for use.
CRs-fixed: 2020227
Change-Id: Ibc7a5974adfe803c5b9892986165e2e1e3151fc7
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Update Multimedia1 FE to support up to 8 channel audio capture.
CRs-fixed: 2028896
Change-Id: I838ecd690fcdeef411d35a5facbe9c40a76b68c3
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Update Multimedia1 FE to support up to 8 channel audio capture.
CRs-fixed: 2028896
Change-Id: I838ecd690fcdeef411d35a5facbe9c40a76b68c3
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add TERT_TDM_RX_4 BE DAI link into automotive sound card
DAI link array. Add kcontrols for channel and bit format
configuration for TERT_TDM_RX_4 BE.
CRs-fixed: 2018097
Change-Id: I1fef2f6a799aeeee0752f3ae2462dcd26a1d66c9
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add support for 7 channel mapping in asm to support
7 channel playback.
CRs-Fixed: 1114041
Change-Id: I0daf306d4495d3966406d05fc6328b2956a2d11f
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
Clock framework in LPASS expects valid clock frequency
for slave mode (EBIT) as well. This is required to maintain
corresponding voltage as per respective frequencies by clock
team in frequency plan. Avoid sending zero clock frequency
in clock enable even though it is slave mode.
Change-Id: If3d6ac4f1e7ce2032dbaa0e0475e8e1abd2692e8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Modify detection sequence to support the fast special headset
detection with more reliable plug type result.
Change-Id: I74df2c8c54e49a3888511843a15122ca708425ed
CRs-Fixed: 2022622
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Add TERT_TDM_RX_4 BE DAI link into automotive sound card
DAI link array. Add kcontrols for channel and bit format
configuration for TERT_TDM_RX_4 BE.
CRs-fixed: 2018097
Change-Id: I1fef2f6a799aeeee0752f3ae2462dcd26a1d66c9
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Update the machine driver probing function to check the ADSP state
at the beginning of the function and return -EPROBE_DEFER if the
ADSP state is down. This reduces the amount of time spent in each
deferred machine driver probing.
The machine driver depends on a set of other drivers which ultimately
depends on the ADSP state to be up. Currently the machine driver
detects that its dependent drivers not being ready at a late stage
of the probing.
CRs-fixed: 2001641
Change-Id: I8fdaa7261aecee48f1927acf1303a52e48753006
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add support for 5 and 7 channel for TDM hw param configuration.
CRs-fixed: 2021342
Change-Id: I933d5aa29c5c5578c884a3533772747db721fc0f
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add support for customized sound card that uses customized
TDM slot mapping and DAI links for automotive platform.
CRs-fixed: 2020063
Change-Id: I887b33d23d2af8af61cf15b499d14afbc9544e37
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add route from Multimedia FE to TERT_TDM_RX_4 BE.
CRs-fixed: 2018097
Change-Id: I22de6c7059ae40956d82176edc130047bd2921f4
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Fix the issue where copy_from_user interface is not used properly.
Cleanup the ioctl function so that there is no illegal memory access.
Change-Id: Iffe2bbc0d33f365a852bb0974ee5c45ab724214b
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
Add support for ADSP Stream Cmd and Callback for PCM
and compress driver. Mixer controls are added as interface
for ADSP stream cmd and callback event.
CRs-Fixed: 2023802
Change-Id: Ib2de5aebe257332171c3b1ebe3d26b3422d61c97
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add support for 5 and 7 channel for TDM hw param configuration.
CRs-fixed: 2021342
Change-Id: I933d5aa29c5c5578c884a3533772747db721fc0f
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
Add support for customized sound card that uses customized
TDM slot mapping and DAI links for automotive platform.
CRs-fixed: 2020063
Change-Id: I887b33d23d2af8af61cf15b499d14afbc9544e37
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>