Remove unused 'runtime' variable from function snd_pcm_info().
The last usage of this variable was removed with the
'commit e11f0f90a626f9 ("ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO
internal command")'.
CRs-fixed: 2112663
Change-Id: I3964d84f7cced811d15ff45a1c31cc28d20dc721
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Drivers can implement 'struct snd_pcm_ops.ioctl' to handle some requests
from ALSA PCM core. These requests are internal purpose in kernel land.
Usually common set of operations are used for it.
SNDRV_PCM_IOCTL1_INFO is one of the requests. According to code comment,
it has been obsoleted in the old days.
We can see old releases in ftp.alsa-project.org. The command was firstly
introduced in v0.5.0 release as SND_PCM_IOCTL1_INFO, to allow drivers to
fill data of 'struct snd_pcm_channel_info' type. In v0.9.0 release,
this was obsoleted by the other commands for ioctl(2) such as
SNDRV_PCM_IOCTL_CHANNEL_INFO.
This commit removes the long-abandoned command, bye.
CRs-fixed: 2112663
Change-Id: I17d9c0a759fce81d3dc9b9375f5d5f35dac583b8
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Git-commit: e11f0f90a626f93899687b1cc909ee37dd6c5809
Git-repo: git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
In diagfwd_peripheral_exit() free the memory associated with
early_init_info.
Change-Id: I862b6d806d67dad38316f1608827a4bf6f5a691f
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
Disable L1 and L1ss PCIe low power modes for msm8996 CV2X
since it causes problems with WLAN (RC0) and not supported
by Neutrino Ethernet (RC1).
Change-Id: I7d9358a2cb5921f5e5d5da858faec553197063ee
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Set properties of the esoc driver for MDM shutdown and reset
time intervals for msm8996 CV2X.
Change-Id: Ic86f6b441b369a3ea4845425930724d5e6fed149
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Convert the timeout and shutdown intervals to be read from
the device tree and set default values in case no option is
provided.
Change-Id: I90efb5910ddf1667db5cde79f46a4a94da1668ec
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Reject driver reinit request when WLAN FW is down as FW
is in a bad state and can't communicate with host driver.
CRs-Fixed: 2153375
Change-Id: Id16cbfc05984091d61b18c98f7397baa871f82b4
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Register ops to store the gtk rekey data from the wlan
utility(wpa_supplicant) and configure the GTK offload
during wow suspend.
If the wlan module in suspend state with wowlan mode
this feature adds support to prevent the device to wakeup
from sleep state on gtk rekey failure in wlan firmware.
CRs-Fixed: 2150959
Change-Id: I968acfe65bd082d37c855f89d4460a09c055ffd8
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Validate the userspace wlan control cmd data, info and length
before copy into wcnss driver buffer. Avoid unnecessary string
manipulation and use kernel defined format specifier to print
wlan MAC address.
CRs-Fixed: 2149331
Change-Id: Ib59fdcc0e6b84cdd73972dcb62b2c05e4741f5f7
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
With WARN_RATELIMIT lot of warning messages are
sometimes causing watchdog bite or spinlock lockup
(due to continuous logging). Thus change it to
pr_debug.
Change-Id: I2f0670bd20a39d289c105f9896e6fc509fb87de6
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
With USB Host pass through, touchscreen is available on gvm.
Change-Id: I129f2cc65e5d11a6d69e7afde13356a3bee98df6
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
Current CCID daemon is supporting TPDU level exhanges for CCID
communication. Hence report same in dwFeatures field of CCID class
descriptor.
Change-Id: If66a54bd74c76ccb417b202b224de5c79e9dfa05
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
When loading wlan driver, driver will check if chip is initialized
by reading pci io FW_IND_INITIALIZED status. While timeout occurred
when wait for above status randomly in multi load-unload process.
Restore pci config space before enable device during resume pci link.
Change-Id: Ib10f739b2321c7cb0e71ad40db571075a56ae48a
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
Cleanup ION cache maintenance code to properly validate the target of
userspace cache maintenance requests.
Change-Id: I55b8e3584c59634f95250bc7c0bce5d8d70e6a13
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Reject regsiter_driver request when WLAN FW is already down as
WLAN FW is in a bad state and can't communicate with host driver.
Change-Id: I57ba839101f5c0a361e74060b18b45f87c71634c
CRs-Fixed: 2151726
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Expose APIs to get and set instance ID support by exposing
a mixer control for HAL to set the support status as well as APIs for
kernel components to querry for instance ID support.
CRs-Fixed: 2151551
Change-Id: I76a97c92cd02e28f03a0efb73757c4be75152d1f
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Set freed pointers to NULL to avoid double free
in msm_compr_playback_open and msm_compr_playback_free
functions of compress driver.
CRs-Fixed: 2142216
Change-Id: Ifd011dd85dd9f610c7b69dd460f73d26e006cd66
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Update audio route maps for rx and tx mi2s clk to fix
pop noise during device switch from playback in native mode
to voice call.
CRs-Fixed: 2117960
Change-Id: I75c6cd17ddc7de99fd40415302059545ce18777b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Check the validity of the pointer in user space that you intend to
access. access_ok function simply checks that the address is likely
in user space, not in the kernel.
Change-Id: I936f73a2c2029f9e7ca12cc8fc06d0698e6710c0
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Pop is observed during switch from playback in native mode
to voice call and vice-versa. This is resolved by mclk
reset to non-native mode before hph path powers up.
CRs-Fixed: 2117960
Change-Id: I53d5f985453895d34179610e3a414021eade7bcb
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add support to mount system & vendor partitions during early init
on msm8996.
Change-Id: I6b05edb8d17f192e1d8d9d5e1c0c33a3d1a7c441
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
When the thread processing blocked TA wakes up when listener
becames available, the listener may be unavailable again before
this thread grabs the global mutex, so make change to add a
while loop to check if listener available after wake up and hold
mutex.
Change-Id: Ib386faca7a44325142da1dc54e19a99f3173ec86
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
cmnlib_ion_handle is only used within qseecom_load_commonlib_image()
and is not a shared resource, so change it to a local variable and
avoid potential reuse or free by another thread in case of reentrancy.
Change-Id: I9e1f25cd024a19a7379b7409bdc6521bcd8bcae5
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Reset app_crash flag to make sure app entry is not freed when
there is another client still being blocked on the same app.
Change-Id: I25d236abc97e60fe8a4abbbc8c086291c764a9c1
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
The shader block size is in dwords. Make sure we copy out all the
bytes that we want.
Change-Id: I42364350ee6314b4830ed11cc06e61d854122543
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
Signed-off-by: Archana Obannagari <aobann@codeaurora.org>
Remove "qcom,mdss-dsi-on-command" and "mdss-dsi-off command"
commands for boot up performance optimization.
The two commands are for native DSI panels without a bridge
chip. However,AUTO platform has adv7533 bridge chip,which
is controlled by I2C instead of the above two commands.
In addition,the two command will cause extra wait for about
210ms in dsi_panel_tx_cmd_set() for dsi_display_enbale().
This make drmAtomicCommit() in libdrm a little slower,
so total boot time will be longer.
Change-Id: I1c95456b1734acb05cf2f38bb4c95441343bffab
Signed-off-by: Daocai <daocai@codeaurora.org>
When device in Low Power Mode, usb driver invokes
suspend and then disconnect upon cable disconnection.
Remove the ep_delay if it is set.
Change-Id: I203d57d70e8c189a2f3bc7f7830392fac98cfbb1
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
After firmware crashes, driver will try to recover the device by
resetting hardware and reloading firmware. Add a debug quirk option
to skip the recovery so that WLAN device can still remain the status
after crash for live debugging.
Change-Id: Ifff26df9ae5ab4c25573ca84e29eed73a79c6525
Signed-off-by: Yue Ma <yuem@codeaurora.org>