Commit Graph
3141 Commits
Author SHA1 Message Date
Vatsal Bucha edbd2b5086 ASoC: wcd937x: Update register value for new fab id for tanggu
Update register value for new fab id for tanggu.

Change-Id: I13594dbd311bbeab115753e0bec1a748158f8100
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-23 19:17:58 +05:30
qctecmdr 5cfdc3799d Merge "ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled" 2021-09-22 22:15:57 -07:00
Linux Build Service Account aca15b39ac Merge f91caf5f58 on remote branch
Change-Id: I1d79d05f69b53ca47f0179e77f62b624a312c236
2021-09-05 23:21:38 -07:00
Vatsal Bucha 774957f968 dsp:q6afe: Resolve crash in q6afe_get_avcs_modules
Crash is happening in q6afe_get_avcs_modules in
APTX-Adaptive case. Check for format_id as
aptx_adaptive or lc3 to resolve crash.

Change-Id: I3e47bf38010a20df746455e35e316fa2103bc04a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-03 12:53:34 +05:30
Vatsal Bucha cf02882f86 ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled
Depending on efuse reg value, if fab id is enabled,
change resistor divider output to P12 for both hphl and hphr.

Change-Id: If5e0caac2648f6e0b8c089bb56883a442b5a8ecd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-01 20:19:58 -07:00
Linux Build Service Account 938f14813e Merge ba00f99c41 on remote branch
Change-Id: I349bcf7272050374b32e6dbaf6e93ba496329cfe
2021-08-23 01:54:28 -07:00
Ramu Gottipati f91caf5f58 dsp: adm: add to check output/input channel value
To avoid out of bound value of output/input
channel add the check.

Change-Id: I25b7616d6fc08c2d0bb530dfb1457471dc25861c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2021-08-12 04:15:43 -07:00
qctecmdr ba00f99c41 Merge "asoc: wcd-cpe: Set the dma_mask for cpe_device" 2021-08-08 23:12:19 -07:00
Kunlei Zhang e6bdb3bfd6 asoc: Parse wcd-datalane-mismatch property to update rx frame config for khaje
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.

Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-08-04 03:53:36 -07:00
qctecmdr e76714cb32 Merge "ASoC: msm8952: Defer until pcm voice probe done" 2021-08-02 23:23:49 -07:00
qctecmdr d0f1d9b84f Merge "q6afe: Fix out of bound access of clkinfo_per_port" 2021-08-02 23:23:49 -07:00
Shashi Kant Maurya 4314a0f156 asoc: wcd-cpe: Set the dma_mask for cpe_device
Memory allocation for wcd-cpe ramdump fails as memory is
not allocated from CMA reserve leading to CPE configuration
failure.
So force driver to allocate memory from CMA by
initializing the device’s coherent_dma_mask and dma_mask.

Fixes the SVA CPE sound model loading issue on tashalite variants.

Change-Id: Ic47017009aee666e364c7ec3ac62725c77a36b3c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-08-02 14:13:15 +05:30
Linux Build Service Account 96d83ec1c9 Merge ffe853a885 on remote branch
Change-Id: Ifde3e9fa15c2ef69ad1b205e9f16c3763fe10cd1
2021-08-01 21:33:50 -07:00
Kunlei Zhang f22c602a31 asoc: Parse wcd-datalane-mismatch property to update rx frame config for khaje
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.

Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-07-30 19:10:53 +08:00
Subhadra Jagadeesan 17074ec9bc ASoC: msm8952: Defer until pcm voice probe done
Random issue of delayed voice component probe is observed
sometimes happening after sound card registration. This causes
voice component driver probe not getting called during card registration and
results in voice mixer controls like CVD_Version missed out from sound mixer controls.
This results in crash in audio HAL acdb initialization flow.

Fix is to check for voice pcm probe status in machine driver and
defer until done.

Change-Id: Ib4e380da90d3dd66f054b46227e9fb79648b7524
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-28 16:50:40 +05:30
Soumya Managoli 96167aa481 q6afe: Fix out of bound access of clkinfo_per_port
Avoid accessing clkinfo_per_port struct with idx
when idx is invalid.

Change-Id: I45bef3381659622cdb63d076842e9d58f54da0f5
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-07-28 10:49:41 +05:30
qctecmdr ffe853a885 Merge "asoc: Register CDC_DMA interface only if enabled" 2021-07-24 11:15:18 -07:00
qctecmdr d642c50b52 Merge "config: sdm450: Disable CDC_DMA interfaces" 2021-07-24 11:15:18 -07:00
qctecmdr 20e0f5bb61 Merge "asoc: codecs: add null check before access" 2021-07-24 11:15:18 -07:00
Subhadra Jagadeesan 95f1bad1d3 asoc: Register CDC_DMA interface only if enabled
Register for the widgets and interconnections in routing
driver only when the respective interfaces are supported.
Add config based approach for CDC_DMA interface.

Change-Id: I56a8a3c14896cd1e267a4099e90ca480d13e2d6f
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-15 11:45:03 +05:30
Subhadra Jagadeesan 6b0c8ad91b config: sdm450: Disable CDC_DMA interfaces
Added configs to disable CDC_DMA interface in sdm450 autoconf.
This is done to disable mixer controls and related
intercon routes in routing driver to avoid registration of
unnecessary sound controls to optimize audio sound card loading.

Change-Id: I6040f5f8ff5c0e09960bbb0332c7890f2b183f04
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-15 10:57:07 +05:30
qctecmdr 5fd51489bb Merge "ASoC: wcd: Add check to stop invalid memory access" 2021-07-14 02:16:54 -07:00
Lakshman Chaluvaraju e7a2c47f01 asoc: codecs: add null check before access
Add null check before accessing cable status.

Change-Id: I77d19f543cf56ffaa159c490ea4df1f8c5a0f272
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-07-13 16:39:59 +05:30
qctecmdr 5ffb545a61 Merge "audio-kernel: enable wsa883x compilation on qrb5165" 2021-07-11 23:35:09 -07:00
Zhou Song c4b4d9d89a asoc: fix KW issue of using uninitialized variable
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.

Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-07-09 07:02:55 -07:00
qctecmdr de549a6f75 Merge "asoc: codecs: Fix LPASS register access during bootup" 2021-07-08 20:30:27 -07:00
qctecmdr 9b69c23403 Merge "ASoC: msm8952: avoid static route between cpu and codec dai" 2021-07-08 20:30:27 -07:00
Shuai Zhang fcc68bbb9e audio-kernel: enable wsa883x compilation on qrb5165
Add support of wsa883x on qrb5165.
Since both qrb5165 and sxr2130 use the same kona`s config,
qrb5165 also needs to support wsa883x compilation,
otherwise carsh will appear.

Change-Id: Ibc9606b41bc3ae89672f8c4588c91c601cd8ea4c
Signed-off-by: Shuai Zhang <shuzhan@qti.qualcomm.com>
2021-07-08 00:18:12 -07:00
Sujin Panicker db70954c3b ASoC: Enable wsa881x-temp-sensor for bengal
Enable wsa881x-temp-sensor only for bengal, since
sdm450 uses both analog and digital wsa and would
cause symbolic error as wsa881x-temp-sensor would
be enabled twice.

Change-Id: Ibe78bee9a4400f5c4a355056b53d0bf726546f55
Signed-off-by: Sujin Panicker <c_spanic@qti.qualcomm.com>
2021-07-06 18:48:43 +05:30
Subhadra Jagadeesan 9babf6fd80 ASoC: msm8952: avoid static route between cpu and codec dai
Static route created between playback/capture widgets of
cpu and codec dai of same dai link cause codec path to get powered up first
followed by BE DAI start during device switch use-case like
audio playback on wsa-speaker and switch occurs to headphones upon insertion,
leading to audio playback failure.
Set the dynamic bit of BE DAI links of slimbus to update the backend parameters
before codec path setup.

Change-Id: I876efc10dace85069f980da864f017feee1b40ba
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-06 15:59:19 +05:30
qctecmdr 12f3c1c51d Merge "asoc: msm_sdw: Revert adsp ready check for read/write" 2021-07-05 02:01:28 -07:00
qctecmdr f336765bf5 Merge "afe: release codec port when afe starts failed" 2021-07-05 02:01:28 -07:00
Aditya Bavanari 656566e82e asoc: codecs: Fix LPASS register access during bootup
In analog codec and soundwire codec probe functions,
ADSP Audio PD up status is not checked which leads
to LPASS registers access during bootup
even before ADSP is ready.
Check for ADSP ready state in the respective
probe functions to fix this.

CRs-Fixed: 2202958
Change-Id: I8e05d30ef55cde58e8002d1040b3701280b91861
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2021-07-04 22:39:48 -07:00
Linux Build Service Account 3e46dab1ac Merge 036d22eddd on remote branch
Change-Id: Ie01da3df89f1067a81edb81ff6d756e59dddef62
2021-07-01 23:58:39 -07:00
Sanjana B e49de9f35d ASoC: wcd: Add check to stop invalid memory access
Catch any unexpected behavior with else case to
prevent invalid memory access.

Change-Id: I0edad1c645031286ba0528a52fd11655f445df35
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-06-29 12:40:04 +05:30
Zhou Song e497f28945 afe: release codec port when afe starts failed
When afe port starts failed, allocated port should
be released to avoid subsequent allocation failed.

Change-Id: If0cacce296d14135d23bf45e47de5b253372ea31
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-06-24 17:30:45 +05:30
Soumya Managoli ef51f93795 ASoC: Changes to enable codec clk for wcd9335
wcd9335 codec on 8953/8937 uses div clk2.
Add support for the same in audio clock driver.

Change-Id: Ia4e40b6f7c993fc3ff9e66eebd9e08c7a9a46f23
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-06-23 16:08:04 +05:30
qctecmdr 036d22eddd Merge "ASoC: Get the component handle for cpe and tasha" 2021-06-19 10:29:48 -07:00
qctecmdr 0879ae52eb Merge "SoC: codecs: Fix slim_tx port configuration for wcd9335" 2021-06-19 10:29:48 -07:00
qctecmdr 770c810a62 Merge "Asoc: check for invalid voice session id" 2021-06-19 10:29:48 -07:00
qctecmdr ced6d47935 Merge "audio-kernel: enable wsa883x compilation on sxr2130" 2021-06-19 10:29:48 -07:00
Lakshman Chaluvaraju 93c936cfc5 Asoc: check for invalid voice session id
Add check to return if session id is invalid.

Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-06-15 02:20:35 -07:00
Shashi Kant Maurya fc259a0085 SoC: codecs: Fix slim_tx port configuration for wcd9335
Add check for valid dai_id in slim_tx_mixer_put().

Change-Id: I896c2cb1336ef4f66ecdbbe8bbad65b7471e7b73
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-06-14 03:17:20 -07:00
Soumya Managoli 479baecce9 ASoC: Get the component handle for cpe and tasha
Changes to align with snd_soc_component model of
kernel 4.19 to get the right component handle
for cpe and tasha codec drivers.

Change-Id: Id7a28f4957d28bdc89458cb31348e7d7a5483e56
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-06-13 23:14:42 -07:00
qctecmdr d185893098 Merge "ASoC: wcd937x: Change vbg fine voltage to 0.5V for wcd937x second source" 2021-06-12 09:54:44 -07:00
qctecmdr e1ec3631e0 Merge "dsp: fix out of bound access for cal_data size" 2021-06-12 09:54:44 -07:00
Vatsal Bucha e9ca8b2da2 ASoC: wcd937x: Change vbg fine voltage to 0.5V for wcd937x second source
VBG Fine Voltage should be changed to 0.5V for second source
target. Set it to corresponding value in init.

Change-Id: Ica73f45d7cb4f5f623d3333680894625603ca92c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-08 21:38:43 -07:00
qctecmdr 60bc7c93f1 Merge "dsp: update size check for set/get VI param function" 2021-06-06 23:32:28 -07:00
Ganapathiraju Sarath Varma c386af865b audio-kernel: enable wsa883x compilation on sxr2130
Add support of wsa883x on sxr2130.

Change-Id: I9c50480f79c0f05e23315a115f7d8db602eecc6d
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2021-06-03 17:37:12 +05:30
Linux Build Service Account 0a959b8270 Merge 8d21f18fc8 on remote branch
Change-Id: Id10cecf7e17df135c3efbd4ce31405a6a0b3db17
2021-06-02 22:34:25 -07:00