Commit graph

24076 commits

Author SHA1 Message Date
Linux Build Service Account
1b95c57dc7 Merge "ASoC: msmcobalt: add support for MI2S and AUX PCM" 2016-09-24 02:00:40 -07:00
Linux Build Service Account
5487004966 Merge "ASoC: wsa881x: Update device state during device probe" 2016-09-24 02:00:39 -07:00
Kuirong Wang
6ec8311450 ASoC: msmcobalt: add support for MI2S and AUX PCM
Add support for audio over MI2S and AUX PCM interfaces
so that applications have flexibility to select MI2S/AUX
PCM interfaces in addition to Slimbus.

CRs-Fixed: 1047362 1047365
Change-Id: I48e6680b026391d8e77bbdcba4fb59ed90b13581
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-23 16:41:41 -07:00
Sudheer Papothi
85a1f2a812 ASoC: wsa881x: Update device state during device probe
Device state is updated incorrectly during codec probe when
the wsa881x soundwire slave device is in suspend state, resulting
in register read/write failures. Update the device state during
device probe instead of codec probe.

Change-Id: I46afe2a08495c2ed06806b0568b1c44a6ffd947f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-09-23 11:11:25 -07:00
Kuirong Wang
e079354544 ASoC: msm: add tertiary and quaternary audio PCM support
Add support for tertiary and quaternary audio PCM interface
to msm platform.

Change-Id: I985200bbff55583ac09bf7444ecbc5cf6ab7eb41
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-21 17:29:16 -07:00
Kuirong Wang
b105c4f9de ASoC: msm: update to align afe memory mapping as multiple of 4KB
It is required the buffer size to ADSP are multiple of 4kB. Update
the buffer size to be 4kB alignment before passing to ADSP.

CRs-Fixed: 1040066

Change-Id: I34f1b611000f5d9e4ae4c13a89b8571faa0f3393
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-21 10:13:21 -07:00
Linux Build Service Account
4b91c1a0f7 Merge "ASoC: wcd9335: reduce speaker teardown latency" 2016-09-19 23:28:23 -07:00
Linux Build Service Account
8935f4d83f Merge "ASoC: msm: qdsp6v2: fix crash during flac superset clip playback" 2016-09-19 23:27:54 -07:00
Linux Build Service Account
a146b61be9 Merge "ASoC: wcd9335: Add ANC support on speaker path" 2016-09-16 09:22:04 -07:00
Linux Build Service Account
6635751452 Merge "ASoC: wcd934x: update TX modes" 2016-09-16 09:22:01 -07:00
Linux Build Service Account
eb79baaa6b Merge "ASoC: wcd934x: add handset speaker gain mixer control" 2016-09-16 09:22:01 -07:00
Linux Build Service Account
504c6dd5d1 Merge "drivers: mfd: set IIR and ANC registers as volatile" 2016-09-16 09:22:00 -07:00
Linux Build Service Account
6c104f8d40 Merge "ASoC: audio-ext-clk: avoid multiple initialization of pinctrl_info" 2016-09-15 22:51:56 -07:00
Linux Build Service Account
a97736505b Merge "ASoc: wcd934x: correct High-Z mode for dmic pins" 2016-09-15 22:51:55 -07:00
Linux Build Service Account
cd31b17afd Merge "ASoC: wcd_cpe_core: add arch_setup_dma_ops call" 2016-09-15 22:51:53 -07:00
Linux Build Service Account
5025a44c78 Merge "ASoc: wcd9335: correct native playback widget on msmcobalt" 2016-09-15 22:51:52 -07:00
Linux Build Service Account
27332002f8 Merge "sound: usb: Send explicit device disconnect to clients" 2016-09-15 22:51:48 -07:00
Sudheer Papothi
865796aea8 ASoC: wcd9335: Add ANC support on speaker path
On msmcobalt reference platform, earpiece path is not connected
to receiver, instead speaker path is used as receiver. So handset
AANC(Adaptive Active Noise cancellation) needs to be supported
on speaker path. Change enables ANC support on speaker path.

Change-Id: I8104994adc30810085cce73662f5abd5e15106ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:20:30 -07:00
Vidyakumar Athota
fd2b9f1daf ASoC: wcd934x: add handset speaker gain mixer control
In msmcobalt platform, speaker path is used for handset mode also.
Add the mixer control to change gain in handset mode.

Change-Id: Ia291f7449cd04a855102a03324f7cdcb6f13dad0
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 22:09:15 -07:00
Meng Wang
35b034ff27 ASoC: audio-ext-clk: avoid multiple initialization of pinctrl_info
Dynamic detection between wcd9335 and wcd934x codecs is supported on
msmcobalt. Probe sequence of the two codec drivers can occur in any
order. MCLK initialization is common for the two codecs which gets
called twice. Avoid wcd934x codec's probe sequence from resetting
wcd9335 codec's native mclk pinctrl if the pinctrl is already
initialized.

CRs-Fixed: 1066167
Change-Id: Idf65e15e08bb856d65b992b996cffa6ef2e6f974
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-15 20:49:30 -07:00
Meng Wang
26b1f0d337 ASoc: wcd934x: correct High-Z mode for dmic pins
Update the DMIC CLK and DATA registers to use the correct
settings required for DMIC High-Z on wcd934x. Registers
should be set to 0x6 for Slimbus mode and 0xD for I2C mode.

CRs-Fixed: 1059712
Change-Id: Ibe8ca2e40ee56708e8c84c174d12ce5841e6b1ce
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-15 18:22:11 -07:00
Vidyakumar Athota
37e939f466 ASoC: wcd934x: add adaptive ANC support
WCD934X codec supports adaptive ANC(Active noise cancellation)
on ear and speaker path. Add the required changes to support
this feature.

Change-Id: I2a069fc208b080c1251f7aa473ae75ad02e883c8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-15 14:04:13 -07:00
Yeleswarapu Nagaradhesh
d2fa003e12 ASoC: wcd934x: update TX modes
Update codec TX modes for Analog microphone.

CRs-Fixed: 1066331
Change-Id: I19d38a63805e69d53ebd6fda48b094315133a6aa
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:52 -07:00
Yeleswarapu Nagaradhesh
ea965ee6e8 ASoC: wcd934x: add support for HPH modes
Headphones support classH and classAB. Add support for
hifi, lowhifi, low power and ultra low power modes for classH.
Support hifi and lowhifi power modes for classAB.

CRs-Fixed: 1066331
Change-Id: I846f9704a5bf800583682f8dc2ec385a0ec64c61
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:24 -07:00
Yeleswarapu Nagaradhesh
971aeb6add ASoC: wcd: modify tasha version check macros
TASHA_IS_1_1 macro checks only for version number.
This macro returns true for tavil codec. So modify
tasha macros to check for codec and version.

CRs-Fixed: 1066331
Change-Id: I5240e0ee888187a8185974ea288ce2cad62bd776
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-09-15 09:10:08 -07:00
Linux Build Service Account
5c84417703 Merge "ASoC: msm: Create the codec entry for wcd934x codec" 2016-09-15 07:33:09 -07:00
Linux Build Service Account
ab41a65b08 Merge "ASoC: msm: qdsp6v2: Enable support for multichannel tunnel USB" 2016-09-15 07:33:08 -07:00
Linux Build Service Account
444860e890 Merge "ASoC: wcd934x: Add API to enable standalone micbias" 2016-09-15 07:33:07 -07:00
Laxminath Kasam
e99fdc1340 ASoC: wcd9335: reduce speaker teardown latency
In tasha codec, speaker teardown latency is high.
Acquire clock gear for complete teardown sequence
to improve latency.

CRs-Fixed: 1065561
Change-Id: I7db756e363cb66d22eb5d516e6e512e89e26e6a3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-09-15 13:17:25 +05:30
Meng Wang
825b295840 ASoc: wcd9335: correct native playback widget on msmcobalt
On msm-4.4, conditional paths are not supported for
supply widgets. Using SND_SOC_DAPM_MUX instead of
using Switches to connect to the native supply.

CRs-Fixed: 1066167
Change-Id: If015dbad0e168e41f1c8c86b502d4cf5fb592045
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-14 14:17:15 +08:00
Phani Kumar Uppalapati
d8e6734002 ASoC: wcd934x: Add support for HPH idle detection
WCD934X audio codec supports idle detection over headphone
path to reduce power consumption when the audio signal
level is low. Add support to enable headphone idle detection
in the wcd934x codec driver.

CRs-fixed: 1066588
Change-Id: I8d67fa4055898db31b47f87b6659484aeb08f58f
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-13 20:16:55 -07:00
Vamsi Krishna Samavedam
b73866cdb1 sound: usb: Send explicit device disconnect to clients
Explicitly send device disconnect notification to client
so that client can disable audio streams. This will in turn
enable sound usb driver to release usb device and notify device
removal to user-space. User-space will clean up audio session.
Without this change sound usb driver is blocking usb device
release till audio streams are disabled. However, audio streams
are only disabled when user-space cleans up audio session on usb
device removal which is blocked. This change is trying to fix
this deadlock condition by notifying device disconnect to clients
explicitly.

Change-Id: I7e5a8aca84a7a620bb61eb0ace8a6b6c622f89de
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2016-09-13 19:30:41 -07:00
Walter Yang
cc0ec8435f ASoC: msm: Create the codec entry for wcd934x codec
Create codec entry for wcd934x codec so that userspace can retrieve
the codec info.

CRs-Fixed: 1063367
Change-Id: Ie846b5edf1d8aaecce5140986dad8da69d608d5a
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-14 08:24:07 +08:00
Walter Yang
24bf042aef ASoC: wcd934x: Add codec version check for wcd934x
As there are many hardware version of wcd934x codec. Add version
check in the code so that userspace can get the version info.

CRs-Fixed: 1063367
Change-Id: Ia320380d568426c2d7a414a832980a556ff27f0f
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-14 08:11:38 +08:00
Linux Build Service Account
643a59d98b Merge "ASoC: wcd9335: Fix kctl_put and get functionality for SLIM RXX MUX" 2016-09-12 21:29:45 -07:00
Linux Build Service Account
e8afdbad3e Merge "ASoC: msm: Add Buffer overflow check" 2016-09-12 14:42:27 -07:00
Linux Build Service Account
bc7a35be18 Merge "ASoc: msm: qdsp6v2: Fix timestamp glitch during gapless transition" 2016-09-12 05:16:03 -07:00
Linux Build Service Account
9ac6506762 Merge "ASoC: msm: qdsp6v2: Fix excessive logging from VOIP driver" 2016-09-11 09:04:06 -07:00
Karthik Reddy Katta
287879c3be ASoC: msm: Add Buffer overflow check
The overflow check is required to ensure that user space data
in kernel may not go beyond buffer boundary.

CRs-Fixed: 1064411
Change-Id: I54c28a8942cf1a6a47a4e8272f3159b35d753ead
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
2016-09-10 04:49:15 -07:00
Bhalchandra Gajare
fe66f73cea ASoC: wcd_cpe_core: add arch_setup_dma_ops call
Change adds call to arch_setup_dma_ops to make sure the dma ops
are initialized before dma allocations are done.

CRs-fixed: 1065339
Change-Id: I5658598032f151c9293b3c4f6cf2311df8d3a634
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-09-09 16:52:02 -07:00
Linux Build Service Account
981a0eae00 Merge "ASoC: qdsp6v2: Add proper dependency for audio driver" 2016-09-09 01:26:10 -07:00
Linux Build Service Account
492410cee8 Merge "ASoC: utils: initialize dummy_codec before use" 2016-09-09 01:26:05 -07:00
Linux Build Service Account
86e077003f Merge "ASoC: msm: qdsp6v2: check if buf is null before using it" 2016-09-09 01:26:04 -07:00
Linux Build Service Account
e7affe2968 Merge "ASoC: wcd9xxx: check impedance index before use" 2016-09-09 01:26:04 -07:00
Linux Build Service Account
c175473643 Merge "ALSA: timer: check if timer->card is null before using it" 2016-09-09 01:26:03 -07:00
Linux Build Service Account
340cc56cc2 Merge "ALSA: timer: Fix leak in events via snd_timer_user_ccallback" 2016-09-08 20:01:39 -07:00
Linux Build Service Account
3de15cf06e Merge "ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS" 2016-09-08 20:01:38 -07:00
Linux Build Service Account
3e426b170d Merge "ASoC: wcd934x: Use minimum phase for RX interpolation filter" 2016-09-08 20:01:33 -07:00
Linux Build Service Account
f51db1aa4a Merge "ASoC: msm: qdsp6v2: check if index is out of range before use" 2016-09-08 20:01:32 -07:00
Linux Build Service Account
31a28f0268 Merge "ARM: dts: msm: enable audio over Display Port on msmcobalt" 2016-09-08 20:01:23 -07:00