Commit Graph

75 Commits

Author SHA1 Message Date
Fiqri Ardyansyah
4b40c51273 treewide: Fix error cause a function declaration is deprecated
Fixes warns on clang 15.0.0:

../techpack/data/drivers/rmnet/perf/rmnet_perf_opt.c:715:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
rmnet_perf_free_hash_table()
                          ^
                           void
  CC      net/bluetooth/hci_conn.o
  CC      drivers/base/attribute_container.o
1 error generated.

../drivers/staging/qcacld-3.0/../qca-wifi-host-cmn/target_if/core/src/target_if_main.c:91:40: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
struct target_if_ctx *target_if_get_ctx()
                                       ^
                                        void
1 error generated.
  CC      drivers/staging/qcacld-3.0/../qca-wifi-host-cmn/umac/dfs/core/src/misc/dfs_nol.o
make[4]: *** [../scripts/Makefile.build:364: drivers/staging/qcacld-3.0/../qca-wifi-host-cmn/target_if/core/src/target_if_main.o] Error 1
make[4]: *** Waiting for unfinished jobs....
../drivers/staging/qcacld-3.0/../qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c:1320:34: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
struct ce_ops *ce_services_legacy()
                                 ^
                                  void
1 error generated.

Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
2022-04-20 15:37:53 +00:00
kondors1995
d9c209a320 Merge commit '5c00aa86ffaaae4f97d8e9fa50a7fbd0195b9b85' into 12.1 2022-04-08 09:58:48 +00:00
Luan Cachoroski Halaiko
69be09dccc techpack: wcd934x: enable SOUND_CONTROL via Kbuild
Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-03-16 08:07:07 +00:00
neobuddy89
e001e7ab89 techpack: audio: Remove duplicate sound control define
Signed-off-by: neobuddy89 <neobuddy89@gmail.com>
2022-03-16 08:06:57 +00:00
Francisco Franco
d22c4cf5fa wcd934x: sound control: remove the speaker bits
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-03-16 08:06:49 +00:00
flar2
b33bcdd96c wcd934x: sound control: reset headphone digital gain to user value
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-03-16 08:06:42 +00:00
flar2
57424551a9 wcd934x: add sound control
Adjust headphone, mic and earpiece.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-03-16 08:06:31 +00:00
kondors1995
45c4efc704 Merge commit '713d1f7f42b34b1d0f1c43f9ba6231fb28551d52' into dev/12.0 2022-03-11 09:25:24 +00:00
Luan Cachoroski Halaiko
f91c91c727 Revert "treewide: audio: completely remove unused TFA_FOR_DAVI"
--> Fixes left side channel not working, this is temporary until I
    find a better solution

This reverts commit 760e09d38a2f400c45259f89a811f16a77c7ebc1.
2022-03-03 15:37:23 +00:00
Pranav Vashi
8b87f74147 techpack: asoc: Add supported formats for all cases
* Fixes call recording when switched to Multimedia9.

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-03-03 15:37:10 +00:00
Luan Cachoroski Halaiko
9f9d386fe7 techpack: audio: do not compile non defined drivers
--> Decreases kernel size and speeds up compilation

Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-03-03 15:36:32 +00:00
Nauval Rizky
a50f2ba010 techpack: audio: Remove elliptic ultrasound proximity driver
As far I know, elliptic ups are only used on Mi 9 Series (cepheus/grus).
And this was carelessly added before at "techpack: Import Xiaomi changes for audio-kernel".

Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
Signed-off-by: Salllz <sal235222727@gmail.com>
2022-03-03 15:36:32 +00:00
Fiqri Ardyansyah
858c20f720 techpack/audio: Silence warning when IPC logging is disable
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
2022-03-03 15:36:31 +00:00
Panchajanya1999
6e5f395020 techpack/codecs: aac: Hardcode max_bitrate to 384k
Our DSP is supposed to support this.

Change-Id: Ib93ee2ec1b0c1a2fd1269f64d5f133db65d1b4a0
Suggested-by: Steve Kondik <shade@chemlab.org>
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2022-03-03 15:36:20 +00:00
Luan Cachoroski Halaiko
ec8b8182bb tfa98xx: use power efficient workqueues instead of tfa singlethread workqueue
Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-02-22 11:39:31 +00:00
LuanHalaiko
17d10186d3 asoc:sm8150: disable unused codecs 2022-02-07 08:06:09 +00:00
Luan Cachoroski Halaiko
95eef23e2e techpack: audio: asoc: codecs: inline with LuanHalaiko/drivers_techpack_tfa98xx
Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-02-07 07:54:07 +00:00
Luan Cachoroski Halaiko
52836d23ae treewide: audio: completely remove unused TFA_FOR_DAVI
Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-02-07 07:27:56 +00:00
Luan Cachoroski Halaiko
b79d75c794 Revert "techpack: audio: dsp: q6afe: disable data->payload error check"
This reverts commit 4ed70bb00ac494dae9f4d9348ed6c2dbbf933099.
2022-02-07 07:26:29 +00:00
Luan Cachoroski Halaiko
2a11a90353 techpack: audio: dsp: q6afe: disable data->payload error check
--> Not a real fix, but since this is spamming so much when reproducing a sound
    remove payload data check to avoid DSP returned error in dmesg
2022-02-07 07:26:28 +00:00
Luan Cachoroski Halaiko
3aac4a1cff techpack: audio: asoc: tfa98xx: don't use autoconfig
Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-02-07 07:26:28 +00:00
Luan Cachoroski Halaiko
cc3dd2dc54 techkpack: audio: asoc: tfa98xx: optimize and remove obsolete code 2022-02-07 07:25:54 +00:00
Luan Cachoroski Halaiko
525c425530 techpack: audio: wcd934x: disable efuse register checking for DSD
--> Fixes [   10.648942] tavil_codec tavil_codec: tavil_dsd_init: DSD unsupported for this codec version
2022-02-07 07:25:43 +00:00
Luan Cachoroski Halaiko
07e661b192 techpack: audio: tfa98xx: don't skip irq registration
--> fixes [    0.765645] tfa98xx 1-0034: Skipping IRQ registration

Signed-off-by: Luan Cachoroski Halaiko <luhalaiko@gmail.com>
2022-02-07 07:24:54 +00:00
Luan Cachoroski Halaiko
6cca1c950b techpack: audio: tfa98xx: remove spk_name from tfa98xx_i2c_probe 2022-02-07 07:24:53 +00:00
Luan Cachoroski Halaiko
c6a4eb924a techpack: audio: tfa98xx: remove spk-id implementation
--> Causes unnecessary missing nxp,spk-id from the dtb
2022-02-07 07:24:41 +00:00
kondors1995
4136a5f05f Add 'techpack/audio/asoc/codecs/tfa98xx/' from commit '4e879361765ad35682f64218591a7ec0328746d4'
git-subtree-dir: techpack/audio/asoc/codecs/tfa98xx
git-subtree-mainline: 64bd09ed97b4406fd2bb3dbf000e5138b27ef7e6
git-subtree-split: 4e879361765ad35682f64218591a7ec0328746d4
2022-02-07 07:24:26 +00:00
Luan Cachoroski Halaiko
36a09c2dfa Remove Xiaomi's implementation of 16bit/24bit/32bit audio data
--> We used to need this to playback 16bit/24bit/32bit audio data, but
    since the upstreaming from CAF we don't need this anymore, so remove
    it and use the default driver implementation

Reverts [nxp34663] CR: support 16bit/24bit/32bit audio data
2022-01-26 11:21:48 +00:00
kondors1995
d642f02969 wsa881x: Fix compile 2022-01-22 22:06:05 +00:00
LuanHalaiko
88d6139de1 techpack: tfa98xx: inline with CAF v6.7.14
-> With minor fixes included
2022-01-22 21:11:07 +00:00
LuanHalaiko
08d529e556 techpack: audio: tfa98xx: force cold start on speakerboost 2022-01-22 21:11:07 +00:00
LuanHalaiko
ede8f7e41c techpack: audio: tfa98xx: compilation fixes for v6.7.11 2022-01-22 21:11:06 +00:00
LuanHalaiko
8e17c34123 techpack: tfa98xx: inline with CAF v6.7.11 2022-01-22 21:11:06 +00:00
LuanHalaiko
08fcde73ce techpack: audio: fix TFA98xx version upstream
--> Mostly fixes to function name changes
2022-01-22 21:11:06 +00:00
LuanHalaiko
ba5befef8f techpack: tfa98xx: inline with CAF v6.7.3 2022-01-22 21:10:57 +00:00
Panchajanya1999
9db3b3341c techpack/audio: Kbuild: target User build variants
Change-Id: I481c891b8e853d272cfbe2b6b912dc767f74c710
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2021-12-27 13:58:37 +00:00
kondors1995
450b804782 Merge tag 'LA.UM.9.1.r1-11300-SMxxx0.0' of https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel into 11.0
"LA.UM.9.1.r1-11300-SMxxx0.0"
2021-11-11 10:41:42 +00:00
Panchajanya1999
79ac652421 techpack/audio/asoc: msm-pcm-routing: Drop cal_data comparison with NULL
The comparison will never be NULL. Fixes an address[Werror=address] error.
Captured by gcc-12.

Change-Id: I2c48526d7f4e16b862bf225d95e72879457aec95
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2021-11-03 07:32:31 +00:00
kondors1995
f29fdffa80 Merge tag 'LA.UM.9.1.r1-11200-SMxxx0.0' of https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel into dev/11.0
"LA.UM.9.1.r1-11200-SMxxx0.0"
2021-10-25 17:43:51 +00:00
Sultan Alsawaf
a832c977e6 qos: Change cpus_affine to not be atomic
There isn't a need for cpus_affine to be atomic, and reading/writing to
it outside of the global pm_qos lock is racy anyway. As such, we can
simply turn it into a primitive integer type.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2021-10-20 22:14:36 +00:00
freak07
18af5ab214 techpack: use power efficient workingqueues
(cherry picked from commit 75ed04dc1f7e7da565e41b7190fb44f078c5b4d6)
(cherry picked from commit a23fc1d9e2a6166dde561c6e5cf8f1e09e0a5c0c)
(cherry picked from commit efed5ad0c48e83e66b4be7f33147aa192e47e498)
(cherry picked from commit 8a55be718c836abf6d4bc5a1233e982374fd3316)
(cherry picked from commit b6c2999fdb6f3d71385d1a1edf839ff14e4bc0d7)
(cherry picked from commit 34715e51bf1fd10b6fec2e581524b20286fb46c4)
(cherry picked from commit 5fec4357e73939eb0a6252f7848480d8bf624fe6)
(cherry picked from commit 7d6be584cf1ea2879fd8ef21178766b06be13fe8)
(cherry picked from commit 8b0aa1ebc13c6ccd9a250bdf5004d64da2f089aa)
(cherry picked from commit 1485ebd685e6d2af1b45ab43297b9d32ee0aacc2)
(cherry picked from commit 089735f8cf8b4808bc52901da2b337b733983f4c)
(cherry picked from commit 7a65bfba52cf301b3394ed85f4ff4cc14ef0446f)
2021-10-16 22:27:51 +00:00
UtsavBalar1231
22c1dff83b Merge tag '119cee592b8d2a570aed97721a8c742a2627cb80' into android11-base
"LA.UM.9.1.r1-11100-SMxxx0.0"

* tag '119cee592b8d2a570aed97721a8c742a2627cb80':
  data-kernel: EMAC: Remove MSS value updation in DMA_CR
  data-kernel: emac: Fix a security issue

Change-Id: I2773e2d161ac663b331d4588aaeaeb2abfe60706
2021-09-04 15:45:48 +00:00
UtsavBalar1231
192bd73334 Merge tag '62314cf01b92ffb58f7be801804d00faefeb2312' into android11-base
"LA.UM.9.1.r1-11100-SMxxx0.0"

* tag '62314cf01b92ffb58f7be801804d00faefeb2312':
  dsp: update size check for set/get VI param function
  dsp: fix out of bound access for cal_data size
  dsp: update size check for set/get VI param function

Change-Id: I51916df1b4771fa4b6a4083a84302f61711151f2
2021-09-04 15:45:27 +00:00
Park Ju Hyung
91114ddeab techpack: avoid VLA
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2021-08-12 12:54:17 +00:00
Yaroslav Furman
49ae94cb18 treewide: fix maube-uninitialized warnings
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2021-07-26 06:33:07 +00:00
nato6613
2259e820a9 Merge remote-tracking branch 'utsav/android11-base' into dev/cypto 2021-07-26 06:23:37 +00:00
UtsavBalar1231
7e0b4d8ebc Merge tag '3e0359a7cbe0204d83fb5a457d0eb6b7edebc968' into android11-base
"LA.UM.9.1.r1-10700-SMxxx0.QSSI12.0"

* tag '3e0359a7cbe0204d83fb5a457d0eb6b7edebc968':
  drivers: rmnet_shs: Force flushing in fb timer

Change-Id: I718537982e1c0b17ba19c7c2dad370e2a0b9f598
2021-07-22 10:24:22 +05:30
UtsavBalar1231
c3b8812dea Merge tag 'b2a4f0dd5f51711b19c55f568b1d4836d33f6a6c' into android11-base
"LA.UM.9.1.r1-10700-SMxxx0.QSSI12.0"

* tag 'b2a4f0dd5f51711b19c55f568b1d4836d33f6a6c':
  asoc: Set and get voice UI port indices on a per session basis

Change-Id: Ie338b21c73868de3603ea16760c92263702e6add
2021-07-22 10:24:08 +05:30
Sultan Alsawaf
2816d83114 ASoC: msm-pcm-routing-v2: Fix non-blocking if-statement warning
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-07-14 07:55:13 +00:00
UtsavBalar1231
fb10495755 Revert "Merge tag '475198853ebe9d165eda1ad461f5df131645b80a' into android11-base"
- Huge rewrite in pcm breaks compatibility

This reverts commit 6b0d88a983, reversing
changes made to 79a0ea5721.
2021-07-14 09:30:51 +05:30