Gráfico de commits

1290 Commits

Autor SHA1 Mensaje Fecha
Linux Build Service Account
8d72268cd2 Merge "dsp: add BT sink support in AFE driver" 2018-11-02 01:53:31 -07:00
Xiaojun Sang
80eb5ddfdd asoc: wcd937x: disable TX CH2 after power down
TX channel2 is not disabled after power down. It leads to
noise at the beginning of next recording on CH2.
Disable it after power down.

Change-Id: If12a84df52b9c8cd55de2bdcb91f950b054898b8
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-11-02 12:42:50 +08:00
Vidyakumar Athota
aade87e1f2 dsp: increase afe apr_send_pkt timeout to 2 seconds
Some USB headsets take more than 1 second to respond
for afe port start command so increase the timeout value
to support playback on slow responsive USB headsets.

Change-Id: I76c43bafe3c9e1e2d8a4a23059053db6bfc0188b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-11-01 11:09:57 -07:00
Mangesh Kunchamwar
68a4a15c78 dsp: fix issue with MDF shared memory access in QCS403
MDF shared memory uses different SID from other use cases.
Existing memory map function hard codes SID from audio ion.
Use separate map function for MDF to make use of proper SID
for MDF shared memory in 32bit build.

Change-Id: I0e854054ad6f58344644f3386618986eab238549
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-01 23:36:18 +05:30
Derek Chen
2bb55777d4 ASoC: msm: routing: add ec ref for sec and tert tdm
Add ec reference support for SEC_TDM_TX_0 and
TERT_TDM_RX_2 ports.

Change-Id: I3116b942fbd3c6c7bea14a77fdcd840dcab059aa
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-11-01 09:26:27 -07:00
Linux Build Service Account
f5a1eb31f5 Merge "asoc: Add effects controls in loopback driver" into audio-drivers.lnx.3.1 2018-11-01 01:49:04 -07:00
Surendar Karka
05392ab0da asoc: qcs405: add machine driver support for SLIMBUS_9_TX
Add machine driver code to support SLIMBUS_9_TX port.
SLIMBUS_9_TX BE port is used for split A2DP sink usecase.

Change-Id: I9628a46c4b2b2fe0f5fb8c9861975fd4630bdcdb
2018-10-31 23:16:24 -07:00
Florian Pfister
cc99c35118 asoc: qcs405: add A2DP sink support in machine driver
Add support to configure sample rate for SLIM_9_TX.

Change-Id: Icea2b7c707840be60a23707947c9811e83e4789d
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:15:46 -07:00
Florian Pfister
522073c370 asoc: add A2DP sink support in dai-driver
Add decoder config support for split A2DP sink.

Change-Id: If71a2b2ae7f0f0500f196b0552ab185c9f37b778
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:59 -07:00
Florian Pfister
f1b8d5bdea dsp: add BT sink support in AFE driver
Add different media format support in AFE decoder.

Change-Id: Icdc3884882c34236f5ab02355dfbabdd2a1becd2
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:03 -07:00
Weiyin Jiang
4e6bb44f61 ASoC: correct read size return value for erroneous conditions
Wrong return value of in_read() causes integer overflow in omx,
which aborts the process. Correct the return value for erroneous
conditions.

CRs-Fixed: 2336645
Change-Id: Ib01827adc92700876f3b11816857f0086b1b5f94
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2018-11-01 11:21:32 +08:00
Xiaojun Sang
41de9e1640 dsp: afe: change lock sequence to avoid deadlock
Lock sequence for afe_alloc_cal does not comply with others. To
avoid deadlock, move afe_cmd_lock to the top caller in AFE.

Change-Id: I4ce03034c642c8b5e7e9e5e2ff4c73644980484b
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-10-31 03:08:26 -07:00
Ramprasad Katkam
18bc8e228a soc: swr-mstr: suppress continuous warning interrupts
Some warning interrupts keep flooding as long as data
path is enabled. Disable the interrupt after the first
interrupt to avoid flooding, and reenable for new data
path.

Change-Id: Ie4cd447be908ab40568fa24d6111d8a1f0483ee4
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-31 15:34:26 +05:30
Hari Veerubhotla
dcab67c504 Initial Android target definition for trinket.
Change-Id: Ib55a9013b0fa5bcda0e5d2d17d1741e607a9c9b5
2018-10-31 02:40:21 -07:00
Trinath Thammishetty
d49fecb934 asoc: Add effects controls in loopback driver
Add audio effects related controls in transcode loopback driver to
support audio effects in hardware loopback usecase.
Update transcode loopback driver to support configuration of DSP render
window. Render window is used by DSP to take rendering decision.
i.e whether input frame should be rendered, dropped or repeated.

Change-Id: I09bb725d980b8051eae3a245584e2b66cd2af7ff
Signed-off-by: Trinath Thammishetty <tthamish@codeaurora.org>
2018-10-31 02:36:34 -07:00
Ramprasad Katkam
833035127f soc: swr-mstr: Change master interrupt to edge type
Change master interrupt to edge type handling to avoid
recurring interrupts during ssr. Add loop logic to handle
concurrent edge type interrupts.

Change-Id: I3c789a24c035a6a00b1a2f515aa5328546ad80a9
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-29 01:25:43 +05:30
Linux Build Service Account
1ab95845cf Merge "soc: swr-mstr: Avoid race condition during device up" 2018-10-26 02:05:44 -07:00
Linux Build Service Account
04804945eb Merge "asoc: bolero: Fix gfmux access during SSR" 2018-10-25 19:21:08 -07:00
Linux Build Service Account
1563894fb6 Merge "asoc: add limit checks for copp index" 2018-10-25 19:21:06 -07:00
Ramprasad Katkam
86c45e0761 soc: swr-mstr: Avoid race condition during device up
During device up call from platform driver, if master
is already up pm get_sync is currently skipped. However
pm suspend can get called after this check. Hence do a pm
get_sync even if master is already up to avoid race
condition.

Change-Id: I1779db3d65f58bda220d1ec07706e91745814c1f
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-25 19:25:54 +05:30
Linux Build Service Account
f79c5c1f41 Merge "asoc: codecs: Add proper NULL checks and initialize variables" 2018-10-25 03:13:39 -07:00
Linux Build Service Account
e524ae06a4 Merge "dsp: adm: change channel number for SMECNS_V2 module" 2018-10-25 03:13:33 -07:00
Linux Build Service Account
6bbd1d460e Merge "asoc: wcd937x: initialize micb lock mutex" 2018-10-23 21:52:56 -07:00
Laxminath Kasam
701e358482 asoc: bolero: Fix gfmux access during SSR
Avoid access of gfmux register during SSR/PDR.
Reset the gfmux state to MCLK_MUX0 after
SSR up event in rx macro.

Change-Id: I2ac611049efd3ce9d03bc9dcd912f64887a23679
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-24 00:53:52 +05:30
Linux Build Service Account
c8d4438836 Merge "soc: Add proper null check for client array pointer" 2018-10-23 01:32:56 -07:00
Linux Build Service Account
739ddacb9b Merge "ipc: wcd-dsp-glink: increase timeout to 2 seconds" 2018-10-23 01:32:56 -07:00
Linux Build Service Account
28267437a4 Merge "dsp: msm_audio_ion: unmap dma only if unmap kernel succeeds" 2018-10-23 01:32:54 -07:00
Linux Build Service Account
8f1c3e3970 Merge "ASoC: msm: add tdm clk ref count" 2018-10-23 01:32:53 -07:00
Linux Build Service Account
8d33594d66 Merge "asoc: bolero: avoid TX distortion by runtime HPF param change" 2018-10-23 01:32:51 -07:00
Linux Build Service Account
53b13dd5a6 Merge "dsp: Fix port media type sample rate for APTX AD" 2018-10-23 01:32:47 -07:00
Linux Build Service Account
03072ce6e1 Merge "audio-lnx: ANDROID_BUILD_TOP is deprecated." 2018-10-23 01:32:43 -07:00
kunleiz
c0cd19e0b6 dsp: adm: change channel number for SMECNS_V2 module
SMECNS_V2 module in COPreP topology doesn't support
stereo input. Update channel number to mono for
VPM_TX_VOICE_SMECNS_V2_COPP_TOPOLOGY, which contains
SMECNS_V2 module.

Change-Id: I04b971b41328f6a32bf0ff42b21496b49bb4140b
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2018-10-22 20:03:58 -07:00
Tanya Dixit
ab8eba8711 asoc: codecs: Add proper NULL checks and initialize variables
Add null checks and initialize unintialized variables in
wsa macro, wcd937x and wcd937x_slave drivers.

CRs-Fixed: 2328286
Change-Id: I76b8d262e42d2b06ece3a6ecba28ed26b13d4447
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-22 15:06:48 +05:30
Linux Build Service Account
979ae8e796 Merge "soc: swr-mstr: Mask swrm debug interrupts" 2018-10-20 04:04:10 -07:00
Gerrit - the friendly Code Review server
ffb0f4bf7f Merge changes into audio-drivers.lnx.3.0 2018-10-20 00:26:25 -07:00
Linux Build Service Account
e25f9003c6 Merge "soc: swr-mstr: synchronize swr clock requests" 2018-10-20 00:23:56 -07:00
Linux Build Service Account
df791f4d5b Merge "asoc: bolero: Increase timeout for session down during ssr" 2018-10-20 00:23:54 -07:00
Linux Build Service Account
3004b4f92f Merge "soc: swr-mstr: Register for wakeup irq after disabling clk" 2018-10-19 22:08:41 -07:00
Ramprasad Katkam
6a3050d838 soc: swr-mstr: Register for wakeup irq after disabling clk
During clock stop, Register for lpass wakeup only after
disabling the clock to avoid flooding of interrupts when
master is turned on for pending slave irq.

Change-Id: Ifbf604048d4972beb22b6286930193b83a2249e8
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-19 09:41:16 +05:30
Ramprasad Katkam
13e051c9ab soc: swr-mstr: Mask swrm debug interrupts
Mask swrm debug interrupts as workaround for interrupt
storm issue.

Change-Id: Ic623a3a161d7d04812c4dd4b2e07a3331f5ed7ec
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-19 09:27:12 +05:30
Ramprasad Katkam
6bce2e7374 soc: swr-mstr: synchronize swr clock requests
synchronize swr clock request using mutex and ensure
count becomes zero during ssr.

Change-Id: I3aa933a137d9439742d84fc23b37653da86f3b42
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-18 02:23:43 +05:30
Tanya Dixit
d7a6390344 soc: Add proper null check for client array pointer
Check if snd event client array is null before
dereferencing.

CRs-Fixed: 2328286
Change-Id: I4f7c2a1288ee27df51609e090cb2da2d33624a07
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-17 17:30:02 +05:30
Ramprasad Katkam
e23066df2a asoc: wcd937x: initialize micb lock mutex
Micb lock which is used to synchronize micbias
control api is not initialized causing spin lock
errors. Initialize the mutex to avoid the issue.

Change-Id: I580e52e1bd225c2d99bfba4657d80670296709a0
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-17 15:58:23 +05:30
Linux Build Service Account
4384fe6966 Merge "asoc: msm: routing: remove WARN() log messages" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
82113d6cac Merge "ASoC: wcd934x: enable MAD fs_cntr by default" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
fee3694cd7 Merge "dsp: enable VAD support on TDM interface" 2018-10-16 20:46:43 -07:00
Linux Build Service Account
9d536a42c5 Merge "dsp: Add restart interface for adsp" 2018-10-16 20:46:42 -07:00
Linux Build Service Account
be5d85827e Merge "dsp: codecs: check buffer size before copy" 2018-10-16 20:46:41 -07:00
Linux Build Service Account
1af19d2b71 Merge "ASoC: sm6150: Use FSA for USBC gnd-mic swap" 2018-10-16 20:46:40 -07:00
Vidyakumar Athota
71699fd35f ipc: wcd-dsp-glink: increase timeout to 2 seconds
There seems to be a delay in processing WDSP open commands
on APPS side. Sometimes it is taking more than 1 second,
results error in wdsp channels initialization. Increase the
timeout value to avoid channel connect failures.

Change-Id: If46251f07763080729858dc612679ee10149f57b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-10-16 11:43:15 -07:00