Commit graph

1,552 commits

Author SHA1 Message Date
Karthikeyan Mani
a27b0c32ea ASoC: codecs: qcrg update for TX paths
Add qcrg updates for AMIC and DMIC register updates
and modes.

Change-Id: I7401b21cfffd2c40f456d985e2b3ea1988f4ba6c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-16 11:19:33 -08:00
Linux Build Service Account
bde36b8fc2 Merge "ASoC: msm: add external sound device dai's for kona" 2019-01-09 16:50:48 -08:00
Linux Build Service Account
a024075d5b Merge "asoc: codecs: Update power setting for CLS_H_LOHIFI mode" 2019-01-08 21:26:01 -08:00
Linux Build Service Account
2bb5bf4130 Merge "asoc: csra66x0: Add support for 16ch audio playback" 2019-01-08 16:33:59 -08:00
Karthikeyan Mani
eaad2ede41 ASoC: msm: add external sound device dai's for kona
Add BT and external display dai's and ops for kona.

Change-Id: Ib2c2a5c5342de657f7c4b8ef04eed88242baa101
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-08 14:37:30 -08:00
Karthikeyan Mani
5eb13428f1 asoc: msm: add fsa switch functionality for kona
Add fsa USB type C analog audio functionality and
update codec function calls from machine driver.

Change-Id: I493241d633d1f233930c714de08ad6ce8ece5b83
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-08 14:33:48 -08:00
Gerrit - the friendly Code Review server
e80520e1e4 Merge changes into audio-drivers.lnx.4.0 2019-01-08 05:37:15 -08:00
Linux Build Service Account
7d3f5b34d5 Merge "asoc: codecs: Increase timeout for session close during SSR/PDR" 2019-01-08 05:32:12 -08:00
Linux Build Service Account
1ec5816c0b Merge "dsp: Add frame size control parameter for AAC encoder" 2019-01-08 05:32:06 -08:00
Linux Build Service Account
f6416bbf7a Merge "dsp: afe: add support for VA macro codec DMA interface" 2019-01-08 05:32:05 -08:00
Linux Build Service Account
c4967e8fa0 Merge "asoc: bolero: add support to enable VA macro BE DAI on Kona" 2019-01-08 05:32:04 -08:00
Linux Build Service Account
726f8d0cf7 Merge "ASoC: msm: add VA Macro's BE DAI links for bolero" 2019-01-08 05:32:02 -08:00
Linux Build Service Account
82c45cde0a Merge "soc: swr-mstr: Change timeout for clk disable during ssr" 2019-01-08 05:32:01 -08:00
Linux Build Service Account
706d3a9a51 Merge "asoc: wcd937x: stop mbhc during ssr down" 2019-01-08 05:32:00 -08:00
Linux Build Service Account
a0b8337922 Merge "asoc: bolero: Call swr device down before setting ssr down" 2019-01-08 05:31:57 -08:00
Linux Build Service Account
e7d0905375 Merge "soc: swr-mstr: Reset swr only during init or ssr" 2019-01-08 05:31:56 -08:00
Linux Build Service Account
4c11ba0a0f Merge "asoc: wcd937x: Fix register names and properties" 2019-01-06 20:27:03 -08:00
Linux Build Service Account
becc3cca8d Merge "asoc: codecs: mbhc: Detect cross connection for mono headsets" 2019-01-06 06:32:28 -08:00
Linux Build Service Account
0c6654ade2 Merge "ASoC: wcd937x: Enable watchdog interrupt" 2019-01-06 06:32:26 -08:00
Linux Build Service Account
9cdd3ad6f9 Merge "asoc: dsp: ipc: Reduce wait timeout to 1 second" 2019-01-06 06:32:24 -08:00
Linux Build Service Account
a5443b30ea Merge "asoc: csra66x0: Support of sysfs interface" 2019-01-06 06:32:20 -08:00
Linux Build Service Account
b460c82036 Merge "audio-kernel: asoc: Remove extra const def" 2019-01-06 06:32:18 -08:00
Linux Build Service Account
20234e1e39 Merge "ASoC: bolero: Remove unwanted logs at bootup" 2019-01-06 06:32:10 -08:00
Linux Build Service Account
1d284cb3b5 Merge "asoc: sm6150: Add TX_CDC_DMA_TX_0 backend dailink" 2019-01-06 06:32:08 -08:00
Linux Build Service Account
624abc38c9 Merge "dsp: update EC reference port only if channels are configured" 2019-01-06 06:32:04 -08:00
Linux Build Service Account
a43f819ec7 Merge "soc: swr-mstr: Fix headset detection issue" 2019-01-06 06:31:59 -08:00
Linux Build Service Account
54b31be6db Merge "soc: swr-mstr: Hold suspend during hw wakeup interrupt" 2019-01-06 06:31:41 -08:00
Linux Build Service Account
8f31e89b77 Merge "asoc: wcd937x: Change voltage for micbias depending on dt value" 2019-01-06 06:31:32 -08:00
Linux Build Service Account
ec5e59e931 Merge "dsp: return ENETRESET error if apr is down" 2019-01-06 06:31:22 -08:00
Linux Build Service Account
b80e10875b Merge "Asoc: sm6150: Add compress capture support" 2019-01-06 06:31:11 -08:00
Linux Build Service Account
64ea866ad3 Merge "asoc: wsa881x: change WSA temparature log level to pr_debug" 2019-01-06 06:30:56 -08:00
Linux Build Service Account
d67f7487ef Merge "asoc: msm-dai-q6-v2: add a new VA macro DMA TX CPU DAI" 2019-01-06 06:30:41 -08:00
Ramprasad Katkam
c87efeb82b soc: swr-mstr: Change timeout for clk disable during ssr
MBHC operations may take around 200ms to get stopped
during ssr. Match timeout for clock voting to be zero
to allow any pending mbhc operation to exited.

Change-Id: I82162e96595fb337f19192f58f1aa7792e8b0e90
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-03 18:39:22 -08:00
Xiaoyu Ye
8341eefc48 dsp: afe: add support for VA macro codec DMA interface
VA macro on Kona has three TX codec DMA interface. The
current AFE driver only supports two codec DMA interface.
Add support to enable the third one in AFE driver.

Change-Id: Ie0f6241ef37bc03ad9adb1c4fe82f82468caec25
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-03 14:57:47 -08:00
Ramprasad Katkam
a2958a6205 asoc: wcd937x: stop mbhc during ssr down
Stop mbhc operations during ssr down to cancel
any pending detection sequences.

Change-Id: I6aa8c61c2cc74fc08adf57c58673acaa753ac322
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-03 09:45:54 +08:00
Xiaoyu Ye
5efecda1cb asoc: bolero: add support to enable VA macro BE DAI on Kona
VA HW macro supports three BE DAIs on Kona. Add support to
enable the third one.

Change-Id: I418a6a0bb1bcbc06fe71de0977d974432e1d6c22
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 17:30:13 -08:00
Xiaoyu Ye
2228bf0b29 ASoC: msm: add VA Macro's BE DAI links for bolero
Add BE DAI links of VA macro for bolero in Kona's machine driver.

Change-Id: I230bf7227c5436b5a2e8fed956337f87fcc86a4e
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 17:27:38 -08:00
Xiaoyu Ye
f439aedf1f asoc: msm: routing: add support for VA macro DMA interface
VA macro on Kona has three DMA TX ports. Add support routing
for the third VA macro DMA TX port to add backend and the
corresponding front ends.

Change-Id: I07298045292443af1220d9b95f4cd7aee0b79c66
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 16:40:01 -08:00
Xiaoyu Ye
a83ad85054 asoc: msm-dai-q6-v2: add a new VA macro DMA TX CPU DAI
VA macro in Kona has three DMA TX ports. Add a new VA
DMA TX CPU DAI in the DSP DAI driver to use it on Kona.

Change-Id: Ic144dbed1bd63af6f0150f854fdb74d57e156839
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 12:12:26 -08:00
Aditya Bavanari
ce4f3d9b59 asoc: codecs: Increase timeout for session close during SSR/PDR
Userspace takes 10 seconds to close the session when
pcm_start fails due to concurrency with PDR/SSR.
Match the SSR timeout in va macro to user space
session tear down delay.

Change-Id: I1e0fb4bdb25a43cbe7c345a47c115410b964e6eb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-01-02 18:10:43 +08:00
Ramprasad Katkam
5ee54aee41 asoc: bolero: Call swr device down before setting ssr down
Invoke swr device down callback to set soundwire master
to reset state before setting ssr down flag. This is to
ensure master is reset to proper state after ssr/pdr.

Change-Id: Ifb5548f603ac03b772006314f4723c0ac0176928
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 01:37:06 -08:00
Ramprasad Katkam
44b7a9602b soc: swr-mstr: Hold suspend during hw wakeup interrupt
Hold system suspend when hardware wakeup interrupt is
received to resume soundwire master.

Change-Id: I99a58aa7d28cfa514d72bacc8c6fc6e95fbe038a
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 01:34:02 -08:00
Ramprasad Katkam
b4c7c680ef soc: swr-mstr: switch to bank 0 before ssr/pdr
Do bank switch to default bank during ssr/pdr as master
is reset to default state. This avoids wrong state of
swr master during pdr.

Change-Id: I86a7bd53d471e9d864d25dcb84ad8fe12151cc0d
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 01:32:29 -08:00
Ramprasad Katkam
a4c747b6d5 soc: swr-mstr: Reset swr only during init or ssr
Reset swr only during init or ssr-pdr scenarios.
Do not reset swr during clock stop, which would
result in bad state of master and cause error
interrupts.

Change-Id: I88e071921409a5b5797aeedb8e7cb57cb5d5bb9a
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 17:31:14 +08:00
Aniket Kumar Lata
be83735305 dsp: Add frame size control parameter for AAC encoder
BT sink devices have a limitation on the packet sizes
they can receive and handle from BT sources. AAC encoder
can produce output frames which can vary in size based on
content being encoded. If frame size exceeds MTU size of
BT sink device, it will lead to incorrect decoding of
frames in BT sink.
Add a frame configuration parameter (MTU/Peak bitrate)
for AAC encoder to solve this problem.

Change-Id: Ia7795049e982400b0b3657b0b3a8990fc6920e38
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2019-01-02 17:28:08 +08:00
Surendar Karka
de79a06acf dsp: update EC reference port only if channels are configured
ADM open is failed due to payload size not getting updated
with ec reference size. Update EC reference port only if
EC reference channels are configured.

Change-Id: Ic2dd6a3cf805c1ea40d71d0b62b6e867167d169e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-01-02 17:23:23 +08:00
Vatsal Bucha
83e6ee1c40 asoc: sm6150: Add TX_CDC_DMA_TX_0 backend dailink
TX_CDC_DMA_TX_0 supports three channels, therefore it
can be used for rx_macro_echo. Add required backend dailink.
Also remove AMIC4 from ignore_suspend as it is not used for talos.

Change-Id: I74b7adca9fa4001866232c1a9173e865c2a169c4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 17:19:44 +08:00
Vatsal Bucha
39ead2c1e8 ASoC: bolero: Remove unwanted logs at bootup
Correct name of widgets for tx macro from
TX SWR_MIC to TX SWR_DMIC. Also assign codec pointer
to rx_priv before calling rx_macro_init_bcl_pmic_reg.

Change-Id: I268d79413c53bcd2d8e7a391859b71b7a7e3f64e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 17:16:23 +08:00
Vatsal Bucha
c2d6c22d1d asoc: bolero: Add routing for rx echo reference
Add mixer control and routing to enable echo reference
for rx_macro.

Change-Id: Ic1095eaa8024f2cb61722609daae94bc645b263b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-02 17:13:18 +08:00
Ramprasad Katkam
ebcfca4e9a asoc: codecs: mbhc: Detect cross connection for mono headsets
Mono headsets have only one channel connected. Hence make cross
connection decision based on the voltage result of alteast one
channel showing cross connection.

Change-Id: I22a4ea7e25d09e785e7141f4a74c2830fdff555e
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2019-01-02 17:07:27 +08:00