]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/log
mirror_ubuntu-zesty-kernel.git
7 years agoASoC: qcom: ipq806x: add wrdma related register offsets
Srinivas Kandagatla [Mon, 1 Feb 2016 14:18:06 +0000 (14:18 +0000)]
ASoC: qcom: ipq806x: add wrdma related register offsets

This patch adds wrdma related register offsets to the lpass variant data
of ipq806x.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: ipq806x: add error in dma allocation.
Srinivas Kandagatla [Mon, 1 Feb 2016 11:25:57 +0000 (11:25 +0000)]
ASoC: qcom: ipq806x: add error in dma allocation.

ipq806x is only ever tested for playback so return error in dma allocation
if the stream direction is capture.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: pass direction to dma allocation
Srinivas Kandagatla [Thu, 28 Jan 2016 13:46:24 +0000 (13:46 +0000)]
ASoC: qcom: pass direction to dma allocation

This patch updates the internal dma allocation callbacks to take the
stream direction so that it can allocate channels suitable for that
stream direction. Before the capture support this was not necessary.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start
Srinivas Kandagatla [Thu, 28 Jan 2016 13:42:49 +0000 (13:42 +0000)]
ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start

This patch renames rdmactl_audif_start to dmactrl_audif_start as this
is common for both rdma and wrdma. Without this patch the name would be
bit misleading to the readers.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: add wrdma register details to lpass_variant
Srinivas Kandagatla [Thu, 28 Jan 2016 12:40:08 +0000 (12:40 +0000)]
ASoC: qcom: add wrdma register details to lpass_variant

This patch adds wrdma related register offsets and shifts into lpass
variant structure.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: use snd_dma_alloc/free* apis
Srinivas Kandagatla [Mon, 1 Feb 2016 15:07:16 +0000 (15:07 +0000)]
ASoC: qcom: use snd_dma_alloc/free* apis

There is no point in having local allocation functions when the driver
can use snd_dma_alloc/free() apis. This patch replaces the local versions
of the dma allocation apis with the snd_dma_alloc/free() apis.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoAdd capture support to msm8x16-wcd codec
Srinivas Kandagatla [Fri, 5 Feb 2016 08:08:20 +0000 (08:08 +0000)]
Add capture support to msm8x16-wcd codec

This patch adds msm8x16-wcd codec support which has been tested for
Audio In using Headset Mic/Secondary Mic/Primary Mic and Audio out via
Speaker/Headset.

Below are mixer setups for capture and playbacks.

amixer cset numid=18,iface=MIXER,name='RX1 MIX1 INP1' 'RX1'
amixer cset numid=21,iface=MIXER,name='RX2 MIX1 INP1' 'RX2'
amixer cset numid=5,iface=MIXER,name='RX1 Digital Volume' 100
amixer cset numid=6,iface=MIXER,name='RX2 Digital Volume' 100
amixer cset numid=30,iface=MIXER,name='RDAC2 MUX' 'RX2'

amixer cset numid=23,iface=MIXER,name='RX3 MIX1 INP1' 'RX1'
amixer cset numid=17,iface=MIXER,name='SPK DAC Switch' 1

amixer cset numid=28,iface=MIXER,name='DEC1 MUX' 'ADC2'
amixer cset numid=3,iface=MIXER,name='ADC2 Volume' 70
amixer cset numid=27,iface=MIXER,name='ADC2 MUX' 'INP2'
arecord -D plughw:0,2 -r 16000 -f S16_LE /tmp/f-16000.wav

amixer cset numid=28,iface=MIXER,name='DEC1 MUX' 'ADC2'
amixer cset numid=3,iface=MIXER,name='ADC2 Volume' 70
amixer cset numid=27,iface=MIXER,name='ADC2 MUX' 'INP3'

amixer cset numid=27,iface=MIXER,name='DEC1 MUX' 'DMIC1'

TODO:
headset jack/Mic detection
headset Buttons

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoUBUNTU: Ubuntu-4.4.0-1005.5
Paolo Pisati [Fri, 19 Feb 2016 12:35:18 +0000 (13:35 +0100)]
UBUNTU: Ubuntu-4.4.0-1005.5

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Start new release
Paolo Pisati [Fri, 19 Feb 2016 12:32:45 +0000 (13:32 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: SAUCE: dtb: add a custom apq8016 for snappy with sdhc_2's vmmc-supply disabled
Paolo Pisati [Fri, 19 Feb 2016 12:31:50 +0000 (13:31 +0100)]
UBUNTU: SAUCE: dtb: add a custom apq8016 for snappy with sdhc_2's vmmc-supply disabled

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Ubuntu-4.4.0-1004.4
Paolo Pisati [Tue, 9 Feb 2016 09:31:32 +0000 (10:31 +0100)]
UBUNTU: Ubuntu-4.4.0-1004.4

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Config] MMC_BLOCK_MINORS=32
Paolo Pisati [Tue, 9 Feb 2016 09:29:28 +0000 (10:29 +0100)]
UBUNTU: [Config] MMC_BLOCK_MINORS=32

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Start new release
Paolo Pisati [Tue, 9 Feb 2016 09:28:04 +0000 (10:28 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Ubuntu-4.4.0-1003.3
Paolo Pisati [Fri, 5 Feb 2016 13:39:03 +0000 (14:39 +0100)]
UBUNTU: Ubuntu-4.4.0-1003.3

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Start new release
Paolo Pisati [Fri, 5 Feb 2016 13:38:26 +0000 (14:38 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agousb: phy: msm: Fix state machine worker logic for OTG mode.
Srinivas Kandagatla [Fri, 5 Feb 2016 11:50:40 +0000 (11:50 +0000)]
usb: phy: msm: Fix state machine worker logic for OTG mode.

Issue is that if the board is booted without micro usb cable and usb
device attached, kernel fails to populate the usb host and device.
The reason for this is that the state machine worker logic only checks
for USB_DR_MODE_PERIPHERAL and USB_DR_MODE_HOST modes to run worker
thread. However if the phy is configured in OTG mode it would fail
to run the state machine, resulting in failure to detect for very
first time.

This patch fixes by adding OTG checks in to the logic.

Issue is noticed on Qualcomm Dragon board DB410C.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
(cherry picked from commit 15fddd0d508b672385f4fd6fed33c179a7943c5d)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoarm64: dts: qcom: fix typo in usb id pins
Srinivas Kandagatla [Fri, 5 Feb 2016 11:49:59 +0000 (11:49 +0000)]
arm64: dts: qcom: fix typo in usb id pins

This patch fixes typo in usb id pinctrl setup

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
(cherry picked from commit 81b32c972b83d0c27d3a3c3f0fb8c899a3fa1ffe)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Ubuntu-4.4.0-1002.2
Paolo Pisati [Fri, 5 Feb 2016 09:23:37 +0000 (10:23 +0100)]
UBUNTU: Ubuntu-4.4.0-1002.2

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Start new release
Paolo Pisati [Thu, 4 Feb 2016 16:21:33 +0000 (17:21 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Config] FTBFS: disable DRM_PANEL_SIMPLE
Paolo Pisati [Thu, 4 Feb 2016 16:28:33 +0000 (16:28 +0000)]
UBUNTU: [Config] FTBFS: disable DRM_PANEL_SIMPLE

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Config] better align config with qcomlt-4.4
Paolo Pisati [Thu, 4 Feb 2016 16:18:46 +0000 (16:18 +0000)]
UBUNTU: [Config] better align config with qcomlt-4.4

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Config] updateconfigs
Paolo Pisati [Thu, 4 Feb 2016 16:07:02 +0000 (16:07 +0000)]
UBUNTU: [Config] updateconfigs

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Config] copy annotations from master
Paolo Pisati [Thu, 4 Feb 2016 16:05:21 +0000 (16:05 +0000)]
UBUNTU: [Config] copy annotations from master

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Ubuntu-4.4.0-1001.1
Paolo Pisati [Thu, 4 Feb 2016 15:24:46 +0000 (16:24 +0100)]
UBUNTU: Ubuntu-4.4.0-1001.1

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: Start new release
Paolo Pisati [Thu, 4 Feb 2016 15:21:09 +0000 (16:21 +0100)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agowcn36xx: remove references to IFF_PROMISC
Nicolas Dechesne [Wed, 27 Jan 2016 09:26:24 +0000 (10:26 +0100)]
wcn36xx: remove references to IFF_PROMISC

Since commit df140465 (mac80211: remove support for IFF_PROMISC), IFF_PROMISC no
longer exists, so we need to remove all references to it.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agowcn36xx: Disable power save for now
Bjorn Andersson [Mon, 11 Jan 2016 18:33:27 +0000 (10:33 -0800)]
wcn36xx: Disable power save for now

Enabling power save results in extremely long ping times and stalling
transfers. So disable it for not until we can figure out how to work
around this.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
7 years agowcn36xx: Use correct command struct for EXIT_BMPS_REQ
Pontus Fuchs [Wed, 2 Apr 2014 07:49:29 +0000 (09:49 +0200)]
wcn36xx: Use correct command struct for EXIT_BMPS_REQ

EXIT_BMPS_REQ was using the command struct for ENTER_BMPS_REQ. I
spotted this when looking at command dumps.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: don't pad beacons for mesh
Jason Mobarak [Tue, 11 Mar 2014 22:49:01 +0000 (15:49 -0700)]
wcn36xx: don't pad beacons for mesh

Patch "wcn36xx: Pad TIM PVM if needed" has caused a regression in mesh
beaconing.  The field tim_off is always 0 for mesh mode, and thus
pvm_len (referring to the TIM length field) and pad are both incorrectly
calculated.  Thus, msg_body.beacon_length is incorrectly calculated for
mesh mode. Fix this.

Signed-off-by: Jason Mobarak <jam@cozybit.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@cozybit.com>
7 years agowcn36xx: Implement multicast filtering
Pontus Fuchs [Tue, 18 Feb 2014 10:45:30 +0000 (11:45 +0100)]
wcn36xx: Implement multicast filtering

Pass the multicast list to FW.

This patch also adds a way to build the smd command in place. This is
needed because the MC list command is too big for the stack.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Track association state
Pontus Fuchs [Wed, 26 Feb 2014 17:46:41 +0000 (18:46 +0100)]
wcn36xx: Track association state

Knowing the association state is needed for mc filtering.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Clear encrypt_type when deleting bss key
Pontus Fuchs [Fri, 21 Feb 2014 22:12:07 +0000 (23:12 +0100)]
wcn36xx: Clear encrypt_type when deleting bss key

This fixes a problem connecting to an open network after being
connected to an encrypted network.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Use allocated self sta index instead of hard coded
Pontus Fuchs [Mon, 17 Feb 2014 19:41:55 +0000 (20:41 +0100)]
wcn36xx: Use allocated self sta index instead of hard coded

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Copy all members in config_sta v1 conversion
Pontus Fuchs [Mon, 17 Feb 2014 07:36:13 +0000 (08:36 +0100)]
wcn36xx: Copy all members in config_sta v1 conversion

When converting to version 1 of the config_sta struct not all
members where copied. This fixes the problem of multicast frames
not being delivered on an encrypted network.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Parse trigger_ba response properly
Pontus Fuchs [Wed, 19 Feb 2014 16:15:59 +0000 (17:15 +0100)]
wcn36xx: Parse trigger_ba response properly

This message does not follow the canonical format and needs it's own
parser.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Remove sta pointer in private vif struct
Pontus Fuchs [Mon, 17 Feb 2014 20:34:53 +0000 (21:34 +0100)]
wcn36xx: Remove sta pointer in private vif struct

This does not work with multiple sta's in a vif.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Add helper macros to cast sta to priv
Pontus Fuchs [Mon, 17 Feb 2014 20:20:53 +0000 (21:20 +0100)]
wcn36xx: Add helper macros to cast sta to priv

While poking at this I also change two related things. I rename one
variable to make the names consistent. I also move one assignment of
priv_sta to the declaration to save a few lines.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Fetch private sta data from sta entry instead of from vif
Pontus Fuchs [Tue, 18 Feb 2014 12:28:14 +0000 (13:28 +0100)]
wcn36xx: Fetch private sta data from sta entry instead of from vif

For consistency with other code.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Use define for invalid index and fix typo
Pontus Fuchs [Sat, 15 Feb 2014 20:21:11 +0000 (21:21 +0100)]
wcn36xx: Use define for invalid index and fix typo

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Use consistent name for private vif
Pontus Fuchs [Wed, 12 Feb 2014 21:04:35 +0000 (22:04 +0100)]
wcn36xx: Use consistent name for private vif

Some code used priv_vif and some used vif_priv. Convert all to vif_priv
for consistency.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Add helper macros to cast vif to private vif and vice versa
Pontus Fuchs [Wed, 12 Feb 2014 20:52:12 +0000 (21:52 +0100)]
wcn36xx: Add helper macros to cast vif to private vif and vice versa

Makes the code a little easier to read.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Pad TIM PVM if needed
Pontus Fuchs [Mon, 10 Feb 2014 20:33:54 +0000 (21:33 +0100)]
wcn36xx: Pad TIM PVM if needed

The wcn36xx FW expects a fixed size TIM PVM in the beacon template. If
supplied with a shorter than expected PVM it will overwrite the IE
following the TIM.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: Clean up wcn36xx_smd_send_beacon
Pontus Fuchs [Mon, 10 Feb 2014 20:32:11 +0000 (21:32 +0100)]
wcn36xx: Clean up wcn36xx_smd_send_beacon

Needed for coming improvements. No functional changes.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
7 years agowcn36xx: split DMA mask register writing.
Fengwei Yin [Sun, 20 Dec 2015 13:20:41 +0000 (21:20 +0800)]
wcn36xx: split DMA mask register writing.

Per comments from Bjorn Andersson <bjorn.andersson@sonymobile.com>,
split DMA mask register writing as seperate patch in case we need
bi-sect in the furture.

Signed-off-by: Fengwei Yin <fengwei.yin@linaro.org>
7 years agowcn36xx: handle rx skb allocation failure to avoid system crash
Fengwei Yin [Sun, 20 Dec 2015 13:20:40 +0000 (21:20 +0800)]
wcn36xx: handle rx skb allocation failure to avoid system crash

Lawrence reported that git clone could make system crash on a
Qualcomm ARM soc based device (DragonBoard, 1G memory without
swap) running 64bit Debian.

It's turned out the crash is related with rx skb allocation
failure. git could consume more than 600MB anonymous memory.
And system is in extremely memory shortage case.

But driver didn't handle the rx allocation failure case. This patch
doesn't submit skb to upper layer if rx skb allocation fails.
Instead, it reuse the old skb for rx DMA again. It's more like
drop the packets if system is in memory shortage case.

With this change, git clone is OOMed instead of system crash.

Reported-by: King, Lawrence <lking@qti.qualcomm.com>
Signed-off-by: Fengwei Yin <fengwei.yin@linaro.org>
7 years agofixup! ARM: qcom_defconfig: Add QCOM specific drivers
Nicolas Dechesne [Mon, 25 Jan 2016 14:29:41 +0000 (15:29 +0100)]
fixup! ARM: qcom_defconfig: Add QCOM specific drivers

7 years agokernel: configs: add CONFIG_INPUT_JOYDEV in distro.config
Nicolas Dechesne [Tue, 15 Dec 2015 13:31:49 +0000 (14:31 +0100)]
kernel: configs: add CONFIG_INPUT_JOYDEV in distro.config

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agokernel: configs: add I2C_CHARDEV in distro.config
Nicolas Dechesne [Fri, 25 Sep 2015 19:15:41 +0000 (12:15 -0700)]
kernel: configs: add I2C_CHARDEV in distro.config

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agokernel: add DRM_LOAD_EDID_FIRMWARE in distro.config
Nicolas Dechesne [Wed, 23 Sep 2015 06:35:58 +0000 (23:35 -0700)]
kernel: add DRM_LOAD_EDID_FIRMWARE in distro.config

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agomulti_v7_defconfig: add msm iommu kconfig
Srinivas Kandagatla [Thu, 14 Jan 2016 12:50:11 +0000 (12:50 +0000)]
multi_v7_defconfig: add msm iommu kconfig

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agocpufreq-dt: Add missing rcu_read_lock() for find_device_opp()
Georgi Djakov [Wed, 13 Jan 2016 13:10:25 +0000 (15:10 +0200)]
cpufreq-dt: Add missing rcu_read_lock() for find_device_opp()

The function dev_pm_opp_get_notifier() must be called with held
rcu_read_lock. In order to keep the pointer valid, add rcu_read_lock().

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
7 years agoarm: dts: remove duplicate entires
Srinivas Kandagatla [Thu, 14 Jan 2016 16:01:37 +0000 (16:01 +0000)]
arm: dts: remove duplicate entires

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoASoC: qcom: use correct device pointer in dma allocation
Srinivas Kandagatla [Mon, 11 Jan 2016 14:36:00 +0000 (14:36 +0000)]
ASoC: qcom: use correct device pointer in dma allocation

dev pointer in struct snd_soc_pcm_runtime does not have dma_ops set. In
v4.4 kernel dma_ops would end up pointing to dummy_dma_ops in such cases.
So attempting to use such device in allocating coherent memory on aarch64
would fail.

According to commit 1dccb598df549d892b6450c261da54cdd7af44b4 ("arm64:
simplify dma_get_ops") The current behavior of dma_get_ops is to fall
back to the global dma_ops when a device has not set its own dma_ops,
but only for DT based systems.

So, this patch fixes the driver to use correct device pointer while
allocating coherent memory, and also deletes un-necessary dma_mask setup
on soc_runtime->dev.

Without this patch lpass driver would fail with below log:
...
[    6.541542]  ADV7533: lpass_platform_alloc_buffer: Could not allocate DMA buffer
[    6.541914] apq8016-lpass-cpu 7708000.lpass-cpu: ASoC: pcm constructor failed: -12
[    6.548216] qcom-apq8016-sbc 7702000.sound: ASoC: can't create pcm ADV7533 :-12
[    6.555581] qcom-apq8016-sbc 7702000.sound: ASoC: failed to instantiate card -12
[    6.566072] qcom-apq8016-sbc: probe of 7702000.sound failed with error -12
...

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoWIP: drm: msm: add proper hdmi codec driver.
Srinivas Kandagatla [Thu, 14 Jan 2016 10:37:16 +0000 (10:37 +0000)]
WIP: drm: msm: add proper hdmi codec driver.

This patch adds proper hdmi-codec driver using hdmi-codec support in
asoc.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agosound: qcom: add dsp support to apq8064
Srinivas Kandagatla [Mon, 7 Dec 2015 12:01:09 +0000 (12:01 +0000)]
sound: qcom: add dsp support to apq8064

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agosound: codec: Add support to msm8x16_wcd codec.
Srinivas Kandagatla [Wed, 14 Oct 2015 10:26:46 +0000 (11:26 +0100)]
sound: codec: Add support to msm8x16_wcd codec.

On msm8x16 SOCs the codec integration is split into digital and analog
parts, digitial part is integrated with SOC and the analog part is
integrated as part of pmic chip pm8916.

This driver provides basic playback support with lot of todos:
1> Capture support
2> Cleanup
3> Multi button head set support.
4> Impedenace matching logic.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoALSA: pcm: add IEC958 channel status helper for hw_params
Jyri Sarha [Fri, 18 Sep 2015 11:06:39 +0000 (14:06 +0300)]
ALSA: pcm: add IEC958 channel status helper for hw_params

Add IEC958 channel status helper that gets the audio properties from
snd_pcm_hw_params instead of snd_pcm_runtime. This is needed to
produce the channel status bits already in audio stream configuration
phase.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
7 years agoASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders
Jyri Sarha [Fri, 18 Sep 2015 11:06:40 +0000 (14:06 +0300)]
ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders

The hdmi-codec is a platform device driver to be registered from
drivers of external HDMI encoders with I2S and/or spdif interface. The
driver in turn registers an ASoC codec for the HDMI encoder's audio
functionality.

The structures and definitions in the API header are mostly redundant
copies of similar structures in ASoC headers. This is on purpose to
avoid direct dependencies to ASoC structures in video side driver.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Conflicts:
sound/soc/codecs/Makefile

Conflicts:
sound/soc/codecs/Makefile

7 years agodrivers: usb: Add bus scaling suppport
Rajendra Nayak [Tue, 13 Oct 2015 12:08:52 +0000 (17:38 +0530)]
drivers: usb: Add bus scaling suppport

Add msm bus scaling support and hack to request
max bandwith at probe

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
7 years agousb: host: ehci-msm: Use posted data writes on AHB
Andy Gross [Thu, 5 Nov 2015 21:24:59 +0000 (15:24 -0600)]
usb: host: ehci-msm: Use posted data writes on AHB

This patch sets the AHBMODE to allow for posted data writes.  This
results in higher performance.

Signed-off-by: Andy Gross <agross@codeaurora.org>
7 years agousb: chipidea: msm: Use posted data writes on AHB
Andy Gross [Thu, 5 Nov 2015 21:18:25 +0000 (15:18 -0600)]
usb: chipidea: msm: Use posted data writes on AHB

This patch sets the AHBMODE to allow for posted data writes.  This results in
higher performance.

Signed-off-by: Andy Gross <agross@codeaurora.org>
7 years agousb: phy: msm: Ensure that workers are initialized before use
Ivan T. Ivanov [Wed, 13 May 2015 12:20:12 +0000 (15:20 +0300)]
usb: phy: msm: Ensure that workers are initialized before use

Charger detect and USB state detect workers could be triggered from
USB-HOST and USB cable detect notifiers. Ensure that workers are
initialized before driver register its interest for cable events.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
7 years agousb: phy: msm: Disable driver runtime PM
Ivan T. Ivanov [Wed, 13 May 2015 12:11:14 +0000 (15:11 +0300)]
usb: phy: msm: Disable driver runtime PM

Currently runtime PM for this driver is broken. Disable it until
proper fix is developed.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
7 years agousb: phy: msm: HACK: Make Vddc configuration optional
Ivan T. Ivanov [Fri, 8 May 2015 09:54:47 +0000 (12:54 +0300)]
usb: phy: msm: HACK: Make Vddc configuration optional

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
7 years agoarm: dts: apq8064: fix clock names according to new rpmcc
Srinivas Kandagatla [Thu, 10 Dec 2015 12:00:23 +0000 (12:00 +0000)]
arm: dts: apq8064: fix clock names according to new rpmcc

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agodts: qcom: Add CoreSight components for APQ8064
Ivan T. Ivanov [Fri, 11 Sep 2015 11:48:23 +0000 (14:48 +0300)]
dts: qcom: Add CoreSight components for APQ8064

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
7 years agoARM: dts: ERAGON: fix uart pinctrl
Srinivas Kandagatla [Mon, 7 Dec 2015 16:45:15 +0000 (16:45 +0000)]
ARM: dts: ERAGON: fix uart pinctrl

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoarm: dts: qcom: apq8064: Add fixed rate on-board oscillators
Georgi Djakov [Mon, 7 Dec 2015 15:24:10 +0000 (15:24 +0000)]
arm: dts: qcom: apq8064: Add fixed rate on-board oscillators

Currently the rates of the xo and sleep clocks are hard-coded in the
GCC driver, but this is a board layout description that actually should
be in the DT. Moving them into DT also allows us to insert the RPM
controlled clocks between the DT and GCC clocks.

7 years agoarm: dts: qcom: apq8064: Add RPMCC DT node
Georgi Djakov [Thu, 3 Dec 2015 14:02:56 +0000 (16:02 +0200)]
arm: dts: qcom: apq8064: Add RPMCC DT node

Add the RPM Clock Controller DT node.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
7 years agodts: arm: add support to digital audio via dsp
Srinivas Kandagatla [Thu, 3 Dec 2015 14:56:45 +0000 (14:56 +0000)]
dts: arm: add support to digital audio via dsp

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoarm: dts: apq8064: add support to smd apr_audio svc channel
Srinivas Kandagatla [Thu, 3 Dec 2015 10:42:02 +0000 (10:42 +0000)]
arm: dts: apq8064: add support to smd apr_audio svc channel

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agodts: arm: apq8064: add support to q6 pil via pil-tz
Srinivas Kandagatla [Thu, 3 Dec 2015 10:37:04 +0000 (10:37 +0000)]
dts: arm: apq8064: add support to q6 pil via pil-tz

This patch adds support to q6 firmware loading using the tz-pil driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agoiommu: qcom: v1: move iommu-sec pgtable allocation
Stanimir Varbanov [Tue, 12 Jan 2016 13:07:55 +0000 (15:07 +0200)]
iommu: qcom: v1: move iommu-sec pgtable allocation

move the allocation of iommu-sec page table into msm_iommu_dev
in order to use properly initialised struct device.
The dma_alloc_attrs would fail to allocate memory with the fake
struct device which was the case before this change.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
7 years agomedia: vidc: venc/vdec: vb2 structure reorganisation
Stanimir Varbanov [Mon, 11 Jan 2016 10:48:28 +0000 (12:48 +0200)]
media: vidc: venc/vdec: vb2 structure reorganisation

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
7 years agomedia: vidc: debug: fix build warnings
Stanimir Varbanov [Tue, 12 Jan 2016 13:27:58 +0000 (15:27 +0200)]
media: vidc: debug: fix build warnings

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
7 years agokernel: configs: Enable input misc device drivers
Ivan T. Ivanov [Fri, 18 Sep 2015 08:50:08 +0000 (11:50 +0300)]
kernel: configs: Enable input misc device drivers

Enable drivers which handle PMIC's input events.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
7 years agokernel: configs: update distro config from release branch
Srinivas Kandagatla [Wed, 16 Sep 2015 16:08:51 +0000 (17:08 +0100)]
kernel: configs: update distro config from release branch

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
7 years agokernel: configs: improve distro.config, mostly for systemd
Nicolas Dechesne [Wed, 29 Jul 2015 13:03:15 +0000 (15:03 +0200)]
kernel: configs: improve distro.config, mostly for systemd

* add missing options required/optional for systemd
http://cgit.freedesktop.org/systemd/systemd/tree/README
Some options were enabled by default in arch/arm64/defconfig, but not in
arch/arm/multi_v7_defconfig..

* rework/move the options to separate out systemd configs

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agokernel: configs: update distro.config
Nicolas Dechesne [Wed, 29 Jul 2015 12:26:49 +0000 (14:26 +0200)]
kernel: configs: update distro.config

Add recent updates from 15.07 release.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agokernel: configs: move linaro distro.conf as proper %.config fragment
Nicolas Dechesne [Wed, 29 Jul 2015 08:47:06 +0000 (10:47 +0200)]
kernel: configs: move linaro distro.conf as proper %.config fragment

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agolinaro: add defconfig fragment with basic linaro config
Nicolas Dechesne [Mon, 6 Jul 2015 08:51:25 +0000 (10:51 +0200)]
linaro: add defconfig fragment with basic linaro config

In order to ease kernel configuration, we are now using kernel config
fragments. In the folder linaro/configs, we will add fragments as needed with
all configurations that are required when using the Linaro kernel releases.

Users are expected to run the following command to properly configure their
kernel tree prior to the build:

./scripts/kconfig/merge_config.sh arch/arm64/configs/defconfig \
                                  linaro/configs/distro.conf \
                                  [-O <build-dir>]

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
7 years agowcn36xx: avoid alloc mem with GFP_KERNEL in smd callback.
Yin, Fengwei [Wed, 16 Sep 2015 15:37:31 +0000 (23:37 +0800)]
wcn36xx: avoid alloc mem with GFP_KERNEL in smd callback.

which will trigger warning when lockdep debugging is enabled.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agowcn36xx: eliminate the warning for unsupported SMD_EVENT
Yin, Fengwei [Wed, 14 Oct 2015 14:15:25 +0000 (22:15 +0800)]
wcn36xx: eliminate the warning for unsupported SMD_EVENT

  188 and 259.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agowcn36xx: Update the smd client driver to use new smd channel
Yin, Fengwei [Fri, 23 Oct 2015 08:07:42 +0000 (16:07 +0800)]
wcn36xx: Update the smd client driver to use new smd channel
match method.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agoBluetooth: btqcomsmd: Qualcomm WCNSS HCI driver
Bjorn Andersson [Tue, 20 Oct 2015 02:48:21 +0000 (10:48 +0800)]
Bluetooth: btqcomsmd: Qualcomm WCNSS HCI driver

The Qualcomm WCNSS chip provides two SMD channels to the BT core; one
for command and one for event packets. This driver exposes the two
channels as a hci device.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
7 years agoBluetooth: Add HCI device identifier for Qualcomm SMD
Bjorn Andersson [Tue, 20 Oct 2015 02:46:25 +0000 (10:46 +0800)]
Bluetooth: Add HCI device identifier for Qualcomm SMD

This patch assigns the next free HCI device identifier to Bluetooth
devices based on the Qualcomm Shared Memory channels.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
7 years agoMigrate the wifi driver from old smd driver to new smd driver.
Yin, Fengwei [Tue, 28 Jul 2015 07:21:54 +0000 (15:21 +0800)]
Migrate the wifi driver from old smd driver to new smd driver.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
Conflicts:
arch/arm64/boot/dts/qcom/msm8916.dtsi

7 years agoUpdate the initialization sequence to enable DB410c.
Yin, Fengwei [Sun, 13 Sep 2015 14:00:06 +0000 (22:00 +0800)]
Update the initialization sequence to enable DB410c.

The soc on DB410c board is not same as MTP8916. It doesn't support
48M operation frequency.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agoSet the dma mask for platform device which is not created from DT.
Yin, Fengwei [Thu, 23 Apr 2015 05:15:59 +0000 (13:15 +0800)]
Set the dma mask for platform device which is not created from DT.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agoGot workable wireless driver.
Yin, Fengwei [Fri, 17 Apr 2015 03:48:24 +0000 (11:48 +0800)]
Got workable wireless driver.

Signed-off-by: Yin, Fengwei <fengwei.yin@linaro.org>
7 years agowcn36xx: add later fw capabilities
Andy Green [Mon, 19 Jan 2015 04:33:42 +0000 (12:33 +0800)]
wcn36xx: add later fw capabilities

wcn3620 prima firmware exposes more capabilities than known about
in the mainline driver, they're reported as "unknown" at probe.

This adds the extra capabilities so they can at least be reported
correctly.

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agonet wireless wcn36xx adapt wcnss platform to select module by DT
Andy Green [Sat, 17 Jan 2015 03:20:49 +0000 (11:20 +0800)]
net wireless wcn36xx adapt wcnss platform to select module by DT

Simplify the resource handling and use DT to indicate which chip type
we are dealing with

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agonet wireless wcn36xx add wcnss platform code
Eugene Krasnikov [Sat, 17 Jan 2015 02:58:30 +0000 (10:58 +0800)]
net wireless wcn36xx add wcnss platform code

AG modified to remove regulator handling not needed on msm8916-qrd

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn3620: use new response format for wcn3620 remove_bsskey
Andy Green [Mon, 19 Jan 2015 04:44:30 +0000 (12:44 +0800)]
wcn3620: use new response format for wcn3620 remove_bsskey

On wcn3620, firmware response to remove_bsskey uses the new, larger
"v2" format

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn3620: use new response format for wcn3620 trigger_ba
Andy Green [Mon, 19 Jan 2015 04:52:37 +0000 (12:52 +0800)]
wcn3620: use new response format for wcn3620 trigger_ba

On wcn3620, firmware response to trigger_ba uses the new, larger
"v2" format

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn36xx: handle new hal response format
Andy Green [Mon, 12 Jan 2015 15:01:26 +0000 (23:01 +0800)]
wcn36xx: handle new hal response format

wcn3620 has a new message structure for the reply to some hal
commands.  This patch adds the struct and helper routine that
uses it if the chip is wcn3620, or falls back to the old
helper routine.

We don't know what to do with the candidate list he sends back,
but we can at least accept and ignore it nicely instead of dying.

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn36xx: remove powersaving for wcn3620
Andy Green [Mon, 12 Jan 2015 14:08:45 +0000 (22:08 +0800)]
wcn36xx: remove powersaving for wcn3620

WCN3620 powersaving mode is not stable.  Disable it if we're
on a wcn3620 chip type.

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn36xx: swallow two wcn3620 IND messages
Andy Green [Sat, 17 Jan 2015 03:11:40 +0000 (11:11 +0800)]
wcn36xx: swallow two wcn3620 IND messages

WCN3620 can asynchronously send two new kinds of indication message,
since we can't handle them just accept them quietly.

v2: used one break for both in the second stanza

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn36xx: introduce WCN36XX_HAL_AVOID_FREQ_RANGE_IND
Andy Green [Sat, 17 Jan 2015 03:07:02 +0000 (11:07 +0800)]
wcn36xx: introduce WCN36XX_HAL_AVOID_FREQ_RANGE_IND

WCN3620 firmware introduces a new async indication, we need to
add it as a known message type so we can accept it

Signed-off-by: Andy Green <andy.green@linaro.org>
7 years agowcn36xx: use 3680 dxe regs for 3620
Andy Green [Sat, 17 Jan 2015 03:02:00 +0000 (11:02 +0800)]
wcn36xx: use 3680 dxe regs for 3620

Between 3620, 3660 and 3680, only 3660 has a different dxe register

Signed-off-by: Andy Green <andy.green@linaro.org>