Commit graph

13416 commits

Author SHA1 Message Date
Songjun Wu
ab48ab614b ASoC: atmel-classd: fix audio clock rate
commit cd3ac9affc43b44f49d7af70d275f0bd426ba643 upstream.

Fix the audio clock rate according to the datasheet.

Reported-by: Dushara Jayasinghe <dushara@successful.com.au>
Signed-off-by: Songjun Wu <songjun.wu@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-08 09:53:31 +02:00
Bhalchandra Gajare
dadf00389e ASoC: wcd934x: force the wdsp clock to be ungated
The wcd934x codec DSP (WDSP) has clock gate that can be controlled by
driver or the hardware controller to ungate the clock to the WDSP. Due
to issues seen during back to back testing, it is found that the clock
is not properly ungated by the hardware controller and can cause hang
on the WDSP. Fix this issue by forcing the clock to be ungated from the
driver always.

CRs-fixed: 2024032
Change-Id: I668f2bb71e55474703997513dccacdc58a70a1d0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-04-06 23:59:27 -07:00
Laxminath Kasam
44a8756de9 ASoC: msm: Update proper clock frequency for slave mode
Clock framework in LPASS expects valid clock frequency
for slave mode (EBIT) as well. This is required to maintain
corresponding voltage as per respective frequencies by clock
team in frequency plan. Avoid sending zero clock frequency
in clock enable even though it is slave mode.

CRs-Fixed: 2028063
Change-Id: Ie9c28a921ee7bbeda67b0591f0caf0a88ea2d19c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-04-06 23:58:25 -07:00
Linux Build Service Account
acbfc1a1a4 Merge "ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink" into dev/msm-4.4-8996au 2017-04-06 21:48:14 -07:00
Honghao Liu
440b821a0f ASoC: msm: update TDM slot mapping and FE DAI array
Update TDM slot mapping and add hostless FE DAIs for customized
sound card on automotive platform.

CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 17:45:16 -04:00
Honghao Liu
449148abd8 ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.

CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:10:48 -07:00
Honghao Liu
f2c39e2b91 ASoC: msm: qdsp6v2: support TDM to AUX_PCM loopback for BT HFP uplink
Add route from QUAT_TDM_TX_0 to AUX_PCM_RX Port Mixer and route from
INTHFP_DL_HL to AUX_PCM_RX.

CRs-fixed: 2024590
Change-Id: I395808fe9937128f0391668132a4dffdb6c60f42
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:09:32 -07:00
Honghao Liu
3f148d954b ASoC: msm: update TDM slot mapping and FE DAI array
Update TDM slot mapping and add hostless FE DAI for customized
sound card on automotive platform.

CRs-fixed: 2024584
Change-Id: I08c2765972405e6dfbbcd6d2590109e119b92423
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-06 11:08:59 -07:00
Arun KS
e8a49b120c Merge remote-tracking branch 'remotes/origin/msm-4.4' into dev/msm-4.4-8996au
Conflicts:
	arch/arm/boot/dts/qcom/msm8996pro.dtsi
	arch/arm64/kernel/Makefile
	drivers/leds/leds-qpnp-flash.c
	sound/soc/msm/apq8096-auto.c

Change-Id: Idea5d05fec354b8f38ea70643decb03f7b80ddb7
Signed-off-by: Arun KS <arunks@codeaurora.org>
2017-04-06 15:45:04 +05:30
Rohit Kumar
927f88ec52 ASoC: msm: qdsp6v2: Add support for 7 channel mapping
Add support for 7 channel mapping in asm to support
7 channel playback.

CRs-Fixed: 1114041
Change-Id: I0daf306d4495d3966406d05fc6328b2956a2d11f
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-04-06 01:24:04 -07:00
Phani Kumar Uppalapati
974f3b69b4 Revert "ASoC: wcd9335: enable APC in Tx path"
This reverts 'commit 95939f7808e6 ("ASoC: wcd9335:
enable APC in Tx path")'
APC (Automatic Peak Control) causes volume difference
in the audio signal if two ADCs share the same mic
input.

CRs-Fixed: 2021320
Change-Id: I63d83fd3e511f40f4da82afb4993f360b4c9f058
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2017-04-05 11:55:51 -07:00
Meng Wang
e06bfb9b82 ASoC: wcd934x: add null check for soundwire control data
Soundwire control data is NULL if there is no soundwire slave
device enumerated.
Add null check to avoid panic.

Change-Id: Ief60d69c36c2a9831825f38da2c9a3f6dd5f13dc
CRs-Fixed: 2020293
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-04-05 04:14:29 -07:00
Linux Build Service Account
b742552ee2 Merge "ASoC: msm: qdsp6v2: Add support for 7 channel mapping" 2017-04-04 20:07:30 -07:00
Linux Build Service Account
fb11ce47de Merge "ASoC: msm: qdsp6v2: add route for TERT_TDM_RX_4 playback" 2017-04-04 20:07:21 -07:00
Karthikeyan Mani
53572b845a ASoC: codecs: Fix mbhc data NULL pointer dereferencing
Initialize completion structure in wcd_mbhc_initialize
and wcd_mbhc_init to handle irq handlers getting called
before the completion structure is initialized and ready
for use.

CRs-fixed: 2020227
Change-Id: Ibc7a5974adfe803c5b9892986165e2e1e3151fc7
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-04-04 17:48:05 -07:00
Honghao Liu
4183c07796 ASoC: msm: support up to 8 channel capture on MM1
Update Multimedia1 FE to support up to 8 channel audio capture.

CRs-fixed: 2028896
Change-Id: I838ecd690fcdeef411d35a5facbe9c40a76b68c3
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-04 15:04:45 -07:00
Honghao Liu
6b1ec98d8e ASoC: msm: support up to 8 channel capture on MM1
Update Multimedia1 FE to support up to 8 channel audio capture.

CRs-fixed: 2028896
Change-Id: I838ecd690fcdeef411d35a5facbe9c40a76b68c3
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-04 15:00:24 -07:00
Honghao Liu
8441629a01 ASoC: msm: add support for TERT_TDM_RX_4 BE
Add TERT_TDM_RX_4 BE DAI link into automotive sound card
DAI link array. Add kcontrols for channel and bit format
configuration for TERT_TDM_RX_4 BE.

CRs-fixed: 2018097
Change-Id: I1fef2f6a799aeeee0752f3ae2462dcd26a1d66c9
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-04-04 16:49:39 -04:00
Linux Build Service Account
835bd1f84a Merge "ASoC: msm: support 5 and 7 channel for TDM hw param" 2017-04-04 12:10:25 -07:00
Linux Build Service Account
025198c382 Merge "ASoC: msm: Fix mute on speaker in VoWLAN calls" 2017-04-04 12:10:23 -07:00
Rohit Kumar
e90af32a6f ASoC: msm: qdsp6v2: Add support for 7 channel mapping
Add support for 7 channel mapping in asm to support
7 channel playback.

CRs-Fixed: 1114041
Change-Id: I0daf306d4495d3966406d05fc6328b2956a2d11f
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-04-04 11:53:31 -07:00
Karthikeyan Mani
7882bb6e55 ASoC: msm: Update proper clock frequency for slave mode
Clock framework in LPASS expects valid clock frequency
for slave mode (EBIT) as well. This is required to maintain
corresponding voltage as per respective frequencies by clock
team in frequency plan. Avoid sending zero clock frequency
in clock enable even though it is slave mode.

Change-Id: If3d6ac4f1e7ce2032dbaa0e0475e8e1abd2692e8
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-04-04 10:40:42 -07:00
Linux Build Service Account
4c332132fc Merge "ASoC: mbhc: Modify special headset detection" 2017-04-04 03:08:17 -07:00
Linux Build Service Account
c5537150f9 Merge "ASoC: msm-lsm-client: cleanup ioctl functions" 2017-04-04 03:08:16 -07:00
Linux Build Service Account
4fbb03737f Merge "ASoC: wcd934x: Fix sequence for efuse sensing" 2017-04-04 03:08:15 -07:00
Linux Build Service Account
6210291d06 Merge "ASoC: codecs: Correct stream name, add dapm sync" 2017-03-31 21:24:15 -07:00
Walter Yang
4e26a02aab ASoC: mbhc: Modify special headset detection
Modify detection sequence to support the fast special headset
detection with more reliable plug type result.

Change-Id: I74df2c8c54e49a3888511843a15122ca708425ed
CRs-Fixed: 2022622
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-03-30 19:40:36 -07:00
Honghao Liu
a674e321fb ASoC: msm: add support for TERT_TDM_RX_4 BE
Add TERT_TDM_RX_4 BE DAI link into automotive sound card
DAI link array. Add kcontrols for channel and bit format
configuration for TERT_TDM_RX_4 BE.

CRs-fixed: 2018097
Change-Id: I1fef2f6a799aeeee0752f3ae2462dcd26a1d66c9
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-30 09:49:06 -07:00
Honghao Liu
69173e41aa ASoC: msm: defer the machine driver probing if ADSP is down
Update the machine driver probing function to check the ADSP state
at the beginning of the function and return -EPROBE_DEFER if the
ADSP state is down. This reduces the amount of time spent in each
deferred machine driver probing.

The machine driver depends on a set of other drivers which ultimately
depends on the ADSP state to be up. Currently the machine driver
detects that its dependent drivers not being ready at a late stage
of the probing.

CRs-fixed: 2001641
Change-Id: I8fdaa7261aecee48f1927acf1303a52e48753006
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-30 09:25:15 -07:00
Linux Build Service Account
971aa31600 Merge "ASoC: sdm660-cdc: Change val_bits to 8 from 32 in digital cdc regmap" 2017-03-30 07:20:17 -07:00
Arun Ks
1ff96f8075 Merge changes I933d5aa2,I887b33d2 into dev/msm-4.4-8996au
* changes:
  ASoC: msm: support 5 and 7 channel for TDM hw param
  ASoC: msm: add support for customized sound card
2017-03-30 02:27:27 -07:00
Honghao Liu
8c018dc7ef ASoC: msm: support 5 and 7 channel for TDM hw param
Add support for 5 and 7 channel for TDM hw param configuration.

CRs-fixed: 2021342
Change-Id: I933d5aa29c5c5578c884a3533772747db721fc0f
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:27:08 -07:00
Honghao Liu
bff1981f96 ASoC: msm: add support for customized sound card
Add support for customized sound card that uses customized
TDM slot mapping and DAI links for automotive platform.

CRs-fixed: 2020063
Change-Id: I887b33d23d2af8af61cf15b499d14afbc9544e37
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:26:44 -07:00
Honghao Liu
21808f11bb ASoC: msm: qdsp6v2: add route for TERT_TDM_RX_4 playback
Add route from Multimedia FE to TERT_TDM_RX_4 BE.

CRs-fixed: 2018097
Change-Id: I22de6c7059ae40956d82176edc130047bd2921f4
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-29 15:26:00 -07:00
Revathi Uddaraju
494fafb255 ASoC: msm-lsm-client: cleanup ioctl functions
Fix the issue where copy_from_user interface is not used properly.
Cleanup the ioctl function so that there is no illegal memory access.

Change-Id: Iffe2bbc0d33f365a852bb0974ee5c45ab724214b
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2017-03-27 21:17:09 -07:00
Sudheer Papothi
4fab686741 ASoC: wcd934x: Fix sequence for efuse sensing
Fix sequence for efuse sensing on WCD934x codec to avoid
codec register access failures.

CRs-Fixed: 2021132
Change-Id: I5da8c4c6b9f9822563b95c7a270fd11449456b29
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2017-03-24 10:43:37 -07:00
Xiaojun Sang
fe4622d7a7 ASoC: msm: add support for ADSP Stream Cmd and Callback
Add support for ADSP Stream Cmd and Callback for PCM
and compress driver. Mixer controls are added as interface
for ADSP stream cmd and callback event.

CRs-Fixed: 2023802
Change-Id: Ib2de5aebe257332171c3b1ebe3d26b3422d61c97
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-03-24 01:37:04 -07:00
Honghao Liu
55df1580aa ASoC: msm: support 5 and 7 channel for TDM hw param
Add support for 5 and 7 channel for TDM hw param configuration.

CRs-fixed: 2021342
Change-Id: I933d5aa29c5c5578c884a3533772747db721fc0f
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-23 11:13:12 -07:00
Honghao Liu
f7d9f43f02 ASoC: msm: add support for customized sound card
Add support for customized sound card that uses customized
TDM slot mapping and DAI links for automotive platform.

CRs-fixed: 2020063
Change-Id: I887b33d23d2af8af61cf15b499d14afbc9544e37
Signed-off-by: Honghao Liu <honghaol@codeaurora.org>
2017-03-23 11:12:46 -07:00
Linux Build Service Account
e0c1cae42e Merge "ASoC: msm_sdw: Avoid initial SSR notifications at bootup" 2017-03-23 09:44:38 -07:00
Linux Build Service Account
61249ef44b Merge "ASoC: wsa881x: Add mixer control to set WSA PA mute" 2017-03-23 09:44:37 -07:00
Linux Build Service Account
64b780b80c Merge "ASoC: sdm660_cdc: Fix 44.1 clip mute first time after boot" 2017-03-23 09:44:36 -07:00
Linux Build Service Account
f2e9e4fdd3 Merge "ASoC: sdm660_cdc: fix HPH CnP on sdm660 internal codec" 2017-03-23 09:44:35 -07:00
Linux Build Service Account
50c5bf4a56 Merge "ASoC: msm_sdw: Fix random mute on speaker when device switch" 2017-03-23 09:44:34 -07:00
Linux Build Service Account
d5d35b197a Merge "ASoC: msm_sdw: Fix compander register setting for speaker" 2017-03-23 09:44:33 -07:00
Linux Build Service Account
a646f0ad6f Merge "ASoC: wcd-mbhc: Fix list del entry issue on mbhc variable" 2017-03-23 09:44:32 -07:00
Linux Build Service Account
9b1eeebe92 Merge "ASoC: audio-ext-clk: correct pinctrl info for lpass mclk" 2017-03-23 09:44:31 -07:00
Linux Build Service Account
2edff433a4 Merge "ASoC: wcd-spi: pre-allocate buffers used for transfers" 2017-03-23 09:44:29 -07:00
Linux Build Service Account
3535fcdc1b Merge "ASoC: sdm660_cdc: Fix no headset remove event after SSR" 2017-03-23 09:44:29 -07:00
Linux Build Service Account
0776e27963 Merge "ASoc: msm: remove capture property for SLIMBUS_6 Hostless playback" 2017-03-23 09:44:27 -07:00