Commit graph

10212 commits

Author SHA1 Message Date
Yadav Anamika
7099faa8db Merge 79477f89b2 on remote branch.
Change-Id: I7815410b9662cb5a39f24cb041736591c6f52bfa
Signed-off-by: Yadav Anamika <anamik@codeaurora.org>
Conflicts:
	sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c
	sound/soc/msm/qdsp6v2/q6afe.c
2015-08-27 15:45:10 +05:30
Linux Build Service Account
8515982868 Merge "ASoC: qdsp6v2: Avoid sending afe cal for proxy ports" 2015-08-26 19:58:57 -07:00
Linux Build Service Account
e0316884c9 Merge "ASoC: msm8976: support multichannel playback over proxy port" 2015-08-26 19:58:55 -07:00
Avinash Vaish
a1efa8ead2 ASoC: qdsp6v2: Avoid sending afe cal for proxy ports
Multichannel playback over Wifi fails due to use of invalid
afe calibration at the time of opening proxy port. Since
there is no afe calibration content for proxy devices, afe
driver erringly sends afe cal tables of the previous device.
This happens because afe tables aren't updated from acdb
loader as proxy port opening is directly carried out from
WFD module.
Currently there is no mechanism to ensure compatibility
between afe ports and afe cal tables cached in the memory.
Therefore, disallow sending of afe cal table, topology and
hardware delay calibration for proxy ports to fix the above
issue through mixer controls.

CRs-Fixed: 880657
Change-Id: I4914bb1b2fca91d71c2c34904a0ca632468efd5a
Signed-off-by: Avinash Vaish <avaish@codeaurora.org>
2015-08-25 15:28:36 +05:30
Banajit Goswami
be58d4cf58 ASoC: msm: q6dspv2: add mixer control to avoid sending DSP calibration
For some use cases like Ultrasound, AFE calibration is not needed
to be sent to DSP. Add a mixer control to set a flag in AFE native
driver for that particular Slimbus port to help avoid sending AFE
calibration data to DSP for those specific use cases. AFE driver
would check for the flag before sending calibration data to DSP.

Change-Id: Idc254224a9b73995f363668e644b2c08f86817e9
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2015-08-25 15:24:03 +05:30
Laxminath Kasam
b06de83ebc ASoC: audio: fix audio drops issue in HPH for loud clips
For louder clips with max volume, observe audio drops.
This is seen due to COMP1_B4_CTL setting is not updated
correctly. As per 8952 power grid, buck voltage is 1.8v
and compander register setting is varied based on this.
Update the setting to 1.8v and also ensure the compander
register bit is reset in power down sequence so that
non-compander usecases like ANC are not affected due
to this setting.

CRs-Fixed: 890042
Change-Id: Ib2bd74877d559c7f473b1c7a8a64054fb1f476bc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2015-08-21 17:43:46 -07:00
Linux Build Service Account
fcbefe1f88 Merge "ARM: msm: dts: Support Cluster pm notification on MSM8952 & MSM8956." 2015-08-21 08:44:44 -07:00
Satya Krishna Pindiproli
55122f475d ASoC: msm8976: support multichannel playback over proxy port
Add kcontrol to allow configuration of the proxy port up to eight
channels. This is to support multichannel playback over proxy
port in 8976.

Change-Id: I5646bcbb7a594d8d42c8ef32c3309c40eddfadd4
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
2015-08-21 02:01:47 -07:00
Linux Build Service Account
da3d472498 Merge "ASoC: wcd: update sequence for impedance detection" 2015-08-20 06:20:36 -07:00
Linux Build Service Account
5379cba703 Merge "ASoC: wcd9335: wait for 500 msec for the regulator to stabilise" 2015-08-19 21:07:18 -07:00
Linux Build Service Account
a66de3a856 Merge "ASoC: msm: add HPHL and HPHR widgets to ignore suspend" 2015-08-19 21:07:17 -07:00
Linux Build Service Account
78bc6eaa99 Merge "ASoC: wcd9335: move regulator optimum calls to codec driver" 2015-08-19 21:07:16 -07:00
Linux Build Service Account
631b27b6a6 Merge "ASoC: msm: q6dspv2: add mixer control to avoid sending DSP calibration" 2015-08-19 21:07:08 -07:00
Linux Build Service Account
733c83231d Merge "ASoC: wsa881x: update register sequence for version 2.0" 2015-08-19 12:24:28 -07:00
Linux Build Service Account
81ed592cc4 Merge "ASoC: wsa881x: check for valid temperature register values" 2015-08-19 12:24:20 -07:00
Linux Build Service Account
b59fd5de7a Merge "ASoC: wsa881x: Update read only registers as volatile" 2015-08-19 12:24:08 -07:00
Linux Build Service Account
ad2908ab59 Merge "ASoC: wsa: add support for WSA 2.0 version and sequences" 2015-08-19 12:24:08 -07:00
Linux Build Service Account
0b2b032dad Merge "ASoC: wcd9xxx-mbhc: fix codec power leakage during suspend" 2015-08-19 12:24:02 -07:00
Yeleswarapu Nagaradhesh
15127495f7 ASoC: wcd9335: wait for 500 msec for the regulator to stabilise
During soft reboot, some times codec is going to bad state as
all the codec supplies are not going down. Due to which codec is not
responding to slimbus which is effecting soundcard registration.
After disabling the regulator wait for 500msec, to ensure regulators
ramp's down completely.

Change-Id: I21de85f9e7170906a877f9328f088a91d0f69ee8
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2015-08-19 10:54:01 -07:00
Simmi Pateriya
154e489545 ASoC: wcd: update sequence for impedance detection
Update register sequence for impedance detection to
work on cajon and for backward compatibility with
previous targets.

Change-Id: I86831be2c36532ce4ac8f8344587309d7ebfb1ac
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
2015-08-19 03:20:34 -07:00
Yeleswarapu Nagaradhesh
bdcd36c46c ASoC: msm: add HPHL and HPHR widgets to ignore suspend
Add HPHR and HPHL wigets to ignore suspend to avoid suspending
codec during apps shutdown

Change-Id: I8fa8ea8d972eea38518694fbe80411207eed9362
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2015-08-19 03:06:32 -07:00
Yeleswarapu Nagaradhesh
df029f9d8a ASoC: wcd9335: move regulator optimum calls to codec driver
There are few use cases where apps goes down to suspend
but codec should be in active state. Core driver will not
have knowledge of these usescases and hence move suspend and
resume hooks to codec driver.

Change-Id: If5614dd13f24a80d18f53f194c7be1c5b967a003
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2015-08-19 03:05:55 -07:00
Vidyakumar Athota
ca09f15cec ASoC: wsa881x: check for valid temperature register values
check for temperature register values and log the values if
they are out of range.

Change-Id: I58dd4e9b3348215510f61e790ed81bc9d4972768
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2015-08-18 21:45:35 +05:30
Sudheer Papothi
2d50fbbf38 ASoC: wsa881x: Update register cache while getting temperature
Temperature from wsa881x thermal zone sensor is not correct
when wsa881x codec is in suspend state. Bring codec out of
reset and update register cache to read proper temperature
value from thermal zone sensor.

Change-Id: I428ba35cbc10fd6c8ac80f6eb26f218466f44ebc
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2015-08-18 21:28:43 +05:30
Vidyakumar Athota
ddce1621ac ASoC: wsa881x: update register sequence for version 2.0
Playback startup and teardown register sequence is different
for WSA881X version 2.0. Update the right register sequence
based on version.

Change-Id: Ifa858ab1db6560a50779800d59492fc0b0ac9e56
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2015-08-18 21:22:39 +05:30
Vidyakumar Athota
728f6b87bb ASoC: wsa881x: update version based default register values
Currently wsa881x default register table is defined for version 1.1.
Some of the default register values are different for version 2.0.
This change is to update default register values based on version.

Change-Id: Ibfd3efd685786fc8d8a94ddb74175e5f6f9aa43e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2015-08-18 21:21:29 +05:30
Linux Build Service Account
08f66f3342 Merge "ASoC: msm: qdsp6v2: Fix uplink mute in voice call when Vbat is enabled" 2015-08-18 07:42:50 -07:00
Linux Build Service Account
b7502c79d6 Merge "ASoC: msm: Add external echo reference support for audio path" 2015-08-18 07:42:38 -07:00
Vidyakumar Athota
3cf6401add ASoC: wsa881x: Update read only registers as volatile
Some of the Bongo read only registers are not set as
volatile. Because of this, register values are read
incorrectly when the driver reads these registers. Fix
this issue by updating read only registers as volatile.

Change-Id: I5775b3e776beeef67874025454a0f232336cc777
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2015-08-18 07:39:05 -07:00
Laxminath Kasam
7d551e7707 ASoC: wsa: add support for WSA 2.0 version and sequences
For WSA 2.0 parts, add required support to identify chip
version using CHIP_ID_1 register. Add sequences for
WSA 2.0 for speaker playback and VI sense support
with QCRG 2_0_0_8.

Change-Id: If61d0d60944c6b51ac795a86d095b2b201da42ed
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2015-08-18 07:26:48 -07:00
Simmi Pateriya
fb6c9d6729 ASoC: msm8x16-wcd: send notifier to mbhc for pre PA off event
MBHC acquires a lock in PRE PA turn off event and releases it in
POST PA off event. The codec driver should send the notification
to mbhc for both these events.

Change-Id: I07278cec1d3b29e27deffea02ff30629f796bdd4
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
2015-08-18 05:32:11 -07:00
Laxminath Kasam
8fd8e2335c ASoC: wcd9xxx-mbhc: fix codec power leakage during suspend
During suspend in 8952 with wcd9330, observe high current leakage
from codec. As per designers, the register MICB_2_MBHC (0x133)
bit 2 (PWR_SWCH_OVRD_EN) is set from software resulting in
this issue, and this is not needed to be set.
Remove setting the register bit from driver, after this
observed the expected power numbers during suspend.

Change-Id: I72ed7b0c953b5bd2fd52065a49d796bf8294bff7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2015-08-18 00:40:44 -07:00
Linux Build Service Account
139176ea57 Merge "ASoC: wcd: report previous cable removal before lineout inseriton" 2015-08-18 00:02:12 -07:00
Banajit Goswami
61bbea7175 ASoC: msm: q6dspv2: add mixer control to avoid sending DSP calibration
For some use cases like Ultrasound, AFE calibration is not needed
to be sent to DSP. Add a mixer control to set a flag in AFE native
driver for that particular Slimbus port to help avoid sending AFE
calibration data to DSP for those specific use cases. AFE driver
would check for the flag before sending calibration data to DSP.

Change-Id: Idc254224a9b73995f363668e644b2c08f86817e9
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2015-08-17 22:50:08 -07:00
Venkata Narendra Kumar Gutta
a21d40efe0 ASoC: msm: qdsp6v2: Fix uplink mute in voice call when Vbat is enabled
Uplink mute observed in voice call when Vbat is enabled. This is due
to external echo reference port "SLIMBUS_1_TX" is not started, as it
is not connected to any of the voice front end DAI links. Fix this
issue by updating dapm route map b/w SLIMBUS_1_TX and voice front end
DAI links.

Change-Id: I02ffbb2565deed073909d49b3fb20548bc406daa
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2015-08-17 21:08:31 -07:00
Phani Kumar Uppalapati
3473bc3110 ASoC: msm: Add external echo reference support for audio path
If the audio mixing is done within codec, then echo reference
needs to be obtained from the mixed output in the codec.
Add support to get the external echo reference from SLIMBUS_1_TX
afe port.

Change-Id: I046172c02dc2eac5d1b8156abca3e4ca960d78f4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2015-08-17 02:44:11 -07:00
Linux Build Service Account
1b9619393e Merge "ASoC: wcd9335: Add support to enable vbat feature" 2015-08-15 04:13:32 -07:00
Linux Build Service Account
bcffa8b7cb Merge "ASoC: msm: qdsp6v2: Add SLIM_1_TX as external echo reference port" 2015-08-15 04:13:30 -07:00
Linux Build Service Account
6da2667b08 Merge "ASoC: msm: update slimbus_1 tx backend dai link to support vbat" 2015-08-15 04:13:29 -07:00
Linux Build Service Account
ba6e8ee94d Merge "ASoC: msm: add support for vi feedback on 8976 platform" 2015-08-15 04:13:22 -07:00
Venkata Narendra Kumar Gutta
1bdcfef657 ASoC: wcd9335: Add support to enable vbat feature
Add support to enable vbat monitor feature on tasha codec. Vbat module
monitors the battery voltage and updates the gain on rx path if battery
volatage falls below certain threshold value.
This module can prevent brownout scenarios on the mobile devices when
the loads are heavy on the battery and it can also prolongs battery life.

Change-Id: I66bacf3b861618fc44f50a8e22ca3f2f0fc7763b
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2015-08-14 06:25:40 -07:00
Venkata Narendra Kumar Gutta
e8fbc102e7 ASoC: msm: qdsp6v2: Add SLIM_1_TX as external echo reference port
Add support for SLIM_1_TX as external echo reference port for voice
session. This port is used as far end AFE port in echo cancellation
when Vbat monitor is enabled.

Change-Id: I0f6b17d227b210a0694440e481ba21794b84b58b
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2015-08-14 06:24:40 -07:00
Venkata Narendra Kumar Gutta
943d07fb4c ASoC: msm: update slimbus_1 tx backend dai link to support vbat
Update slimbus_1 tx dai link to use tasha_tx3 as the codec dai.
Slimbus_1 tx is used as backend dai link in echo cancellation
usecases, for vbat monitor feature on tasha. Also, added
support to configure slimbus_1 tx backend hw params.

Change-Id: I5b711b088a4bb3c1e58eb009977e8958b11ece0a
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2015-08-14 06:21:16 -07:00
Yeleswarapu Nagaradhesh
a12b2ccdde ASoC: wcd: report previous cable removal before lineout inseriton
During fast insertion and removal of headphone, sometimes cable can be
re-reported as lineout. In this case report removal of existing cable
and then insertion of lineout otherwise SW misses removal of a cable.

Change-Id: I5f20cbe5be29cffa2fd7a19676873e4b7f5b3bee
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2015-08-14 02:17:12 -07:00
Linux Build Service Account
9747a83d6e Merge "ASoC: wcd9335: send SSR notification to soundwire" 2015-08-14 01:27:56 -07:00
Linux Build Service Account
4c7713f675 Merge "ASoC: msm8952-slimbus: add support for ADSP SSR with tasha codec" 2015-08-14 01:27:55 -07:00
Linux Build Service Account
40c6f30689 Merge "ASoC: msm-cpe-lsm: Add support for SVA device switch" 2015-08-14 01:27:51 -07:00
Linux Build Service Account
9e1a59c0b7 Merge "ASoC: qdsp6v2: Add support for SVA device switch" 2015-08-14 01:27:51 -07:00
Linux Build Service Account
bae9546eb0 Merge "ASoC: msm: remove hdmi fai from common be dais" 2015-08-14 01:27:41 -07:00
Xiaojun Sang
d6227bd53e ASoC: msm: add support for vi feedback on 8976 platform
add tasha_vifeedback dai definition.
fixup msm_vi_feed_tx_ch config for tasha.
add dynamic configuration by codec name check.

Change-Id: Iffdbb35bbe7f6df3e4550792a9f84c9c5073479a
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2015-08-12 22:48:19 -07:00