Commit Graph

4072 Commits

Author SHA1 Message Date
Jiazai Wu
457009dc94 uapi:align msm_audio_ar.h with AR
need to align msm_audio_ar.h with AR.

Change-Id: Ib3d7bad7e2e3b1320927d1d2ce7f891bfd7bd065
2022-11-17 17:16:54 +08:00
Vijay Kumar Maddula
c0b9e1dcd8 asoc: tavil: modify TX routes and dapm widgets
Observed audio capture has no data after upgrade to 5.4 kernel
due to change in dapm power up sequence in 5.4 kernel.
Modified tavil TX routes and  dapm widgets to
meet the recent kenrel dapm power up sequence.

Change-Id: I15965a4f221b396e670a5b2888a60557c302db51
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2022-10-13 23:50:18 -07:00
qctecmdr
fed8cf2681 Merge "asoc: destroy mutex during module_exit" 2022-10-13 00:37:54 -07:00
qctecmdr
6f35442a48 Merge "asoc: tavil: modify RX routes and dapm widgets" 2022-10-11 23:29:07 -07:00
qctecmdr
cc4939f5a6 Merge "Asoc: 24bit support for output devices" 2022-10-11 23:29:07 -07:00
qctecmdr
c37ebe7169 Merge "asoc: add return value check for channel mapping function" 2022-10-11 23:29:07 -07:00
Vijay Kumar Maddula
66448f4e5e asoc: tavil: modify RX routes and dapm widgets
Observed audio playback mute after upgrade to 5.4 kernel
due to change in dapm power up sequence in 5.4 kernel.
Modified tavil RX routes and  dapm widgets to
meet the recent kenrel dapm power up sequence.

Change-Id: I24576f342c43e586ed9b55eeab2510c59c70e33d
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2022-10-11 02:46:18 -07:00
fei tong
2068734c27 asoc: Fix App Type Gain can`t work proper
App Type Gain command does not work due to max value

Change-Id: I27a7e4cf22e6b53650e1b51af65c7aadafa064dc
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-10-11 14:22:50 +08:00
ftong
1a2ec5b372 asoc: destroy mutex during module_exit
Mutexes are initialized, but not destroyed, add destruction
in exit routines.

Change-Id: Ia45c604141f4f03403a765e0d10ff0b86b25885e
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-10-10 17:43:47 +08:00
ftong
37bcf911fa asoc: add return value check for channel mapping function
Add return value check for channel mapping function, and reject invalid input

Change-Id: If8ddc16b33bf2b6af10f9d6055d6de27d86ad240
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-10-10 17:41:26 +08:00
Kogara Naveen Kumar
05c9918e58 Asoc: 24bit support for output devices
Enabled 24bit support for output devices

Change-Id: If48ebbd849d619019cc5ecff972ca638ecb771d4
2022-10-06 11:05:47 +05:30
qctecmdr
5be9ed037a Merge "dsp : search cal block using path in asm" 2022-09-27 04:06:41 -07:00
qctecmdr
472af0e526 Merge "asoc: use virt_sndcard_ctl node for sndcard status update" 2022-09-27 04:06:41 -07:00
Sitong
dee7082307 asoc: use virt_sndcard_ctl node for sndcard status update
In automotive hypervisor SSR case, csd2 need a while to handle resource,
hence receiving virtual SSR event doesn't mean PVM is ready for audio usecase.
AudioReach should wait for more precise events from PVM csd2.
Expose an ioctl node for updating sndcard status via gsl virtualization.

Change-Id: Ia5d1110dea970070706937c3bf5e42e1ccb1942f
2022-09-21 19:20:38 +08:00
Manoj Kumar N D
701b2124c8 dsp : search cal block using path in asm
Send path to get the cal block in order to fetch
topology and app type.

Change-Id: I5ea2fe7da99f095c9bb31644bd65c0a2a6d0870f
Signed-off-by: Manoj Kumar N D <quic_mnd@quicinc.com>
2022-09-20 04:31:59 -07:00
qctecmdr
14d435e07f Merge "ASoC: codecs: Deinitialize mbhc on codec remove" 2022-09-15 08:43:47 -07:00
qctecmdr
36711408f2 Merge "asoc: audio reach kernel bringup on 8255 GVM" 2022-09-14 23:58:21 -07:00
Huicheng Liu
b490a90b34 asoc: audio reach kernel bringup on 8255 GVM
* Refine populate_snd_card_dailinks function.
* Add oct_tdm, hs_if3_tdm and hs_if4_tdm.

Change-Id: Iaca5b1d4f107ede773530a60b457a510244f784a
Signed-off-by: Huicheng Liu <quic_huicliu@quicinc.com>
2022-09-13 01:22:23 -04:00
qctecmdr
44851c8643 Merge "audio: Modified SSR handling after sub-system shutdown compltes" 2022-09-08 22:59:08 -07:00
qctecmdr
479105b370 Merge "asoc: remove error from function msm_pinctrl_mclk_enable" 2022-09-08 22:59:08 -07:00
Soumya Managoli
a596b7cd0a ASoC: codecs: Deinitialize mbhc on codec remove
Invoke mbhc de-init on codec remove to free
the requested mbhc irqs.

Change-Id: Id87bb38a9cde6223224d76cbda325e3334037e52
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-09-01 16:23:55 +05:30
Jing Wang
d207393128 asoc: Add kcontrol "QUAT_TDM_RX_7 Port Mixer TERT_TDM_TX_7"
Since quin & tert tdm fsync has harware conflict at talos,
add kcontrol for audiod use.

Change-Id: Ic42dec3144a9b3a8def14b14081cb9562291ae09
Signed-off-by: Jing Wang <quic_jingwa@quicinc.com>
2022-09-01 15:16:44 +05:30
Kogara Naveen Kumar
884cb61bf3 audio: Modified SSR handling after sub-system shutdown compltes
Changes to make sound card offline after receving sub-system complete event.

Change-Id: I022aa77c2eb19706a448c3fe26be2f9cbcf45bfd
2022-09-01 14:34:49 +05:30
Xuewen Liu
2e13245b99 asoc: remove error from function msm_pinctrl_mclk_enable
change pr_err to pr_debug. Can't find device node
mclk_gpio_phandle[i](it equals "qcom,internal-mclk1-gpios")
in gpio device_tree dts file, so it needs to change this log
to pr_debug, it's not an error.

Change-Id: I82e58222e27b3a97209c52e8e569a0257744cf22
Signed-off-by: Xuewen Liu <quic_xuewliu@quicinc.com>
2022-08-30 08:28:20 +00:00
qctecmdr
dc1728e345 Merge "asoc: add more return when msm_audio_ion_alloc failed" 2022-08-26 03:18:55 -07:00
Deru Wang
f733b21779 asoc: add more return when msm_audio_ion_alloc failed
Sometimes, the return of msm_audio_ion_alloc is a
positive number not a negative number when audio ION
alloc failed. It will return the status of cmd_rsp
which maybe a positive number.

Change-Id: Ice90385f22c07fa2c9c72c8a31aeb3b8ee477756
Signed-off-by: Deru Wang <quic_deruwang@quicinc.com>
2022-08-23 16:22:04 +08:00
Krishna Kishor Jha
09f30ee1a0 audio-kernel: Do SRC with MFC
1) Doing SRC with MFC when FE and BE SampleRates are different.
   MFC module is expected to add as fist module in COPP and output
   SR of MFC is configured same as app_type SR.
2) Adding MFC module V2 version details to system.

Change-Id: I7c03fa28ec32892645ead9baf59eb927ca3e4891
2022-08-11 22:48:18 +05:30
Jing Wang
50e0fe7b19 dsp: dyn mclk support enable/disable in afe_set_lpass_clock_v2
dyn mclk support enable/disable in afe_set_lpass_clock_v2

Change-Id: Idb793961135ddc2bcdefe2c8367abce93a4ce164
Signed-off-by: Jing Wang <quic_jingwa@quicinc.com>
2022-08-01 19:30:48 -07:00
ftong
05dab02211 asoc: ignore afe resp status to avoid 2s timeout
When afe is inactive, it can cause afe_state to be negative and lead to timeout.
Ignore afe response in such scenario to avoid timeout.

Change-Id: I1191cbe40920bfdcb3ec7e8de76f9210923f40a2
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-07-27 12:56:33 +08:00
qctecmdr
41a9d37095 Merge "dsp: functions for paired rx port enable/disable usecases" 2022-07-22 01:29:02 -07:00
qctecmdr
dd2d4b6317 Merge "asoc: enables paired rx port to address tdm slot shift issue" 2022-07-22 01:29:02 -07:00
Kogara Naveen Kumar
fab1b421ae asoc: enables paired rx port to address tdm slot shift issue
Defines mixer control for the paired rx and how the dai driver is starting/stopping the paired rx port.

Change-Id: Ie17f7de9d7a482ad30b219a9ba68066ee8d467df
2022-07-20 02:41:56 -07:00
Kogara Naveen Kumar
b2a778807b dsp: functions for paired rx port enable/disable usecases
Contains functions defined in the afe driver to store the paired rx information
in the afe driver and to start/stop the paired rx port.

Change-Id: I4ec863d9b04ec7f8f12abb5b66b417eeaa779ec8
2022-07-20 02:41:14 -07:00
Hugh Guan
b1d01899fa asoc: change HS_IF dummy to playback
HS_IF0_TDM_RX_0_DUMMY, HS_IF1_TDM_RX_0_DUMMY and HS_IF2_TDM_RX_0_DUMMY
are for playback instead of capture.

Change-Id: Icb4ccaacb3c6904b9591cada0905250a2b67cbef
Signed-off-by: Hugh Guan <quic_hhguan@quicinc.com>
2022-07-15 11:34:45 -07:00
Kogara Naveen Kumar
2283a81ea0 audio-kernel: Reset client info on deregister.
For elite and audioreach co-exit, we need keep source file same.
This patch exit in audioreach but not included in elite, cp it to keep file same.
Leveraged from audio-ar commit id ac15eb7016aff23a2be2a57289635d741cb95340

Change-Id: I187909403e9b54c8f6836477208de5e8311bf4ff
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2022-07-13 04:29:54 -07:00
Krishna Kishor Jha
282aeeb375 audio-routing: Support Rx to Tx loopback
Static loopback is created between QUIN_TDM_RX_0 to Tx session.
Tx session is created with quin_tdm_tx_7 dummy port.

Change-Id: Ic634b47d1d7f80a10c6d2bc341a6d3ca8eae34c1
2022-07-10 22:43:21 -07:00
qctecmdr
acc81179ef Merge "asoc: fixing incorrect log messages" 2022-07-08 04:22:28 -07:00
qctecmdr
8247a993b5 Merge "soc: swr-mstr-ctrl: Fix swr overflow for wsa" 2022-07-08 04:22:28 -07:00
Krishna Kishor Jha
9d3e690bfb asoc: fixing incorrect log messages
Updating log messages with present input vlaues.

Change-Id: Iaeb4d9ddea6032e97eab59e54f4cef2d0c72d59e
2022-07-05 18:01:27 +05:30
qctecmdr
01b8138d48 Merge "audio-kernel: Disable clock voting logs" 2022-06-27 05:25:03 -07:00
qctecmdr
f27620c7c0 Merge "ASoC : Add new kcontrol for starting ASRC" 2022-06-26 21:18:13 -07:00
qctecmdr
8c39c6a80a Merge "asoc: SEC CLK enable" 2022-06-26 21:18:13 -07:00
Hugh Guan
d9dd330111 kernel: add place_marker for sound card register
add place_marker for sound card register kpi measurement.

Change-Id: I527056593661ccb006b0be6119024afca5146d5e
2022-06-21 09:01:39 -07:00
lilong
a104ce9b9f asoc: SEC CLK enable
enable sec clock SEC TDM interface.

Change-Id: I35ee0064ae20b2423fc998c2b4bfedbea3b3b7a4
Signed-off-by: Long Li <quic_lonli@quicinc.com>
2022-06-21 08:03:12 +05:30
Joel Dey
501d8a3cf1 ASoC : Add new kcontrol for starting ASRC
- ASRC tinymix command is split into two. One for configuring and another for starting.
- assign correct asrc instance ID and asrc configs.
- Update correct asrc configs in get function to retrieve values each time.
- Handle multiple parameters from tinymix command by storing the values in global variable and enable asrc once all params are received.
- Fix port type assignment for ASRC.

Change-Id: Ic9d4477d7b04f12f5c62903d0f90e9d2d18cc1d9
Signed-off-by: Joel Dey <quic_jdey@quicinc.com>
2022-06-20 11:29:51 +05:30
Shuai Zhang
f29f6cfcad soc: swr-mstr-ctrl: Fix swr overflow for wsa
Add 500us delay to wait fifo availability.

Change-Id: Idea94f036f5758febecbf2e1e1c6dc900238ebfe
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-06-18 10:46:06 +05:30
Faiz Nabi Kuchay
26aeee1f6b audio-kernel: Disable clock voting logs
trace_printk is recommended for debugging purpose as it
requires temporary memory to handle strings. If used
anywhere within the kernel, memory will be allocated to it.
Hence removed it to avoid any unnecessary memory allocation.

Change-Id: If7b0cada91c97b21987f91e0ff7b7a15ce2145e2
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2022-06-14 15:03:01 +05:30
E V Ravi
fb552fcf0b asoc: 24 and 32bit format support for ASM loopback and playback
Add support for 24 and 32bit format for ASM loopback and playback
session.

Change-Id: Ieb6a6b2328fbe5d84b5b685ecc08adcd6638353c
Signed-off-by: E V Ravi <quic_evenka@quicinc.com>
2022-06-13 22:03:50 -07:00
qctecmdr
a0065850fd Merge "audio-kernal: Loading only Gen3 specific mixer controls for Gen3 boards" 2022-06-07 22:41:38 -07:00
Hexuan Zhu
9788285b6c config: remove unused conf for arauto
Change-Id: I7f5103f0b9372bd9abcfc21f2df1ca91ddf0d280
Signed-off-by: Hexuan Zhu<quic_hexuzhu@quicinc.com>
2022-06-06 23:27:33 -07:00