İşleme Grafiği

168 İşleme

Yazar SHA1 Mesaj Tarih
Prasad Kumpatla
6ff3b28c39 asoc: codec: wcd937x: fix memory leak in wcd937x_bind()
fix memory leak in wcd937x_bind().

Change-Id: I7f0e587bcfb490f290ca6554a086b15c9fa741fb
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-03-18 17:08:47 +05:30
Prasad Kumpatla
b8b3fca8aa asoc: codec: wcd937x: update the codec RX clk
update the codec digital RX clk rate to 9P6MHZ or
11P2896MHz depends on usecase.

Change-Id: I1c7167c10ef8bcdba876be265ef90d980f822d03
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-02-12 15:01:22 +05:30
Prasad Kumpatla
3dd1953f31 asoc: codec: defer the probe if msm cdc pinctrl is not probed
Defer the probe when the msm cdc pinctrl driver is not
proded.

Change-Id: Ia6aaaca7c55b60b53008ffda0fc40e5db407cd2a
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-02-01 12:46:33 +05:30
Prasad Kumpatla
372beca218 asoc: codec: remove unwanted modules for pitti
remove unwanted modules for pitti.

Change-Id: I29def6096841d0d9dfcccd81ec9761b7ef6ff1be
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-01-09 21:59:51 +05:30
qctecmdr
945fe83da3 Merge "asoc: codecs: wcd937x: Handle PDM watchdog interrupt" 2023-11-08 20:45:04 -08:00
Faiz Nabi Kuchay
522dfd9219 asoc: codecs: wcd937x: Handle PDM watchdog interrupt
Handle PDM watchdog interrupt. Enable watchdog
before analog PA is enabled and disable it
after analog PA is disabled so as to prevent false alarms.

Change-Id: Ife131d5d64d2ad2b8f7aad50af3aa07238bbbda9
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-11-01 21:36:39 -07:00
sarath varma ganapathiraju
9bb0f01c5d pitti: Add compilation support for target pitti
Add Compilation support for target pitti.

Change-Id: Ibb06ace7332aa87eb5f8082db95f0c0f8b3deb66
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2023-10-19 22:01:23 -07:00
Faiz Nabi Kuchay
80d2171c35 asoc: Add wcd937x support for Cliffs
Add wcd937x support for Cliffs.

Change-Id: I21ca52133b40b621a36a82f0caa2366a1461d255
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-09-25 13:10:27 +05:30
Sairam Peri
6e38fad118 asoc: codecs: update max sampling rate of wsa881x analog driver
Updated the wsa dailink to support 384Khz HS playback.

Picked latest codec fixes to kernel6.0.

Change-Id: Ia570dc3f3ed55415ac374e1ba3bb6f2277dade96
Signed-off-by: Sairam Peri<quic_peri@quicinc.com>
2023-08-31 23:33:37 +05:30
karishma Tekade
b6e311a3d8 audio_kernel: Fix compilation issues during kernel upgrade
Updated WCD937x, WSA881x-analog and bolero drivers for successful
compilation on kernel6.0 for holi.

Change-Id: Ia91a999f825570b3d7123842f0aad3740c4d25ed
2023-05-23 22:46:24 -07:00
Karishma Tekade
1ed2ece8c4 audio_kernel: Enable audio kernel compilation for blair platform
Updated make files in audio_kernel to support blair platform.

Change-Id: I00c832875fc4558580e22825e9a72305e05ae409
2023-05-23 22:44:18 -07:00
Soumya Managoli
1622b6d883 ASoC: codecs: Allow register write via debugfs
Add support for QTI regmap debugfs register write
access on wcd937x codec.

Change-Id: I04e3d98ec308c5cbf9f140c6fcfb1ab5fbe5fd50
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-01-18 19:55:11 -08:00
Vangala, Amarnath
6dbdc5bea3 ASOC: codecs: clear the interrupt ack registers for wcd937x
Clear the wcd937x interrupt ack registers in post_irq_handler.
This is needed for wcd937x, as regmap_irq is not clearing
the ack registers after the ack bits are set.

Change-Id: I105a4b423a0d01ff1bd3239e0f2d42294557ff10
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-11-02 02:38:23 -07:00
Soumya Managoli
ee00c83a92 audio-kernel: Bring up changes for bengal
Enable audio driver compilation for bengal.

Change-Id: I1ce7f0356fe70bc59c7caa6d333ad380d1e725ff
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-09-29 16:50:51 +05:30
Soumya Managoli
fd22b93d43 ASoC: wcd937x: dump swr slave registers
Add support to dump wcd937x swr slave registers.

Change-Id: Ie4210e0df7251c2f6ed2034c5a4b14dcd87e6143
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-08-10 21:01:44 -07:00
Meng Wang
0bd4c39e4e asoc: codec: enable use_single_read for wsa and wcd regmap
When interrupts are triggered on the second or third interrupt
status register, current logic cannot clear that interrupt status
after handling it. Enable use_single_read for wsa and wcd regmap
to resolve the issue.

Change-Id: Ieac57e169505d4455dde1dcd0e80e222e3e8eb1e
Signed-off-by: Meng Wang <quic_mengw@quicinc.com>
2021-12-07 09:15:42 -08:00
Vatsal Bucha
77ac79f6c7 asoc: codec: add range check to avoid overflow
Add range check for ucontrol value to avoid array
overflow.

Change-Id: I7b699519bec6f605e5ca5ece8f67badbefc7a094
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-15 21:53:06 -07:00
Laxminath Kasam
7962130af8 audio-kernel: Fix compile error on wcd
Fix compile error on wcd codec.

Change-Id: I65a3db216234ab798f8a85dd2401ac605b09f7f0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-12-22 13:21:44 +05:30
Linux Build Service Account
8522efef7a Merge "audio-kernel: Enable out of tree compilaton" into audio-kernel.lnx.5.10 2020-12-20 23:03:21 -08:00
Laxminath Kasam
6a7bb13614 soc: swr-mstr-ctrl: Update SWR_TX to receive port params from slave
Update swr_tx slave port config to use slave provided port params
and remove slave port static tables.

Change-Id: Icfedf1229a88432e80c2294e13f2ccc3949417c5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-12-18 14:40:06 +05:30
Jyotirmoi Sarma
6b78aacd7f audio-kernel: Enable out of tree compilaton
Add Makefile in each sub-folder
Add Android.mk file on top level folder of audio-kernel

Change-Id: I024aa5080ae52b55700f0a65ab05034be8c9cdad
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-17 18:05:48 +05:30
Jyotirmoi Sarma
a3d8911945 audio-kernel: asoc : Upgrade asoc to support 5.10 kernel
Change-Id: Ia54112cfbde418d66b9314d4ba731928aa057558
Signed-off-by: Jyotirmoi Sarma <jyosarma@codeaurora.org>
2020-12-08 08:49:44 -08:00
Vatsal Bucha
625753df87 ASoC: codec: Change name for enum defined for callback between wcd and bolero
Add enum names defined for callback between wcd and bolero in
separate file and include that file in order to have same enum
across wcd and bolero.

Change-Id: I808c2ad3de37655c1ba2b8e096def60703ced7f2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-09-09 20:26:36 -07:00
Laxminath Kasam
070b18585e asoc: wcd937x: Update slvdevpath after connect_port in powerup
As ADC and MIXER dapm widgets powerup sequence in soc-dapm
got re-ordered, need update same in codec driver to handle
calls to soundwire.

Change-Id: Ibc99d21e29f9e9d7195b4ba8d4c995c46d6aef6f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-20 20:25:41 +05:30
Vangala, Amarnath
60eaa6b160 asoc: wcd937x: Add support to clear ack registers
WCD937x codec requires clear registers to be written '1' and
'0' for clearing interrupts. Enable clear_ack flag in regmap
irq chip structure for wcd937x.

Change-Id: I0a2e4fc85fe6dca75885b5300840669afeabc80c
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-04 16:14:51 +05:30
Vangala, Amarnath
83efb2ee63 asoc: wcd937x: add dummy widgets to codec input and outputs
With multicodec approach, codec widgets are added much earlier during sound
card registration than aux codec approach. The connections between bolero and wcd938x
are done via device tree at a later point. DAPM does power checkup for codec widgets
before the codec-codec path is connected. This results in wcd937x dapm inputs/output
to be considered as endpoints, which results in playback/record failure once after
bootup. Hence, add dummy output/input widgets to wcd937x dapm inputs/output which are not
codec endpoints.

Change-Id: I8589f9a33261531eaad74e8f12ef1825fa90a014
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-28 18:26:56 +05:30
Vangala, Amarnath
d6f2eaa495 asoc: machine driver and bring up changes for holi.
add machine driver for holi.
compile wsa881x analog driver for holi.
compile wcd937x and wcd938x drivers for holi.

Change-Id: Icba23cc4b1dd40f7dec6f16bb67a6fae26317f80
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-07-22 15:55:25 +05:30
Vatsal Bucha
298c198b37 ASoC: wcd937x: Add mixer ctl for TX CH power level
Add mixer ctl for tx channel power level.

CRs-Fixed: 2703598
Change-Id: Iecb0dfe491afaface4c4dd1995aa13c7efd9df82
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-06-16 09:24:02 +05:30
Prasad Kumpatla
924c7d027c asoc: codecs: Add default case for switch.
Add default case for switch to avoid the
Null pointer dereference for the map and num_ports
variable in for loop.

Change-Id: I59c9dc6e5396bcb409876378c811143da1c81551
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-05-12 23:41:45 -07:00
qctecmdr
51075bb60c Merge "asoc: codecs: Add delay to eliminate playback pause post SSR on hs" 2020-05-10 05:35:13 -07:00
qctecmdr
e6d77f45a9 Merge "asoc: wcd937x: enable wcd937x codec driver compilation." 2020-05-05 23:55:57 -07:00
Prasad Kumpatla
bd2c17661b asoc: codecs: Add delay to eliminate playback pause post SSR on hs
Add delay in post ssr to eliminate playback pause on euro headset.On
post ssr hs detected as hp due to where pa become on before the completion
of wcd_correct_swch_plug workqueue which lead to detect plug_type
as hp.

Change-Id: Ie114fcd0458d9f5edebeee087c90600c3b0c3da2
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-04-29 23:26:14 -07:00
qctecmdr
184a32dbe4 Merge "ASoC: wcd937x: Fix headset record pop during SSR" 2020-04-29 22:27:54 -07:00
Kunlei Zhang
d0e5b03a72 asoc: wcd937x: enable wcd937x codec driver compilation.
Enable wcd937x codec driver compilation support.

Change-Id: I001f7ca278549a4a77c5b02e1c6a86d1dbf51ff7
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-04-27 08:47:44 -07:00
qctecmdr
e63542d6b7 Merge "asoc: codecs: Set EAR compander if mixer ctl set" 2020-04-26 23:42:50 -07:00
qctecmdr
b221915dc1 Merge "ASoC: wcd938x: Enable digital clk for tx0 if micbias enabled" 2020-04-26 23:42:49 -07:00
Laxminath Kasam
101e71693d asoc: wcd937x: Update retry logic for SWR logical addr
Update retry logic for SWR logical address during SSR.

Change-Id: Ifa5cdec751a271c09a8b6340009ec0e862ffb326
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-20 11:32:20 -07:00
Vatsal Bucha
fb63ca16cc ASoC: wcd938x: Enable digital clk for tx0 if micbias enabled
Mute is observed in amic record sometimes in concurrency with
sva. This is because if record is over tx0 then digital clk
is not enabled. Enable clk after enabling micbias to resolve mute.

Change-Id: Iba3aa4fade0ac5889218eaee2c5d2c4bd4431d50
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-19 08:25:30 -07:00
Laxminath Kasam
2e025248a2 asoc: codecs: Set EAR compander if mixer ctl set
Enable compander based on mixer ctl set for ear path.

Change-Id: Ie6287469f1baa9dba239d369bd5a29ed8e44522f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-04-19 08:11:52 -07:00
Vatsal Bucha
6b4f250e7b ASoC: wcd937x: Fix headset record pop during SSR
Pop is heard with special headset with silence record
during SSR. Resolve pop by allowing sufficient time for
wcd937x_reset post SSR and again initialize registers
post SSR.

Change-Id: I80e70a98a72b247dca878673a30651647b676659
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-16 23:48:16 -07:00
Aditya Bavanari
ee6367c560 asoc: Add support for rouleur codec in machine driver
Add rouleur codec support in bengal machine driver
to create codec entry and invoke mbhc hs detect
functions for respective codecs. Correct the logic
for headset detection pull up current and
volatile registers for digital part of rouleur codec.

Change-Id: I22545dc796c215c1501e883796546c97d8ca8698
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-16 01:17:00 -07:00
qctecmdr
747b3bd81b Merge "asoc: wcd937x: Fix compile error in wcd937x codec driver" 2020-04-08 21:02:09 -07:00
Vatsal Bucha
71e95c67ea ASoC: wcd938x: Fix headset detection during SSR/PDR
Headset is corrected as lineout during SSR/PDR. This is
because adc voltage is not measured correctly due to SSR state.
Enable flag deinit_in_progress during SSR down to check if
device is not reported and disable it after device up.

Change-Id: I6fc4fff4149c36ba16aa668a960505504a5d811f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-04-01 09:54:12 -07:00
Kunlei Zhang
5ef1e54e95 asoc: wcd937x: Fix compile error in wcd937x codec driver
Update function return value to avoid compile error

Change-Id: Ia463ea8bb3c87ac6fb9f5959be0f5a6fa461667d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-03-31 08:44:30 -07:00
Sudheer Papothi
b2d648baf0 ASoC: wcd938x: Update soundwire master channel type
Update soundwire master channel type properly before sending to
soundwire master.

Change-Id: I459c6e8d1cc688c3e6e5a0369e095f0b12fbb7c6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 14:35:00 +05:30
Ramlal Karra
3e2c37d273 asoc: codecs: Add unified SWR Tx mapping support
Add dynamic port enablement for wcd938x and
wcd937x targets to support unified swr tx port
mapping added as part of SWR 1.6 updates.

Change-Id: If0cf823dc51028fd5bd95f5a49ffe05998526be6
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-02-05 09:56:57 -08:00
Vignesh Kulothungan
d71ec81bb0 audio: update kernel version reference
Update kernel version references from 4.19 to 5.4.
Update symbolic links to new kernel version files.

Change-Id: I38baa52218b16e0b0c86ad898912d29ec4d3d516
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 17:04:52 -08:00
Vignesh Kulothungan
92187a5038 audio: Remove android make files
Remove android make files from audio tech package.

Change-Id: I21770bf64cef2bc767cdc81b0b864efff135bf84
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:55:09 -08:00
Laxminath Kasam
ef20c8c2d5 asoc: wcd937x: Avoid clk disable at aux dac
Clock disable at aux dac event is not needed
as rx3 widget already disables it.

Change-Id: I67feec194cdae5c6d84efcde0a2931ba8f8440dd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-12-06 14:48:29 +05:30
Laxminath Kasam
696b14bfa2 asoc: Audio bringup changes for bengal
Audio bringup fixes for bengal target.

Change-Id: Ic79c478fe3c6b80eeb48aa2bcf1887c8dd8f5edc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-12-04 15:07:29 +05:30