34 Commits

Author SHA1 Message Date
Adam W. Willis
421427430e treewide: Don't warn about IPC logging failures
Seeing as we shut this down intentionally, I don't see why we need
to be alerted it's failure, repeatedly, and from multiple drivers.

Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2022-11-29 22:09:21 +00:00
Joel Gómez
f0c7610736 techpack: audio: wcd_cpe: fix more enum conversion warnings
../techpack/audio/asoc/codecs/wcd_cpe_services.c:1349:8: error: implicit conversion from enumeration type 'enum cpe_svc_result' to different enumeration type 'enum cpe_process_result' [-Werror,-Wenum-conversion]
                rc = cpe_send_msg_to_inbox(t_info, 0, m);
                   ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Signed-off-by: Joel Gómez <nahuelgomez329@gmail.com>
2022-10-08 23:44:52 +00:00
Artem Borisov
1034138169 techpack: codecs: wcd_cpe: Fix enum conversion warnings
Change-Id: I0fe6b10f55b5243d55e4c18c8f44d5bb123bd865
2022-10-08 23:44:52 +00:00
Fiqri Ardyansyah
188d8bfd24 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-10-08 23:44:52 +00:00
EcrosoftXiao
496090e185 Merge tag '56c032bd04fdfcb4ee8a9a4fd9480abed4d6f839' into HEAD
"LA.UM.9.1.r1-11500-SMxxx0.0"
2022-01-22 19:29:37 +08:00
Sultan Alsawaf
243b1e9dab ASoC: dsp: amrwb_in: Fix AUDIO_GET_AMRWB_ENC_CONFIG ioctl
The non-blocking if-statement here causes the AUDIO_GET_AMRWB_ENC_CONFIG
ioctl to always return -EFAULT, even upon success. Fix it by correctly
guarding the -EFAULT return value.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2021-07-13 13:37:03 +00:00
Sultan Alsawaf
f914bb02cc ASoC: dsp: msm-dts-srs-tm-config: Fix trivial unguarded pr_debug()
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2021-07-13 13:37:02 +00:00
Sultan Alsawaf
541bf3cfb6 ASoC: msm-pcm-routing-v2: Fix non-blocking if-statement warning
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
2021-07-13 13:36:21 +00:00
EcrosoftXiao
938ec06987 Merge tag '5df489730261cb5510c6580e1798f8c6c490dd7b' into eleven
"LA.UM.9.1.r1-09600-SMxxx0.0"
2021-05-04 17:03:56 +08:00
EcrosoftXiao
55a1a28fb1 Merge tag 'a72946f9a1de52fadef6902442e6dc861f45aa0c' into HEAD
"LA.UM.9.1.r1-09200-SMxxx0.0"
2021-04-11 14:33:31 +08:00
EcrosoftXiao
1dd294571c Merge tag 'c58176bac41113662f56243a330ba16272004a42' into HEAD
"LA.UM.9.1.r1-09200-SMxxx0.0"
2021-04-11 14:33:08 +08:00
EcrosoftXiao
8e9ba53d30 Merge tag '3b4022f9747f6d8ffa8a11bdef0f5c7313bd1090' into HEAD
"LA.UM.9.1.r1-09100-SMxxx0.0"
2021-03-05 20:18:20 +08:00
Danny Lin
ec87cd8806 asoc: sm8150: Split sa8155 driver into separate config option
There's no need to compile the sa8155 driver when targeting sm8150
mobile devices.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
2021-01-27 22:42:18 +08:00
Evasi0n Xiao
dda5dc740b techpack: audio: fix mismerge 2021-01-27 16:33:22 +08:00
Sultan Alsawaf
5b8c6da303 qos: Replace cpumasks with atomic bitwise operations
This is expensive and unneeded, especially since the qos functions are
hot code paths. Mose of the cpumask functions use the bitmap API, which
is also more expensive than just doing some simple operations on a word.

Since we're operating with a CPU count that can fit within a word,
replace the expensive cpumask operations with plain bitwise operations
wherever possible to make the pm_qos framework more efficient.

Change-Id: Ida5f08d5c1e25aa790d814153f1c7fe7a5dd9850
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-01-27 15:21:06 +08:00
UtsavBalar1231
e662502b53 techpack: audio: dsp: Fix -Wundef warning
* Use proper if guard so that compiler won't spam dumb warning

Change-Id: I6becfab82a6f15a2d6177af307b3fa3da4e7b4e3
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2021-01-27 15:02:21 +08:00
Sultan Alsawaf
65e831c295 techpack: Fix uninitialized header usage
When the cmi header is filled, it isn't zeroed out; it's updated, so the
previous value it contains is retained as part of a bitmask. This
constitutes uninitialized usage of the cmi header struct.

Fix it by zeroing out the header with a memset, as is done elsewhere in
this driver.

This fixes the following warnings:
sound/soc/codecs/wcd_cpe_core.c: In function 'wcd_cpe_lab_ch_setup':
include/sound/cpe_cmi.h:173:18: error: 'lab_eob.hdr_info' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
[yaro: cpe_lab_enable fix is in place in 4.14 techpack]
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:35:01 +08:00
Yaroslav Furman
a92de89ce3 teckpack: codecs: Use scnprintf() for robustness
Reasoning explained here 06236821ae

Also fixes this warning:
../techpack/audio/asoc/codecs/wcd-clsh.c:73:9: warning: ‘snprintf’ argument 4 overlaps destination object ‘buf’ [-Wrestrict]
   73 |   cnt = snprintf(buf, buflen - cnt - 1, "%s%s%s", buf,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   74 |           buf[0] == '\0' ? "[" : "|",
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   75 |           states[i]);
      |

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:35:01 +08:00
Yaroslav Furman
92e1cab265 techpack: q6asm: stfu
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:35:00 +08:00
Yaroslav Furman
d302dd90b8 techpack: shut the fuck up
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:35:00 +08:00
Yaroslav Furman
fcb5e46148 techpack: silence some more debugging
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:35:00 +08:00
Yaroslav Furman
54fe27bc81 techpack: shut the fuck up
Shut the fuck up
You're a fucking cunt
Shut the fuck up
You're a stupid cunt, suck my dick
Shut the fuck up
Stop being a fucking cunt
Shut the fuck up
Nobody even wants you here
What?
I just want to let you know, you're a stupid fucking cunt
Go ahead and run your mouth, pussy, I don't give a fuck
You're a stupid piece of shit, you're a stupid fucking bitch
Get the fuck up off my dick, get the fuck up off my dick, like
Please end your fucking life, please end your fucking life
I really gotta emphasise, no one cares if you're alive
You're a fucking penis-hole, grab a dick and eat it whole
I need to know if you were dropped when you were just a fetus though
You're so fucking ugly and your face is fucking foul, jeez
You're so fucking loud, can you shut your fucking mouth, can you
Shut the fuck up
You're a fucking cunt
Shut the fuck up
You're a stupid cunt, suck my dick
Shut the fuck up
Stop being a fucking cunt
Shut the fuck up
Nobody even wants you here
Yeah
Close your fucking mouth, you're just really fucking dense
If you hate me, why you talking? You don't make no fucking sense
Got a sad life, sad life, go to fucking hell
Are you stupid or disabled, man, I can't fucking tell
Meh
You're a fucking dumb shit, you don't even run shit
Get the fuck up out of my face and go to hell and eat a dick
Come and catch these hands, boy
Come and match these bands, boy
I'm not crazy, I just do it all because I can, boy
I hope you fucking die in a high-speed car crash
I hope you fucking fall head-first and get your neck cracked
I hope you have some beautiful children that die from cancer
I hope you catch Zika when your wife gets pregnant
I hope you win the lottery and die the next day
And your daughter has to see you getting lowered in your grave
Like, uh, ooh- that was a little dark
I'm sorry. Tha-that was a little dark. Very poor taste
Shut the fuck up
I shouldn't have said that
You're a fucking cunt
Actually, no, I should have
Shut the fuck up
Actually, I didn't say enough
You're a stupid cunt, suck my dick
Shut the fuck up
Stop being a fucking cunt
Shut the fuck up
Nobody even wants you here

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:34:59 +08:00
Park Ju Hyung
5f5eb1b42a techpack: build rmnet extensions
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-11-21 19:34:58 +08:00
Carlos Ayrton Lopez Arroyo
c77b0a8b25 techpack: build inline
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
2020-11-21 19:34:24 +08:00
GuaiYiHu
2a7ef170d7 ASoC: Avoid spk_id_get duplicate defination
Change-Id: I03e0e05434d3998e921acdfc1b36d2916a3dcd67
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-11-21 19:34:03 +08:00
Danny Lin
2c79d27381 techpack: audio: Remove build timestamp injection
This causes parts of the audio module to be rebuilt during every
incremental build, even if there are no changes:

  CC      techpack/audio/ipc/apr.o - due to command line change
  CC      techpack/audio/ipc/apr_v2.o - due to command line change
  CC      techpack/audio/ipc/apr_tal_rpmsg.o - due to command line change
  CC      techpack/audio/ipc/wcd-dsp-glink.o - due to command line change

We're only experiencing this issue in techpack/audio/ipc at the moment,
but kill the timestamp injection in all the audio components to
eliminate the possibility of encountering this issue again in the
future. This is harmless since the injected BUILD_TIMESTAMP macro is
never used.

Change-Id: I35b588a2a902438b2c79ebbac31453f2e528bbbe
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
2020-11-21 19:33:38 +08:00
Alin Jerpelea
85058a1b45 sound: wcd_cpe_core: fix unitialised variable
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
2020-11-21 19:33:38 +08:00
Albert I
0e5c29ffe5 techpack/audio: Kill debugging prints
These insane amount of debug flags added by Xiaomi in production kernel
is just horrible.

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: UtsavisGreat <utsavbalar1231@gmail.com>
2020-11-21 19:33:37 +08:00
Yaroslav Furman
113e41b394 techpack/pinctrl-lpi: initialise at late_initcall
Fixes booting with techpack online and modules disabled.
Without this it spits out a nasty NULL pointer dereference.

Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Change-Id: Ib9c0cddd38a5f5707b1c259540f79329d84e92da
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-11-21 19:33:36 +08:00
AngeloGioacchino Del Regno
837fd1d46b techpack: audio: soc: snd_event: Declare is_snd_event_fwk_enabled func static
This function is included in more than one sound codec and anyway
it is supposed to be a static inline function...

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2020-11-21 19:33:35 +08:00
Demon000
b25bd212f0 techpack: audio: import Xiaomi changes
Change-Id: I23892e4c4a2072627f8dee27fe986e49c0a11062
2020-11-21 19:31:23 +08:00
EcrosoftXiao
25c0b17d6d Add 'techpack/data/' from commit '9ee5e0f2a5d40b43410d80f28d7184da1a477ca4'
git-subtree-dir: techpack/data
git-subtree-mainline: b2b068c047
git-subtree-split: 9ee5e0f2a5d40b43410d80f28d7184da1a477ca4
2020-11-19 13:21:19 +08:00
EcrosoftXiao
b2b068c047 Add 'techpack/audio/' from commit '55d47fac1cf9653374d254fd7a50f3c1f1cc61d9'
git-subtree-dir: techpack/audio
git-subtree-mainline: b7c84cd900
git-subtree-split: 55d47fac1cf9653374d254fd7a50f3c1f1cc61d9
2020-11-19 13:20:45 +08:00
Bryan Huntsman
fe62387756 techpack: add a snapshot of tech package support
Add a snapshot of tech package support from msm-4.19 to msm-4.14 from
commits as of:
'commit <50327f3450f1> (techpack: add tech package support)'
'commit <8082260ee599> (techpack: set configuration default to yes)'
'commit <776ec744ee23> (techpack: Kbuild: Fix to compile the techpack
completely)'.

Change markings to 4.14 style.

Change-Id: I446e7cf0f185181caa5e62cf42a2ff972f99be35
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
2020-05-05 15:35:43 -04:00