Commit graph android_kernel_motorola_sm6375/techpack
Author SHA1 Message Date
electimon
67cfbd9fb2
techpack: camera: Add guarding for header struct changes
* We don't build the Camera HAL from source
  so userspace does not need access to
  cam_sensor.h, move it and implement guarding
  for breaking changes for devices with older
  Camera Blobs.

Change-Id: I5a45b83e01ad85752e99035805ee2a6d1f8dfa93
Signed-off-by: electimon <electimon@gmail.com>
2025-09-01 09:40:26 +05:30
dianlujitao
63b35288f8
techpack: audio: aw882xxacf: Load calibration file through firmware class
Direct access to filesystem is insane and hits a neverallow, load it
through the firmware class instead.

Co-authored-by: Michael Bestas <mkbestas@lineageos.org>
Change-Id: Ic522644c73d63a36430526736257d635deb08f6a
2025-05-01 05:39:33 +03:00
dianlujitao
83e1eff0f1
techpack: audio: aw882xx: Load calibration file through firmware class
Direct access to filesystem is insane and hits a neverallow, load it
through the firmware class instead.

Change-Id: I72149f8674c6211fab57a025b47cf84e505a256a
2025-05-01 05:39:33 +03:00
Michael Bestas
94fe92b480
Merge remote-tracking branch 'sm8350/lineage-20' into lineage-22.2
* sm8350/lineage-20:
  UPSTREAM: net: sched: Disallow replacing of child qdisc from one parent to another
  FROMGIT: media: venus: hfi: add a check to handle OOB in sfr region
  FROMGIT: media: venus: hfi: add check to handle incorrect queue size
  FROMGIT: media: venus: hfi_parser: refactor hfi packet parsing logic
  FROMGIT: media: venus: hfi_parser: add check to avoid out of bound access
  UPSTREAM: pfifo_tail_enqueue: Drop new packet when sch->limit == 0
  UPSTREAM: f2fs: compress: don't allow unaligned truncation on released compress inode
  UPSTREAM: net: core: reject skb_copy(_expand) for fraglist GSO skbs
  UPSTREAM: udp: prevent local UDP tunnel packets from being GROed
  UPSTREAM: udp: do not transition UDP GRO fraglist partial checksums to unnecessary
  UPSTREAM: udp: do not accept non-tunnel GSO skbs landing in a tunnel
  UPSTREAM: binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION
  UPSTREAM: usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK
  UPSTREAM: usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
  UPSTREAM: usb: xhci: Add error handling in xhci_map_urb_for_dma
  UPSTREAM: usb: xhci: Use temporary buffer to consolidate SG
  UPSTREAM: usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK
  defconfig: Enable RTL8152 ETH-USB driver
  ANDROID: ABI: Cuttlefish Symbol update
  fw-api: CL 28563606 - update fw common interface files
  ...

Change-Id: I39d8fa1352de578a5a6c15be2b4b9911bf1c154c
2025-04-23 17:52:52 +03:00
Tommy Webb
91ab127ff9 Merge tag 'LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0

# By Jayasri Sampath Kumaran
# Via Karthik Veeranki (1) and Linux Build Service Account (1)
* tag 'clo/display-drivers/LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0':
  disp: msm: sde: fix kms NULL pointer access in encoder IRQ control

Change-Id: I52a1f3a27d8eed895e1db8a48f15c225d1c1c3ea
2025-04-12 09:35:58 +00:00
Tommy Webb
b483dce61a Merge tag 'LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0

# By Ratna Deepthi Kudaravalli
# Via Linux Build Service Account (1) and Ratna Deepthi Kudaravalli (1)
* tag 'clo/audio-kernel/LA.UM.9.14.r1-26000-LAHAINA.QSSI15.0':
  audio-kernel: avoid out of bound read while checking a bit

Change-Id: I70a5aa2eb95361d9181d5e93a2bbbcce590ce7db
2025-04-12 09:34:41 +00:00
Michael Bestas
1509276e3f
techpack: audio: fs1815: Remove unused variable
Change-Id: I82bcb734d0ffb2b52f70497457771ceaf9c7537e
2025-04-05 20:54:12 +03:00
Anand S
f62d09d86b
techpack: audio: fs1815: Fix strict prototypes errors
Change-Id: Ib7b81f391767db8cb90ae2e2b0c8b07c51e42637
2025-04-05 20:54:12 +03:00
Michael Bestas
25d20d8c3b
techpack: audio: aw87xxx: Remove unused variables
Change-Id: Id389e69f7d3faf712dd96282c4543a914e1e647d
2025-04-05 20:54:12 +03:00
Forenche
b7d0f348da
techpack: audio: aw882xxacf: Disable writing to calibration file
I am pretty sure prod builds don't need this to be enabled and was
meant originally to be used in the development phase.
Further, dmesg shows that it fails to open the file:

aw_cali_get_read_cali_re:channel:1 open /mnt/vendor/persist/factory/audio/aw_cali.bin failed!

Change-Id: I61c5151ba23a1d117b54dd2eb0c0f482da7d941a
Signed-off-by: Forenche <prahul2003@gmail.com>
2025-04-05 20:54:12 +03:00
electimon
e2e1ee4198
techpack: audio: aw882xxacf: Remove unused variables
Change-Id: I493cde9bc28423badb1c3fd8d03c38e38b8a8128
Signed-off-by: electimon <electimon@gmail.com>
2025-04-05 20:54:12 +03:00
Sevenrock
6d51517b88
techpack: display: dsi_panel: fix indentation
techpack/display/msm/dsi/dsi_panel.c:1326:3: error: misleading indentation; sta
tement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
 1326 |                 rc = dsi_panel_send_param_cmd(panel, param_info);
      |                 ^
techpack/display/msm/dsi/dsi_panel.c:1323:2: note: previous statement is here
 1323 |         if (panel->lhbm_config.lhbm_wait_for_fps_valid && param_info->value == HBM_FOD_ON_STATE)
      |         ^

Broken code was added by Motorola:
d67e46e138

Change-Id: If122cbae26b5e8a23f9766cf685d3a3599adc8f5
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
2025-03-24 12:52:28 +02:00
Michael Bestas
304907852a
techpack: display: Fix misleading indentation
Change-Id: I4fbaf1d15d54e5013adfdb1f142d645acc457c83
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
2025-03-24 12:52:28 +02:00
Michael Bestas
d1bda7492e
disp: msm: sde: Fix compliation after upstream eDP changes
Change-Id: I0866046ba78896f7c8cd539ffe78d2079c4e3916
2025-03-24 12:52:28 +02:00
Sevenrock
e0b453a419
Revert "disp: msm: dsi: Add print info for DSI_CTRL"
This reverts commit 3a743de84d19295179568ab2f75f6018fd003445.

Fixes build error

techpack/display/msm/dsi/dsi_display.c:8542:27: error: unused variable 'ctrl' [
-Werror,-Wunused-variable]
 8542 |         struct dsi_display_ctrl *ctrl = &display->ctrl[0];

by reverting Motorola commit
942f7d4bcf
which also reduces log spam.

Change-Id: I3a394ecf8c452eecd367236e0b01f48e5b2d1b0a
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
2025-03-24 12:52:28 +02:00
Michael Bestas
3cf96a6252
techpack: display: dsi_panel: Restore dsi_display_cmd_receive formatting
Remove useless moto tab -> space changes.

Change-Id: I5af71895be016fc4a72993131d7808f47825764e
2025-03-24 12:52:28 +02:00
Michael Bestas
a9e569d960
Revert "dsp: q6lsm: Add check for payload buffer"
This reverts commit 27ad5dd6a9.

Reason for revert: Useless change

Change-Id: I6b6b1901f55b7ebc318c0c0a0c3be5823ddfa839
2025-03-24 12:52:28 +02:00
Michael Bestas
1600959be9
Revert "dsp: q6lsm: Address use after free for mmap handle"
This reverts commit 641e93631b.

Reason for revert: Duplicated commit

Change-Id: I2ad98051309b8d2f8d2b45ec9aa6fa4573aba90d
2025-03-24 12:52:28 +02:00
Michael Bestas
f4c3cbf88f
Revert "ASoC: msm-pcm-host-voice: Check validity of session idx"
This reverts commit 95b9d46367.

Reason for revert: Duplicated commit

Change-Id: I9f28d2f45cd02c3970037687bcb17c674faebffd
2025-03-24 12:52:28 +02:00
Michael Bestas
ffff8b3589
Revert "techpack: add camera legacy support"
This reverts commit 7b3d315852.

Change-Id: Id160f9e62700099cab333223eaa2e1f8809135d2
2025-03-24 12:52:27 +02:00
Michael Bestas
327cbdcf54
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-video into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-video:
  Adjust qbuf cache/dqbuf cache ops failed log to VIDC_HIGH
  extend codec limitation to 1080@90fps.
  msm: vidc: optimize HEIC output buffer calc for encoder
  msm: vidc: tune input buffer size based on buffer_size_limit
  msm: vidc: Avoid dma_buf memory leak under memory pressure
  msm-vidc: fix final BW voting to ICC

Change-Id: I7ff1d8e69765b5dc96cbce2a8c5df7fc12be10e1
2025-03-21 18:37:17 +02:00
Michael Bestas
654ea8a9cd
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display: (116 commits)
  dsi_panel: panel_feature: corret the code mistake
  dsi_panel: fix the bug of local HBM
  gpu/msm: check fps value before enable lhbm
  msm/display-drivers: release lhbm resource
  dsi/dfps: update the dfps code to support "OLED+vid mode"
  dsi/dfps: set the right fps when panel resume
  Support 120Hz command sending
  dts/display: [bangkok] update the dsc configure for tianma panel
  display-drivers: local hbm: add suport for dc_hybird_threshold
  optimze lcd log
  kernel:pnangn:update 2nd panel brightness settings to 11bits
  kernel/panel:power on/off reset sequence
  display/backlight: support hbm dcs only with 51 cmd
  display/dsi:add new lcd backlight align type for bit11_4
  display: The lcd backlight shift mode update
  drm_ioctl: add return value for set_param
  drm/dsi_panel: resend hbm off commands
  msm/drm:compatible with different hbm table in panel
  drm/msm:add delay between mipi0 to reset0 when power off
  drm/panel: check panel status before send custom commands
  ...

 Conflicts:
	techpack/display/msm/sde/sde_connector.c
	techpack/display/msm/sde/sde_kms.c

Change-Id: I13ede04c21415717cd009ae73871894f1be74927
2025-03-21 18:36:59 +02:00
Michael Bestas
9ca541ecda
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera: (86 commits)
  fogo: fix tombstone when use secure camera
  fogo: Fix secure mode switch error (2/2)
  Bangkk: reset ois when read standby_flag fail
  fogos: Actuator noise reduction[2/2]
  fogor: Actuator noise reduction[2/2]
  bangkk: Powerup and initialize sensor early [3/4]
  bangkk: Fix flash request GPIO-24 failed
  bangkk: support dw9784 af drift
  bangkk: Open Camera preview will be black then camera error
  bangkk: open Camera preview may be black sometimes
  bangkk: dw9784 ois bring up
  bangkk: Secondary supply flash driver ic compatible
  Tundra: restore ois delete submit
  Tundra: add delay at check ois data_ready
  Revert "(CR): milanf: modify ois vsync irq processing flow"
  penang: Adjust actuator noise reduction
  penang: Adjust actuator noise reduction
  penang: Actuator noise reduction
  milanf: modify ois vsync irq processing flow
  camera: ois: avoid ois power down twice when download firmware failed
  ...

 Conflicts:
	techpack/camera/drivers/cam_sensor_module/cam_ois/cam_ois_core.c

Change-Id: I9aa733fcd4412059a267c7cb9408b05e91eba111
2025-03-21 18:36:20 +02:00
Michael Bestas
0cd369436c
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-audio into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-audio: (79 commits)
  Revert "asoc: msm-compress : Fix for CTS-on-gsi with gki"
  soc: swr-mstr-ctrl: allow runtime suspend first before system suspend
  audio:add lock for aw dynamics set dailink
  Revert "(CR):audio:add lock for aw dynamics set dailink"
  dsp: q6lsm: Address use after free for mmap handle
  dsp: q6lsm: Add check for payload buffer
  ASoC: msm-pcm-host-voice: Check validity of session idx
  audio:add lock for aw dynamics set dailink
  q6fsm:add protect for fs1815 algo
  fs1815:correct rotation code
  aw882xxacf: add hac scene algo ctrl
  audio-kernel: fix build fail caused by aw8838
  techpack:add aw8838 driver
  fsm:correct fsm vbat monitor logic
  audio/dsp:reduce fsm vbat monitor retry times
  audio/asoc:add PRI_MI2S_TX_HOSTLESS
  machie_driver:add aw pri I2S dailink
  audio:add fs1815 bypass algo code and logic.
  Awinic: update communicate with adsp logic
  codecs:add fs1815 PA driver
  ...

 Conflicts:
	techpack/audio/dsp/q6lsm.c

Change-Id: I6ec23f0d578fd2494e5e29577ce470dc2cb90f5c
2025-03-21 18:35:48 +02:00
Michael Bestas
869b1e64a6
Merge branch 'staging/kernel-msm/MMI-U1UGS34.23-110-23-2' into lineage-22.2
Based on tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm

"Fogos push for Android 14"

* staging/kernel-msm/MMI-U1UGS34.23-110-23-2: (698 commits)
  mmc: sdhci-msm: Move MMC_CAP2_MAX_DISCARD_SIZE to prevent merge conflict
  Reapply "UPSTREAM: binder: fix the missing BR_FROZEN_REPLY in binder_return_strings"
  Revert "qseecom: Suppress suspend warning if without bus scaling."
  Revert "Penang: fix for device suspend tests fail. [1/2]"
  Revert "Penang: resolve kasan panic"
  Revert "Penang: kasan panic"
  Revert "penang: device suspend tests fail"
  Revert "net: qrtr: get svc_id before queueing sk_buff"
  Revert "af_unix: Do not use atomic ops for unix_sk(sk)->inflight."
  Revert "af_unix: Fix garbage collector racing against connect()"
  Revert "BACKPORT: net: fix __dst_negative_advice() race"
  Revert "ANDROID: ABI fixup for abi break in struct dst_ops"
  Revert "BACKPORT:sched: Provide sched_set_fifo()"
  Revert "msm: npu: Fix use after free issue"
  Revert "fs:EROFS:Porting 5.10 erofs to 5.4"
  Revert "BACKPORT:erofs: add per-cpu threads for decompression as an option"
  Revert "UPSTREAM: erofs: fix an error code in z_erofs_init_zip_subsystem()"
  msm: adsprpc: Avoid taking reference for group_info
  adsprpc: Handle UAF scenario in put_args
  msm: adsprpc: use-after-free (UAF) in global maps
  ...

Change-Id: Ia48438f247670d77560472205994632fa62062dd
2025-03-21 18:12:22 +02:00
Nick Reuter
638599aca3
Partially revert "msm: ipa: Check GSI status during deepsleep resume"
This partially reverts commit 2e77a46f0d.

Reason for revert: ipa3_mdt_load_ipa_fws is not present in this kernel,
this is a bad cherrypick resolution by qcom.

Change-Id: I218978168a6c3fe9f6139a6688be1cb4c0f96b94
2025-02-14 13:41:01 +02:00
Michael Bestas
e82fabf302
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dsi: add null pointer check in dsi_display_dev_remove

 Conflicts:
	techpack/display/msm/dsi/dsi_display.c

Change-Id: Ife03a5542c77ab531a902c5b7f6c07d6a867f9b6
2025-02-14 03:39:30 +02:00
Michael Bestas
d1d77077b6
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa: Check GSI status during deepsleep resume
  msm: ipa3: supporting hibernate & cleanup unused deepsleep API's

 Conflicts:
	techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa.c

Change-Id: I7a69389ca80dee1ecb236f14706965b1d2bf3adb
2025-02-14 03:34:01 +02:00
Michael Bestas
8efcbedd97
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: isp: Copy the userdata in kernel to avoid TOCTOU condition
  msm: camera: ois: Copy packet header in kernel
  msm: camera: sensor: TOCTOU error handling
  msm: camera: common: Add missing put_cpu_buf calls

Change-Id: Ic121b19c5d8911f3e223a11389208763f5ac2229
2025-02-14 03:31:00 +02:00
Michael Bestas
cd0212695a
Merge tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-25800-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: codec: avoid out of bound write to map array
  asoc: codec: avoid out of bound write to map array
  asoc: Fixed OOB issue in qcs405
  asoc: codec: wcd934x: enable auto recovery when port overflows

Change-Id: I51a30fe905251b6f66e733bae43fdcd3b0a7e787
2025-02-14 03:28:21 +02:00
Swami Reddy Reddy
771c29041c
msm: camera: sensor: TOCTOU error handling
- Proper Handling in case of invalid pinctrl index
- Removing dead code and unused variables
- Change to dereference s_ctrl only after proper
  NULL Dereference Check.

CRs-Fixed: 3875406
Change-Id: I8e2c717b22efff2a7d6503d38c048e30eff230da
Signed-off-by: Swami Reddy Reddy <quic_swamired@quicinc.com>
2025-02-04 21:35:46 +02:00
Albert Tang
281c6276aa techpack: camera: Fix enum comparison warning
drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c:3038:21: error:
comparison of different enumeration types ('enum cam_tfe_csid_halt_cmd'
and 'enum cam_ife_csid_halt_cmd') [-Werror,-Wenum-compare]

	if (csid_halt_type == CAM_CSID_HALT_IMMEDIATELY)
	    ~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~

Change-Id: I13b0c86ded5ba544380c2ca9fd3d1a73db9ea63b
2024-12-20 13:26:37 -08:00
Michael Bestas
475adf7cee
Merge tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: handling condition for random read
  msm: camera: icp: io buf config num validation
  msm: camera: ope: check cpu buffer offset and cmd buf idx

Change-Id: Id26854dd09597215befc5aaff1e5f6731a0fb3e0
2024-10-09 18:08:16 +00:00
Michael Bestas
d600185073
Merge tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-25000.02-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  dsp: q6voice: Add buf size check for cvp cal data
  asoc: msm-lsm-client: check for param size before copying

Change-Id: Ia786a33ae66c307d1af54b84796178928cf6ca01
2024-10-09 18:08:15 +00:00
Michael Bestas
cf9c5fb631
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa: Add additional cleanup in finish rt rule addition
  msm: ipa: Add additional cleanup in finish rt rule addition

Change-Id: Ic51c62ff63dc875fb537329316d09c52aee89197
2024-08-05 23:58:26 +03:00
Michael Bestas
6f41a7e92b
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom
  msm: camera: sensor: TOCTOU error handling in eeprom

Change-Id: I185fde58c627ce0efc41855773e3b7d52075fd39
2024-08-05 22:15:53 +03:00
Michael Bestas
7262b988ea
Merge tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0"

* tag 'LA.UM.9.14.r1-24900-LAHAINA.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  dsp: q6lsm: Check size of payload before access

Change-Id: I782131a810aaecf254b92d94e2db252c3741784e
2024-08-05 22:14:56 +03:00
Michael Bestas
97911c9236
Revert "dsp: q6lsm: Handle payload_size = sizeof(uint32_t) gracefully"
Reason for revert: Conflicts with upstream change.

This reverts commit 2ade12f6b1.

Change-Id: I189a7d9854d26ef14e5ba04ae94cea42bc4ede55
2024-08-05 22:14:15 +03:00
Michael Bestas
73f2cc1d2e
disp: msm: sde: Adjust max display check
sde_splash_data struct can fit MAX_DSI_DISPLAYS displays and >=
comparison here prevents us from storing the last display when
num_displays == MAX_DSI_DISPLAYS.

Change-Id: I56e62f77a56cdd2d5086e46762614c941ddacd6a
2024-06-23 19:54:35 +03:00
Michael Bestas
794bdf30ec
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/display-drivers:
  disp: msm: dp: limit max width supported
  disp: msm: dp: add support of hotplug for eDP interface.
  disp: msm: sde: address array index out-of-bound issue
  disp: msm: dp: disable pluggable eDP display backlight config

Change-Id: I813b60f59671b80b32dfd6d36db3589860acd7fb
2024-06-22 17:52:34 +03:00
Michael Bestas
f6b6fc438e
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/datarmnet:
  rmnet_core: pass correct length to ip_fast_csum

Change-Id: I9f2d36bcaceac3e94658e1e1c66472464c632182
2024-06-22 17:51:12 +03:00
Michael Bestas
48a7885440
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/dataipa:
  msm: ipa3: Adding changes to check pointer null or not

Change-Id: If597d4a2f9bda9e2da294cf40423a3688d00cc84
2024-06-22 17:50:31 +03:00
Michael Bestas
ff12c3d353
Merge tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0"

* tag 'LA.UM.9.14.1.r1-14100-QCM6490.QSSI14.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  asoc: Fix out-of-bound write
  dsp: q6voice: Adds checks for an integer overflow
  dsp: q6voice: Adds checks for an integer overflow

Change-Id: Ieb4b3e8ead0616624b7492cfc42bb72a024525b7
2024-06-22 17:49:19 +03:00
Samantha Tran
f7386b4ad7
disp: msm: retry dma buf attach on msm_gem_delayed_import error
In the event when msm_gem_delayed_import returns an error, reset
the obj_dirty property to true to allow the buffer to detach and
attach again.

Change-Id: Ib8da8f237c5a4ab696675cbcf66f1a3dfae02639
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-06-12 15:24:26 +00:00
LuK1337
2ade12f6b1
dsp: q6lsm: Handle payload_size = sizeof(uint32_t) gracefully
q6lsm_mmapcallback: payload has invalid size[4]

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7269
Change-Id: Icf54b28b9c47585f9e56bba9e0dc417079856885
2024-06-12 10:02:23 +02:00
Michael Bestas
0edbb3c4df
Merge tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/camera-kernel:
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: memmgr: Add refcount to track umd in use buffers
  msm: camera: sensor: Handling race condition in util api

Change-Id: I4708288ccf2096b70148fbeb2bb543991ac8df4d
2024-05-29 03:04:52 +03:00
Michael Bestas
bb0f246e35
Merge tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel into android13-5.4-lahaina
"LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0"

* tag 'LA.UM.9.14.r1-24700-LAHAINA.QSSI15.0' of https://git.codelinaro.org/clo/la/platform/vendor/opensource/audio-kernel:
  Asoc: dsp: Fix to check the list is empty or not
  dsp: q6lsm: Check size of payload before access
  Fix for OOB access issue
  dsp: q6asm increase the locking range
  ASoC: msm-pcm-q6-v2: Add size check
  ASoC : Add proper copyright marking.
  dsp: afe: Add check for num_spks
  soc: pinctrl-lpi: remove pm ops
  asoc: msm-compress: Fix compress_pause failure on gki
  Audio legacy: Integer overflow in msm_lsm_ioctl_compat during audio playback usecase. size = sizeof(p_info_32) + p_info_32.param_size; This overflow issue may result heap overflow during copying the data: memcpy(param_info_rsp, &p_info_32, sizeof(p_info_32));
  ASoC : Add macro to differentiate auto code
  ASoC: msm: get CoPP index based on FE id
  asoc: codecs: add array bound check
  soc: Address SWR rate mismatch interrupt
  asoc : add configuration about SLIMBUS_7_TX
  asoc: lahaina: add support for aud_ref_clk_sel mux
  dsp: afe: add support for aud_ref_clk_sel mux
  ASoC: dsp: Release lock before return
  ASoC: wcd937x: Add flag to decide RX_MUTE for HPHL and EAR
  ASoC: bolero: Add check for CMPDR switch
  ASoC : add support of HDMI controller for rb3gen2 platform
  asoc: lahaina: fractional sample rate support for TDM
  asoc: support for fractional sample rate over tdm
  Revert "asoc: msm-compress : Fix for CTS-on-gsi with gki"
  audio-kernel:swr: Add dynamic SWRM clk support
  asoc: codec: make mclk freq configurable in Bolero
  asoc: lahaina: Add ext clk source support
  asoc: ext-clk: Add support for configuring ext clk
  dsp: afe: Enhance and expose API for configuring ext clk
  dsp: q6voice: Handle mutex lock-unlock
  asoc: msm-compress : Fix for CTS-on-gsi with gki

Change-Id: I21b8e5f5ef608bf298230419123e4ee37c9b0797
2024-05-29 03:04:05 +03:00
vantoman
21834caf71
ipa_v3: Fix enum conversion warnings
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:510:41: warning: implicit conversion from enumeration type 'enum ipa_ip_type_enum_v01' to different enumeration type 'enum ipa_ip_type' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->ip = flt_spec_ptr->ip_type;
                               ~ ~~~~~~~~~~~~~~^~~~~~~
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:511:45: warning: implicit conversion from enumeration type 'enum ipa_filter_action_enum_v01' to different enumeration type 'enum ipa_flt_action' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->action = flt_spec_ptr->filter_action;
                                   ~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~

Change-Id: I0eb68d707151cd103676a30659ab81bf6fced131
2024-05-18 18:07:45 +00:00
Alexander Winkowski
8f2a69d5a3
techpack: audio: Fix false positive -Wstrlcpy-strlcat-size
strlen(swr_dmic_name_prefix_of) + 1 bytes are allocated for prefix_name just above

techpack/audio/asoc/codecs/swr-dmic.c:685:11: error: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Werror,-Wstrlcpy-strlcat-size]
                        strlen(swr_dmic_name_prefix_of) + 1);
                        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Change-Id: I808b4f135d42fc50587eeb9348848f7e0a3561cc
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2024-05-18 18:07:41 +00:00
Sultan Alsawaf
6c876cb48f
msm: ipa3: Silence PM notifier log spam
We don't need to know that PM notifiers are working. Silence the entry/exit
log spam in ipa_pm_notify().

Change-Id: I9bae89fa5e27b8835683ec1423ecc751491ea13c
Signed-off-by: Sultan Alsawaf <sultan@osomprivacy.com>
2024-05-18 18:07:37 +00:00