提交線圖

772 次程式碼提交

作者 SHA1 備註 日期
Laxminath Kasam
9e78ef8743 asoc: codecs: restore wsa analog driver files
Add support back for wsa analog codec driver files.

Change-Id: I7ef6ad050b068ec8c0f0275089d670c92234686d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-10-09 14:57:18 +05:30
qctecmdr
3c19b49560 Merge "asoc: codecs: bolero: Update mixing path and channel mask for RX path" 2019-09-30 23:31:40 -07:00
Karthikeyan Mani
7af16b8364 asoc: codecs: wcd938x: check for device up before writes
During SSR, codec device will be down and wait till
receiving up notification before doing any register
reads or writes.

Change-Id: I0e2967990bfc9d0d780d4c7e666a4c31159e70ce
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-24 14:45:00 -07:00
qctecmdr
63a3452c9c Merge "ASoC: wcd938x: Update wcd938x initialization sequence" 2019-09-23 22:59:02 -07:00
qctecmdr
7347f53ca7 Merge "asoc: codec: bolero: keep internal track of TX votes" 2019-09-23 22:56:48 -07:00
qctecmdr
9d0f53cc20 Merge "asoc: codecs: Fix pop issue on WSA cold start" 2019-09-21 22:13:09 -07:00
qctecmdr
212f9e9be2 Merge "ASoC: tx-macro: Disable wakeup source for soundwire tx data gpio" 2019-09-21 22:09:40 -07:00
qctecmdr
7c8393fd01 Merge "asoc: codecs: wsa881x: turn off PA at ssr" 2019-09-21 22:07:38 -07:00
Karthikeyan Mani
0eef9ab635 asoc: codec: bolero: keep internal track of TX votes
TX clock is needed for setting up or tearing down
VA path. while voting and unvoting for TX clock,
keep track of the votes to unvote only if it was
voted from VA widgets.

Change-Id: Ia013517ed8d932ed3a5242bb7d052c1ee314fdbe
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-20 13:12:40 -07:00
qctecmdr
3336074e53 Merge "ASoC: wcd938x: Add debug support for WCD938x soundwire slave" 2019-09-20 00:37:48 -07:00
qctecmdr
dc92f04266 Merge "ASoC: bolero: Fix audio mute during first 4-5 seconds in headset record" 2019-09-20 00:35:48 -07:00
qctecmdr
a134afc4f5 Merge "asoc: hdmi: return 0 when get_audio_edid_blk is NULL" 2019-09-20 00:32:35 -07:00
qctecmdr
96957b41b9 Merge "ASoC: bolero: Update init registers for tx and rx paths" 2019-09-20 00:29:19 -07:00
qctecmdr
59139d3262 Merge "ASoC: wcd-mbhc: Remove max impedance limit for lineout detection" 2019-09-20 00:26:15 -07:00
qctecmdr
c73a9db04a Merge "asoc: cdc-pinctrl: Update to disable MPM wakeup for multiple gpios" 2019-09-20 00:19:52 -07:00
Sudheer Papothi
92bf3feadb ASoC: wcd938x: Update wcd938x initialization sequence
Update wcd938x codec initialization sequence as per hardware
requirement.

Change-Id: I17989e3f159d106eb9de6b1b8f660a647962539c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-20 00:47:15 +05:30
Laxminath Kasam
069df14aa0 asoc: codecs: Fix pop issue on WSA cold start
Observe pop if FS clock is turned on at end of
powerup sequence. Ensure WSA PA is turned on
after FS clock to avoid pop.

Change-Id: Ic1214d361e77db252b7a90a89fc99c69f51e270b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 11:37:00 +05:30
Karthikeyan Mani
13485b7fe1 asoc: codecs: wsa881x: turn off PA at ssr
Register for a callback for ssr notification
and turn off PA at pre-ssr to protect speaker
from any turning off damage during ssr.

Change-Id: I286d9bdcbcba9561424a8f0d4a1e99a8492caf08
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-18 22:42:52 -07:00
qctecmdr
33de327759 Merge "asoc: codecs: wcd937x: Fix compile error" 2019-09-18 04:54:28 -07:00
qctecmdr
ae58e9ee01 Merge "asoc: codecs: wcd938x: Enable EAR over INT2 chain" 2019-09-18 04:01:17 -07:00
Vatsal Bucha
126be65693 ASoC: bolero: Fix audio mute during first 4-5 seconds in headset record
Audio mute is observed if record is started as soon as headset
is inserted. This is because hold time after button release is set
as 800ms causing the delay. Change hold time to 200ms to fix this issue.

Change-Id: I98028fca3412a3d47ad8e5154f25ff1726426955
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-17 14:15:48 +05:30
qctecmdr
fe82be14e0 Merge "ASoC: wcd938x: Update soundwire slave clock rate on WCD938x" 2019-09-17 00:58:09 -07:00
qctecmdr
b42b242127 Merge "ASoC: Add support for event listener from the codec" 2019-09-17 00:55:50 -07:00
Sudheer Papothi
edc65200d0 ASoC: wcd938x: Add debug support for WCD938x soundwire slave
Add debug support for WCD938x soundwire slave register access.

Change-Id: I5984a04cf144e7e858addc5cd060e0ec1264f2a6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-17 09:05:01 +05:30
Sudheer Papothi
bc3f1e5ac7 ASoC: tx-macro: Disable wakeup source for soundwire tx data gpio
soundwire tx data gpio is wakeup source capable. Disable the
interrupt capable during voice activation usecase to let the
device enter into power collapse during voice activation usecase
on headset.

Change-Id: I64a0b5da249dd3da37310fb80909a0ac5fefae54
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-17 04:03:10 +05:30
Laxminath Kasam
2f151367ce asoc: codecs: wcd937x: Fix compile error
Use proper dev handle in print to avoid compile error.

Change-Id: Ieca116199ec4c86f2ee8c1698285fff0ecababbf
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 17:57:03 +05:30
Laxminath Kasam
c39ed80b7c asoc: cdc-pinctrl: Update to disable MPM wakeup for multiple gpios
Under same pinctrl node, there are multiple gpios that
require MPM wakeup to be disabled. Update driver logic
to support disable of multiple gpios under same node.

Change-Id: I3a07e5d7621da4cd03b46d96ca5cec18958f1ebd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-16 13:09:03 +05:30
qctecmdr
6f23c4ef53 Merge "asoc: codecs: Add core vote functionality for soundwire" 2019-09-14 20:57:13 -07:00
Sudheer Papothi
72fef48d6b ASoC: bolero: Update init registers for tx and rx paths
Update init registers for tx and rx paths in an array.

Change-Id: I2738af7639ffec05b5c93e86a2a3f4cf7ccb36fe
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-15 00:13:35 +05:30
Sudheer Papothi
504064bad0 ASoC: wcd938x: Update soundwire slave clock rate on WCD938x
Update soundwire slave clock rate based on power mode on
WCD938x codec for better power numbers.

Change-Id: I6719d7eab7562bf4fe45b3e11fbae6e0a629f9b1
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-13 16:19:33 -07:00
qctecmdr
43c43f0605 Merge "asoc: codecs: wcd937x: Update amic4 over adc3 recording" 2019-09-12 03:59:56 -07:00
Karthikeyan Mani
8d40a06347 asoc: codecs: Add core vote functionality for soundwire
Add callback to vote for core votes that the
soundwire master can use while doing a clock request.
Check for pinctrl function errors and in case of any
failures return from clock enable with an error.

Change-Id: Ic5c200d7179a1e3a9695955d8711358cd7618bd1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-11 11:20:27 -07:00
qctecmdr
ee29c8d3d7 Merge "asoc: codecs: bolero: Fix L/R swap issue on bolero RX" 2019-09-11 08:47:35 -07:00
Vatsal Bucha
cd339694c5 ASoC: wcd-mbhc: Remove max impedance limit for lineout detection
Max limit of 60k ohms was set for cable to be detected as lineout
to fix headset detected as lineout issue on legacy targets.
This was because of large impedance detected for headset.
This is not applicable for adc based targets as headset is
detected based on mic adc voltage. Remove max impedance limit for
lineout detection.

Change-Id: If73bbe2cd78d04d1fcb359a3e5ed5cd69f3ab9f0
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-11 00:11:55 -07:00
Laxminath Kasam
f8adb5f3c3 asoc: codecs: bolero: Update mixing path and channel mask for RX path
RX_CDC_DMA_RX0/1/2/3 ports  drives RX0/RX1, RX2/RX3, RX4 and RX5
channels on bolero rx-macro. Update channel mask
as per these mapping and return to channel map
accordingly.

Change-Id: I2e66e601b5137ebc513527827332bbb7cde0acb3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-09 10:47:49 +05:30
qctecmdr
ca34d4602c Merge "ASoC: wcd938x: Update mibias configuration on WCD938x" 2019-09-06 11:04:49 -07:00
qctecmdr
203c6c4eb4 Merge "ASoC: codecs: Use resource managed function calls during irq exit" 2019-09-06 10:59:54 -07:00
qctecmdr
04a0e0e298 Merge "asoc: codec: bolero: add adc mode control" 2019-09-06 10:57:56 -07:00
Laxminath Kasam
8ebb07308a asoc: codecs: wcd938x: Enable EAR over INT2 chain
INT2 chain drives AUX output to WCD.
EAR DAC on WCD can take input from HPHL/AUX chains.
Add register sequence updates to support EAR DAC
over AUX chain path also based on mixer setting.

Change-Id: I71db6c02f4579e3beba2816c1cfa5a492d91d702
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-06 14:59:46 +05:30
qctecmdr
9c7228e99b Merge "asoc: codecs: Add ep92 pre-emphasis status" 2019-09-04 03:42:06 -07:00
qctecmdr
9197a2e94a Merge "asoc: codecs: No I2C activity when EP92 is inactive" 2019-09-04 03:35:11 -07:00
qctecmdr
96ea26f502 Merge "asoc: codecs: bolero: load hph filter coefficients" 2019-09-04 03:16:16 -07:00
Meng Wang
b5cf458326 asoc: hdmi: return 0 when get_audio_edid_blk is NULL
when get_audio_edid_blk is NULL, msm_ext_disp_edid_ctl_info
returns error value. And it would cause tinymix doesn't have
full mix cmd list. Return 0 instead to avoid such issue.

Change-Id: Ic13067483b373fa4a81b663ece3d3e4a18ea8a87
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-09-04 09:22:07 +08:00
Laxminath Kasam
52ae6581d7 asoc: codecs: bolero: Fix L/R swap issue on bolero RX
Left and right channel content can get swapped
in new cdc_dma interface.

DMA interfaces underrun results in Channels being swapped.

This issue is a side effect current SW setup for RX path:
  1.  HLOS Setup WCD Analog Path, Bolero CODEC.
      CODEC would drive Fs to LPASS DMAs requesting for PCM samples.
  2.  DSP setup RX Buffers in Memory :
  3.  DSP Configures RD DMAs and DMA RXTX CODEC interface
      (Enable CODEC DMA interface buffer and
       Enable DMA LPASS_RXTX_LPAIF_RDDMA_CTL0.ENABLE
       and LPASS_RXTX_LPAIF_RDDMA_CODEC_INTF0.ENABLE
    If CODEC Fs, aligns with DMA interface being enabled
    there is an underrun as DMA interface pingpong buffer is empty.
    This results in channels being swapped.

Proposed work around while keeping current SW setup order.
Provide a workaround to Keep Fs disabled  until DMAs and
CODEC DMA interface are enabled and HW could  prefetch all buffers.
SW would keep existing setup order:
  1.  HLOS Setup WCD Analog Path, Bolero CODEC.
      CODEC would drive Fs to LPASS DMAs requesting for PCM samples.
  2.  DSP setup RX Buffers in Memory :
  3.  DSP Configures DMAs and DMA CODEC interface
      (Enable CODEC DMA interface buffer and
       Enable DMA LPASS_RXTX_LPAIF_RDDMA_CTL0.ENABLE
       and LPASS_RXTX_LPAIF_RDDMA_CODEC_INTF0.ENABLE)
  4.  Enable Fs Set #LPASS_RX_CDC_RX0_RX_PATH_CTL. CLK_EN to ONE

Change-Id: I7916667f5d857464cc7d77b51da307ab234cc7bb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-08-28 19:08:02 +05:30
Ralf Herz
05441f6789 asoc: codecs: Add ep92 pre-emphasis status
Provide pre-emphasis status in sysfs node that was received in
channel status bits.

Change-Id: Ice6f69806c993e2235b5ecb89dfc4028c03e02b8
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-08-28 10:01:30 +02:00
Ralf Herz
cf16dedb1f asoc: codecs: No I2C activity when EP92 is inactive
Only trigger periodic I2C telegrams when EP92 is in logical power on state.
Rely on EP92 interrupt to notice state change when in power off state.
Fix arc_enable write operation.

Change-Id: Id36f90379280ca5c60984e2ed507844418a612d7
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-08-28 09:59:17 +02:00
Sudheer Papothi
594cedb3dd ASoC: codecs: Use resource managed function calls during irq exit
wcd_init_irq uses resource managed irq addition. Similarly,
use resource managed irq deletion in wcd_irq_exit.

Change-Id: I67c702c1d2fbec0c7fd496672fae03a82cb63048
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-08-26 23:12:45 +05:30
qctecmdr
e275ee034a Merge "ASoC: wcd938x: add support to retrieve codec variant" 2019-08-25 03:20:21 -07:00
qctecmdr
474e2a0b08 Merge "asoc: codecs: wcd934x: Add NULL checks for mbhc" 2019-08-25 03:19:13 -07:00
qctecmdr
efdfdf2782 Merge "ASoC: bolero: check for port validation before configuration" 2019-08-25 03:14:53 -07:00