Commit graph

877,558 commits

Author SHA1 Message Date
Zhen Kong
271ad565aa defconfig: lahaina: Enable QRNG driver
Enable QRNG driver to generate random number and
feeding it to /dev/random on lahaina.

Change-Id: I1ffcb98965aabe45bffbd0ba930b0dfd70db8b2c
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2019-12-23 09:45:33 -08:00
Prudhvi Yarlagadda
2ca80f5c4c drivers: slimbus: Makefile: Correct makefile configuration
Correct slimbus driver makefile configuration for compilation
to happen in a proper sequence.

Change-Id: I41d662571829cd9430907ce92f53d1c7599e225b
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
2019-12-23 14:55:28 +05:30
Banajit Goswami
4c69e8bc41 ASoC: core: Support for compress ioctls
Compat driver should support compress ioctls when
COMPAT mode is enabled. Change adds support for
handling compress ioctls.

Change-Id: If7223ace326253240a1cd65bc9a111b8903977f1
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-23 15:56:15 +08:00
Gopikrishnaiah Anand
f61bddd304 ASoC: pcm: Add support for compat mode
When kernel is compiled for 64 bit and userspace client
is in 32 bit mode compat ioctl path will be taken. If
platform driver supports compat mode asoc framework
should call compat function pointers.
Change adds support in asoc framework to support compat mode.

Change-Id: I4929bc89c2ad467cdc83f5a00fe9d38e425c3ca2
Signed-off-by: Gopikrishnaiah Anand <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-23 15:37:52 +08:00
Alexei Avshalom Lazar
b5eee425b4 wil6210: notify cfg80211_new_sta upon connection before init tx ring
In AP mode upon client connection, sometimes Rx data packet
(e.g EAPOL) arrives before driver notify cfg80211_new_sta to kernel.
This causes the Rx packet to get lost.
To fix this, as part of connect event handling,
call cfg80211_new_sta() earlier, before initializing Tx ring.

Change-Id: Ife5fd7a5c79da4c0dd094c2b9cbc3785a165331d
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-22 13:18:56 +02:00
Alexei Avshalom Lazar
9c6eb35345 wil6210: allow disabling EDMG through force_edmg_channel debugfs
EDMG feature can be controlled through force_edmg_channel
debugfs but cannot be disabled.
Add support for disabling EDMG feature by setting
force_edmg_channel = 255.

Change-Id: I2cfc242e82ad8eb28f895cf537352de1265c65ec
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
2019-12-22 12:02:06 +02:00
Lior David
8afd2cd9b1 wil6210: fix update SSID when changing beacon
The change_beacon cfg80211 operation can be used to change
the SSID by specifying a different SSID in the probe response
and association response IEs. However the current driver
implementation does not update the firmware properly,
as a result it causes association requests to fail.
Fix this by extracting the SSID from the probe response IE
and if it was changed, update the firmware properly.

Change-Id: I8513c315b02b79bd2e29826672fd53b3a56ded91
Signed-off-by: Lior David <liord@codeaurora.org>
2019-12-22 12:00:20 +02:00
qctecmdr
567264c6cb Merge "hwrng: Add QRNG driver snapshot for kona" 2019-12-20 12:22:28 -08:00
qctecmdr
3772937d31 Merge "scsi: ufs-qti: Fix overwriting model name" 2019-12-20 12:22:28 -08:00
qctecmdr
bbafe8b1bc Merge "ALSA: compress: Add support to send codec specific data" 2019-12-20 12:22:27 -08:00
qctecmdr
28a2fba4a4 Merge "Asoc: Add audio backend to hwdep interface" 2019-12-20 12:22:27 -08:00
qctecmdr
d679dc78ae Merge "cpufreq: qcom-cpufreq-hw: Fix incorrect type warning from sparse" 2019-12-20 12:22:26 -08:00
qctecmdr
ac139a5c03 Merge "arm64: defconfig: Enable SPS driver for Lahaina" 2019-12-20 12:22:25 -08:00
qctecmdr
20d0b27b23 Merge "net: cnss2: Remove unsupported symbol references" 2019-12-20 12:22:25 -08:00
qctecmdr
d91fc2d48a Merge "phy: qcom-ufs: add UFS HS-G4 support" 2019-12-20 05:45:47 -08:00
qctecmdr
7aa352277d Merge "coresight: tmc: Fix mem_lock dead lock" 2019-12-20 05:45:47 -08:00
qctecmdr
fae584c712 Merge "arm64: defconfig: Enable debug features on Lahaina" 2019-12-20 05:45:46 -08:00
qctecmdr
1b35a503ba Merge "ASoC: compress: propagate the error code from the compress framework" 2019-12-20 05:45:45 -08:00
qctecmdr
bb76c8d330 Merge "phy: qcom-ufs: don't error out if vddp-ref-clk-supply is absent" 2019-12-20 05:02:09 -08:00
qctecmdr
fff4fc5622 Merge "ASoC: dapm: Avoid static route b/w cpu and codec dai" 2019-12-20 04:21:40 -08:00
qctecmdr
45eb6cbf7f Merge "ASoC: msm: qdsp6v2: Cleanup of compress offload drivers" 2019-12-20 04:21:40 -08:00
qctecmdr
f961f15dcd Merge "ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()" 2019-12-20 04:21:39 -08:00
qctecmdr
4c74fa0896 Merge "ASoC: Compress: Check and set pcm_new driver op" 2019-12-20 03:41:13 -08:00
qctecmdr
1493beb27a Merge "ASoC: msm: Update the encode option and sample rate" 2019-12-20 03:07:58 -08:00
qctecmdr
e84e857754 Merge "ALSA: core: Handle user defined ioctls" 2019-12-20 02:33:00 -08:00
qctecmdr
45d9ac1a86 Merge "ALSA: PCM: User control API implementation" 2019-12-20 02:33:00 -08:00
Ashok Vuyyuru
db2bd4325d msm: ipa3: Fix to ignore frag status packet in lan consumer pipe
Since lan payload is handler not handling the frag status packets,
add changes to ignore frag status packet in lan payload handler.

Change-Id: I6f93d29a009c023f0ab3966b2f73f49e82e2b585
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2019-12-20 15:48:49 +05:30
qctecmdr
d4d87ace97 Merge "interconnect: qcom: Build icc-rpmh with qnoc-lahaina" 2019-12-20 01:46:19 -08:00
qctecmdr
324dcd65f4 Merge "Bluetooth: Re-initialize regulator to NULL on error" 2019-12-20 01:46:18 -08:00
qctecmdr
4283a88d93 Merge "soc: mem_dump: fix physical address mapping issue" 2019-12-20 01:46:18 -08:00
qctecmdr
670b451abd Merge "shmbridge: get bridge mem pool's DMA address with dma_map_single" 2019-12-20 01:46:18 -08:00
Naveen Yadav
ef18527db3 cpufreq: qcom-cpufreq-hw: Fix incorrect type warning from sparse
The implicit typecast from void * to __iomem cause sparse to complain
about incorrect type in initializer, so fix the same.

Change-Id: I9690d76a9991667496011894f0a1fd83a7e23c1f
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2019-12-20 14:07:56 +05:30
Siva Kumar Akkireddi
24b8eba9be arm64: defconfig: Enable SPS driver for Lahaina
Enable SPS driver for Lahaina. SPS (Smart Peripheral System)
enables the support of all BAMs in the system which provide DMA
functionality to various peripherals.

Change-Id: I99b44844fefa6653fc4cdf991f855c9d9b5663e5
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
2019-12-20 00:32:20 -08:00
Aviral Gupta
5e78f73a05 ASoC: compress: propagate the error code from the compress framework
Propagate the error code from the compress framework for the timestamp
query. This error code will be used by the client to handle the
error case scenarios gracefully.

CRs-Fixed: 683288
Change-Id: I68ad14d52327dd0156531fe8d17ac54ba110fdf6
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 00:32:07 -08:00
Banajit Goswami
26ea5a19d9 ASoC: msm: Update the encode option and sample rate
Populate the sample rate, encode option in wma config params.
WMA V9 and WMA Pro tunnel-mode supports are added to compressed
driver. It allows user-space application to decode WMA V9 and
WMA Pro audio stream through QDSP6.
Codec specific metadata is sent only for first stream in gapless
playback. This causes incorrect configuration to be set for second
stream and distortions are observed due to framedrops in adsp.
Add support to send codec specific format during start of
next stream in gapless.
Add bit rate to wma codec data structure as it can vary between
streams in gapless.

CRs-Fixed: 367243, 367242
Change-Id: Ieeb9d302454d3935faa51cac77021e7c1d77012c
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 15:36:03 +08:00
Meng Wang
da769ef1d3 Asoc: Add audio backend to hwdep interface
Add audio backend to hwdep interface. This is to provide
ioctl interface to communicate to routing driver.
Currently codec driver uses request_firmware to get calibration data
but as this firmware file is also written by userspace process after
bootup, it is not recommended to use request_firmware. ALSA core
provides mechanism to get hardware dependent data using hwdep nodes.
Codec will use aforementioned nodes to get calibration data from
userspace.
This commit adds hwdep interface for codec calibration.

Change-Id: I7ecdcdb3c16b0b4d232e05f17f44b346ac796fd2
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-20 15:32:10 +08:00
Preetam Singh Ranawat
15555d3e6f ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()
When period interrupts are disabled, while loop in snd_pcm_update_hw_ptr0()
results in the machine locking up if runtime->hw_ptr_buffer_jiffies is 0.

Validate runtime->hw_ptr_buffer_jiffies value before while loop to avoid
delta check.

CRs-Fixed: 1109229
Change-Id: Ib20b71c70aa4a8bee2837d1f3b5a91ad4ce083da
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2019-12-20 15:27:20 +08:00
Ravi Kumar Alamanda
45b5e1f757 ASoC: Compress: Check and set pcm_new driver op
Check and set if pcm_new driver op is initialized by the driver.
This allows the compress offload drivers to register mixer
controls.

Change-Id: If54fa36cf19cbca7239d6e3e30455472e9a173d8
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 15:23:55 +08:00
Sudheer Papothi
0f8ec71b56 ASoC: dapm: Avoid static route b/w cpu and codec dai
Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different.

Change-Id: Icd17677a73fdc4bd30e0918fcaa7e7f394245685
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-20 15:15:36 +08:00
Can Guo
0cf02ecf9d scsi: ufs-qcom: Add reset control support for host controller
Add reset control for host controller so that host controller can be reset
as required in its power up sequence.

Change-Id: I7aae30c859426cad0c995400e747883fc60fef17
Signed-off-by: Can Guo <cang@codeaurora.org>
2019-12-19 22:41:46 -08:00
Can Guo
d9af7d719a scsi: ufs-qcom: Add ioctl interface for ufs query requests
This patch exposes the ioctl interface for UFS driver via SCSI device
ioctl interface, so that query requests can be sent to UFS device.

Change-Id: I01bcfcfbbb14f2b57560be73039814b80fb1f55f
Signed-off-by: Can Guo <cang@codeaurora.org>
2019-12-19 22:39:53 -08:00
Can Guo
17c4bdb216 BACKPORT: FROMLIST: scsi: ufs: Export query request interfaces
Vendor drivers may need to send query requests in vendor specific
implementations. Hence, export the query request interfaces so that
vendor drivers can use them.

Removed export of internal helper functions:
ufshcd_query_attr_retry() and ufshcd_query_flag_retry().

Bug: 146013342
Change-Id: Ibe3082097554e89e03b33a926ef013503bac0e74
Link: https://lore.kernel.org/patchwork/patch/1163542/
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2019-12-19 22:34:20 -08:00
Meng Wang
7913e574a9 ALSA: compress: Add support to send codec specific data
Codec specific  metadata is sent only for first stream in gapless
playback. This causes incorrect configuration to be set for second
stream and distortions are observed due to framedrops in adsp.
Add support to send codec specific format during start of
next stream in gapless using set_next_track_param.

Change-Id: Ic0a9286c4fd8d17df63d676d6ce14cd394dea791
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-20 13:42:14 +08:00
Asutosh Das
91a062c87d scsi: ufs-qti: Fix overwriting model name
The model name read by string descriptor is overwritten now.
This causes issues while finding the right quirk for the device.

Change-Id: Iedda88c6610ffe4a2fe8894b32fc8459fabd1931
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2019-12-19 20:44:23 -08:00
Banajit Goswami
6030d318e2 ASoC: msm: qdsp6v2: Cleanup of compress offload drivers
Clean up the format specifiers for compress offload drivers
and add compat ioctl support.

Change-Id: I0829830336ec62c66658d6a5199d73b61249f791
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:37:35 +08:00
Meng Wang
8625c90a01 ALSA: PCM: User control API implementation
Introduced a new helper function snd_pcm_add_usr_ctls() to
create control elements representing the user control for each
PCM (sub)stream.

Change-Id: I9f69470ff2c5d6df8d1fdc2e1c2caf198076076e
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:28:50 +08:00
Meng Wang
a1682a646a ALSA: PCM: volume API implementation
Introduced a new helper function snd_pcm_add_volume_ctls() to
create control elements representing the volume for each PCM
(sub)stream.

This patch also squashes the logic implemented by below change-

ASoC: Fix freed memory access of pcm stream kctl

Consider sound card instantiate fails due to
audrx init failure. In such case, all dais/ctls
are de-registered and freed. But as part of it,
access to unregistered ctls for pcm_chmap and similar
controls result in crash.  Ctls are freed at disconnection
but the disconnect is called only when it was registered.

CRs-Fixed: 1038054
Change-Id: Ief8817b4ec000c058d46aa021977b7c6003c0011
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:22:52 +08:00
Meng Wang
1d001ceb2f ALSA: core: Handle user defined ioctls
Handle ioctl magic 'U' as a user defined ioctl so that ALSA core calls
substream's ioctl handler.  This gets rid of a requirement that ALSA core
needs to be changed every time when a new user defined ioctl is introduced.

Change-Id: I390b9e0428bfadc302ff074417aa69163b12c6ec
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2019-12-20 12:18:49 +08:00
Tingwei Zhang
59430433d6 coresight: tmc: Fix mem_lock dead lock
Mem_lock was not unlocked when multiple sources were enabled and
one of them was disabled first. Free mem_lock in that path.

Change-Id: I380b2ce89c2df2dfd91754d2257503ade69545ce
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
2019-12-20 08:42:51 +08:00
yonghaih
54aaec6d49 cpufreq: record CPUFREQ stat for fast switch path
Original CPUFREQ stat recording is only for slow path, add it for
fast path.

Change-Id: I6f66cd686e6e96c4381db332600da60cbd399033
Signed-off-by: yonghaih <yonghaih@codeaurora.org>
[shalagra@codeaurora.org: Fixed trivial merge conflicts in port to 5.x]
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2019-12-19 16:34:20 -08:00