Commit graph

852 commits

Author SHA1 Message Date
Linux Build Service Account
889bf17c53 Merge "ASoC: sm6150: Add vi_feed_tx channels to common controls" 2018-09-02 23:47:20 -07:00
Linux Build Service Account
64576e7a33 Merge "ASoC: Update params for CDC_DMA to fix speaker protection" 2018-09-02 23:47:20 -07:00
Linux Build Service Account
b764c33cef Merge "asoc: Add codec entry node for wcd937x to support ADIE RTAC" 2018-09-02 23:12:17 -07:00
Linux Build Service Account
4427c8b0a8 Merge "dsp: rate limit read/write error logs" 2018-09-02 23:12:16 -07:00
Linux Build Service Account
584f8171af Merge "ASoC: sm6150: Add logic to parse micbias from dt" 2018-09-02 23:12:15 -07:00
Linux Build Service Account
752c2f87d6 Merge "dsp: Add macro for packed 16B format" 2018-08-31 12:34:13 -07:00
Linux Build Service Account
6d180092fd Merge "asoc: wcd937x: enable headset detection" 2018-08-31 04:21:28 -07:00
Aditya Bavanari
4ae32fc38e asoc: Add codec entry node for wcd937x to support ADIE RTAC
Add changes to create codec entry node for wcd937x to support
ADIE RTC calibration.

CRs-Fixed: 2281591
Change-Id: I87f3c94995a8ec0c8c5e056891cb293946683885
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-31 04:12:56 -07:00
Vatsal Bucha
89262e64f9 ASoC: sm6150: Add vi_feed_tx channels to common controls
VI_Feed_TX Channels is common for both internal and
external codec. Add it in common controls.

Change-Id: I9354adebc3238a4d332e244d9dedccf02ddd9604
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-08-31 12:48:05 +05:30
Vatsal Bucha
680384aad1 ASoC: Update params for CDC_DMA to fix speaker protection
Update channels_max and dai_format for cdc dma hostless,
cdc dma playback and capture to fix speaker protection.
Also, use correct struct i.e. msm_dai_q6_cdc_dma_dai_data
in get/put functions.

Change-Id: I8f37a0c9411054830fdec2b4c072315c882ffc7c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-08-31 12:44:18 +05:30
Vatsal Bucha
e003f502de dsp: Add macro for packed 16B format
CDC DMA TX uses PACKED_16B format if speaker prot
is enabled. Add macro AFE_LINEAR_PCM_DATA_PACKED_16BIT
for proper value of format.

Change-Id: I1070e00d26a18c77e26ff2518ef4a1256a674e20
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-08-31 12:38:57 +05:30
Linux Build Service Account
fe11def3f2 Merge "asoc: wcd937x: fix compilation issue in mbhc" 2018-08-30 21:01:03 -07:00
Linux Build Service Account
adf08dfb4f Merge "asoc: bolero: Add wsa macro sidetone and loopback routes" 2018-08-30 20:27:49 -07:00
Linux Build Service Account
15f0661a6b Merge "asoc: swr: master controller fixes for tanggu" 2018-08-30 20:10:10 -07:00
Linux Build Service Account
4a4336c1f3 Merge "asoc: Talos-tanggu bringup fixes" 2018-08-30 20:10:10 -07:00
Linux Build Service Account
55d2545daa Merge "asoc: bolero: Add codec version info to support ADIE RTC" 2018-08-30 14:14:49 -07:00
Linux Build Service Account
8bc6a255aa Merge "asoc: routing: update routing to support sound tracking" 2018-08-30 13:05:52 -07:00
Ramprasad Katkam
997da40118 asoc: wcd937x: enable headset detection
Enable mbhc on wcd937x for headset insertion and
removal detection.

Change-Id: I0b2ae7ea061a99ad89f9adea00c898dac4442ca6
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-08-30 20:13:47 +05:30
Vatsal Bucha
477f211b8a ASoC: sm6150: Add logic to parse micbias from dt
Add logic to parse micbias info if it is
specified in dt.

CRs-Fixed: 2281591
Change-Id: I943cedcadeceaa4a7da3422cf427d5679fe703b6
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-08-30 14:57:51 +05:30
Linux Build Service Account
aa9c44a396 Merge "ASoC: wsa881x: Update temperature value during device down" 2018-08-29 23:28:46 -07:00
Aditya Bavanari
5c1f1aada7 asoc: bolero: Add codec version info to support ADIE RTC
In order to differentiate between targets, codec version info
is used. Assign codec version based on number of macros
registered in bolero.

CRs-Fixed: 2281591
Change-Id: I0f4cf0e49645d3acf0c413ea93d9c0261ac98848
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-29 11:41:21 +05:30
Ramprasad Katkam
1f22126590 asoc: swr: master controller fixes for tanggu
Add locking for soundwire fifo operation as same
function call can be used at a time by a different thread
like mbhc, and fix register definitions in header.
Add soundwire slave interrupt clear registers as part of
slave interrupt event in master interrupt handler.

Change-Id: I94d9b7ac09192dbf8aa3248d35956b380430ee0b
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-08-28 22:52:07 -07:00
Ramprasad Katkam
a72eb7843a asoc: swr: Fix logic to retrieve swr slave device handle
Fix issue in the loop logic of retrieving swr slave device handle
by passing device node.

Change-Id: I5c31259b1257de730748b8522537afa9870f24e4
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-08-29 11:21:11 +05:30
Ramprasad Katkam
9c2394a6e4 asoc: Talos-tanggu bringup fixes
Bringup fixes to enumerate tanggu codec on talos.

Change-Id: Ic9c43ec0b870f6fec3c6d21fd4d77606c7ed94b1
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-08-29 11:04:43 +05:30
Ramprasad Katkam
f747677234 asoc: wcd937x: fix compilation issue in mbhc
Fix compilation issue in wcd937x mbhc file.

Change-Id: I49057cdf108268f60795f568cc7efb43d53d01a3
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-08-29 10:41:08 +05:30
Karthikeyan Mani
0c1f938992 dsp: rate limit read/write error logs
Rate limit dsp read/write error logs to reduce log
prints during SSR scenario for read/write failures.

Change-Id: I031be5ebd39bdd11dc8e1eb92c77ed782f1dc149
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-08-28 14:32:37 -07:00
Linux Build Service Account
4e3fcbf103 Merge "ipc: fix error message to reflect the correct error" 2018-08-28 04:54:00 -07:00
Aditya Bavanari
c5c7d44d96 asoc: routing: update routing to support sound tracking
Add support for TX codec dma interface to support source
tracking and sound focus mixer controls.

Change-Id: I11dc36a2f86164c7dc3a24357e68a04a8099cb4a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-08-27 11:02:28 -07:00
Laxminath Kasam
6fc2e746e7 asoc: bolero: Add wsa macro sidetone and loopback routes
Add support for wsa macro sidetone and adie loopback
widgets and route connections.

Change-Id: I5d830bc868e6fa0f0a56474f11867e6dd55ae535
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-08-27 15:06:18 +05:30
Linux Build Service Account
3712485b8f Merge "ASoC: wcd937x-mbhc: Add support for headset moisture detection" 2018-08-25 04:00:44 -07:00
Linux Build Service Account
9970fc4999 Merge "ASoC: wcd934x-dsp-cntl: add debugfs node to perform debug dumps" 2018-08-25 04:00:44 -07:00
Linux Build Service Account
24a544956c Merge "asoc: qcs405: add missing dai links" 2018-08-25 04:00:43 -07:00
Linux Build Service Account
98d3a76d95 Merge "asoc: wcd934x: add support for SSR handling using SND event FWK" 2018-08-25 04:00:39 -07:00
Linux Build Service Account
11b869ccae Merge "dsp: asm: initialize variables before use" 2018-08-25 04:00:39 -07:00
Linux Build Service Account
8d1c98c9b6 Merge "asoc: routing: sound tracking updates for qcs405" 2018-08-25 04:00:38 -07:00
Vignesh Kulothungan
61e56a95a3 dsp: asm: initialize variables before use
Initialize flag variables before use in spinlocks.

CRs-Fixed: 2257317
Change-Id: I8b5973c1dfe3c7266a71d4e8ef4d5884b685ae5d
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-08-23 09:52:35 -07:00
Mangesh Kunchamwar
654b06b0ef asoc: routing: sound tracking updates for qcs405
Add support for codec dma interface to sound
tracking mixer control.

Change-Id: Ic8296e61d14526469c62a709f19c6357b3ada8d6
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-08-23 12:40:26 +05:30
Mangesh Kunchamwar
b2438de066 asoc: qcs405: add missing dai links
Add WCN dai links for enabling BT use cases.

Change-Id: I1de1de0d9de0115d89e6a10f79a2cbf0a54d0e44
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-08-23 12:28:39 +05:30
Banajit Goswami
c366b45381 ipc: fix error message to reflect the correct error
Fix error message when registration with SND event fwk
fails, to reflect the correct information.

Change-Id: I15133557666ff1b83073e1ce26ee9c4f1b4441ae
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 17:56:13 -07:00
Banajit Goswami
57245da21e asoc: wcd934x: add support for SSR handling using SND event FWK
Add support for SSR/PDR handling using SND event framework.

Change-Id: Ia96858ed6dc43cbb80d01a7797abb57442813d3b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 10:34:42 -07:00
Banajit Goswami
09618575ad dsp: q6core: add support for SSR handling with SND event FWK
Add support for SSR/PDR event handling using SND
event framework.

Change-Id: Ia80c0bc7b99866fbb5c0b8c8ee7cdadeeb0fb0e9
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 10:34:41 -07:00
Banajit Goswami
40bdd6b55a ipc: apr: add support for SSR handing using SND event FWK
Add support for SSR/PDR notification handling using SND
event framework.

Change-Id: I2d147738c3ba2b498b0ce9824201adce71689e2d
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 10:34:39 -07:00
Banajit Goswami
06183689db soc: add support for SND event framework
Add support for SND event framework for helping with
notifications among different audio modules/drivers.
The SND event framework functions with a master/client
mechanism, where each client and the master register
with the framework, and then notifies its own status
(UP/DOWN). Each master will share a list of clients it
is interested in, and once all the clients are registered
and notified UP, the framework's state will be UP. On the
other hand, as and when any one of the client, or the master
reports its state as DOWN while the framework is UP, the
framework state would be changed to DOWN, and all clients
and the master would be let know about the change.

Change-Id: Ief6f26c5d5626c29246472ad71c247d71ee9e92f
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-08-22 10:34:32 -07:00
Linux Build Service Account
711dbb3dca Merge "asoc: wcd-dsp-mgr: reinit ssr ready flag for adsp/wdsp ssr" 2018-08-21 11:07:29 -07:00
Sudheer Papothi
eb8d8cb100 ASoC: wcd937x-mbhc: Add support for headset moisture detection
Add support for headset moisture detection on wcd937x codec.

Change-Id: Ib9021869a5d3a0d4e5b8a912b235b68fad90f94f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-08-20 14:07:25 -07:00
Sudheer Papothi
4b9d12f1e9 ASoC: wsa881x: Update temperature value during device down
when wsa881x device is down, reading temperature from driver
returns error. Instead of propagating the error, return the
cached temperature value to the thermal framework to avoid
iterative calls to read the temperature that results in
excessive logging.

Change-Id: I529c83eafec63004c2469bf16a0b53bd5accbdbb
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-08-18 05:24:36 +05:30
Linux Build Service Account
b9975a040e Merge "apr: fix race condition in apr reset" 2018-08-16 20:43:36 -07:00
Xiaoyu Ye
30765fcae3 ASoC: wcd934x-dsp-cntl: add debugfs node to perform debug dumps
Currently, for any WDSP errors, the driver collects the debug
dumps/information based on trigger from userspace. This is protected
under CONFIG_DEBUG_FS and should not be run unless stress tests are
executed and this functionality is explicitly enabled since
performing debug dumps could possible leave the WDSP in bad state.
Add debug node to control dumping debug information and not rely
only on CONFIG_DEBUG_FS

To enable debug dumps:
echo 1 > /sys/kernel/debug/wdsp0/debug_dump_enable

To disable debug dumps:
echo 0 > /sys/kernel/debug/wdsp0/debug_dump_enable

Change-Id: I67d8781839d9caee16e6bf6a5befd9010ccaafc0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-08-15 18:23:16 -07:00
Meng Wang
d4e11ac7a4 asoc: wcd-dsp-mgr: reinit ssr ready flag for adsp/wdsp ssr
When adsp/wdsp SSR happens, WDSP_SSR_TYPE_WDSP_DOWN/WDSP_SSR_TYPE_CDC_DOWN
would get received by wcd-dsp-mgr. wcd-dsp-mgr would clear current work and
init wdsp when adsp is up and ready_compl flag is set to ready. Sometimes
ready_compl flag is not cleared and wdsp initialization would happen when
adsp/wdsp is down which would cause kernel panic.
Reinit ready_compl flag when adsp/wdsp SSR happens.

Change-Id: I45186abba7992ee6912c5b0da171ef37b04e2e71
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-08-15 14:57:53 -07:00
Sudheer Papothi
a45a56e824 ASoC: wcd-mbhc: Avoid headset jack corrosion due to moisture
Detect moisture in the headset jack and avoid headset jack
corrosion due to presence of moisture over prolonged duration.

Change-Id: I0227e516feb58c96ddf6a8fbc32423bfe7733ca6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-08-16 03:27:20 +05:30