Compare commits

...

5 Commits

Author SHA1 Message Date
yidongh
cd4eecbab1 sweet: audio: Correct wrong settings in mixer path
Fix the BT SampleRate from '16000' to 'KHZ_16'
in "mmap-playback bt-sco-wb".

Fix the path name from "mmap-buffer-playback hdmi"
to "mmap-playback hdmi".

CRs-Fixed: 2278484
Change-Id: I44ae1d02cb214555967e3f1f42b0cd022e5c4bfe
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Shalini Manjunatha
0d3ccba410 sweet: audio: Allocate dedicated pcm node for in call recording
Allocate dedicated pcm node for in call recording, this can
avoid conflicting with generic audio recording for concurrent
recording scenarios

Change-Id: If81aa994409161c526fbbcb95dbcb0397fa9e36b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
afterallafk
95dbf7452c sweet: Increase speaker volume
Change-Id: I97d6ddf3e25fd201cf946e7772ef8e6da11620e1
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Pranav Vashi
873cab60ca sweet: audio: Rectify dmic stereo device name
Change-Id: I10fb1c7119a5d31aa7d4d10440e5bc283e20bbd7
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
Pranav Vashi
d344b5377d sweet: Define AAPT config
Change-Id: I53efa96939b0fa0cbba065ed79d964cac9c1ad07
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:20:50 +08:00
3 changed files with 19 additions and 11 deletions

View File

@ -65,6 +65,10 @@
<usecase name="USECASE_AUDIO_RECORD_VOIP" type="in" id="16" />
<usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="12" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="27" />
<usecase name="USECASE_INCALL_MUSIC_UPLINK2" type="out" id="27" />
<usecase name="USECASE_INCALL_REC_UPLINK" type="in" id="27" />
<usecase name="USECASE_INCALL_REC_DOWNLINK" type="in" id="27" />
<usecase name="USECASE_INCALL_REC_UPLINK_AND_DOWNLINK" type="in" id="27" />
</pcm_ids>
<config_params>
<!-- In the below value string, the value indicates default mono -->
@ -223,8 +227,8 @@
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_AANC_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_SPEAKER_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_HANDSET_DMIC_STEREO" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_SPEAKER_DMIC_STEREO" interface="TX_CDC_DMA_TX_3"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" interface="WSA_CDC_DMA_TX_0"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" interface="WSA_CDC_DMA_TX_0"/>
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" interface="WSA_CDC_DMA_TX_0"/>

View File

@ -234,8 +234,8 @@
<!-- RT Proxy Cal end -->
<!-- Incall Recording -->
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia1 Mixer VOC_REC_DL" value="0" />
<ctl name="MultiMedia9 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia9 Mixer VOC_REC_DL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_UL" value="0" />
<ctl name="MultiMedia8 Mixer VOC_REC_DL" value="0" />
<!-- Incall Recording End -->
@ -366,9 +366,9 @@
<!-- Volume controls -->
<ctl name="WSA_RX0 Digital Volume" value="84" />
<ctl name="WSA_RX1 Digital Volume" value="84" />
<ctl name="RX_RX0 Digital Volume" value="84" />
<ctl name="RX_RX1 Digital Volume" value="84" />
<ctl name="RX_RX2 Digital Volume" value="84" />
<ctl name="RX_RX0 Digital Volume" value="87" />
<ctl name="RX_RX1 Digital Volume" value="87" />
<ctl name="RX_RX2 Digital Volume" value="87" />
<ctl name="HPHL Volume" value="20" />
<ctl name="HPHR Volume" value="20" />
<ctl name="EAR SPKR PA Gain" value="G_DEFAULT" />
@ -2058,7 +2058,7 @@
</path>
<path name="incall-rec-uplink">
<ctl name="MultiMedia1 Mixer VOC_REC_UL" value="1" />
<ctl name="MultiMedia9 Mixer VOC_REC_UL" value="1" />
</path>
<path name="incall-rec-uplink bt-sco">
@ -2102,7 +2102,7 @@
</path>
<path name="incall-rec-downlink">
<ctl name="MultiMedia1 Mixer VOC_REC_DL" value="1" />
<ctl name="MultiMedia9 Mixer VOC_REC_DL" value="1" />
</path>
<path name="incall-rec-downlink bt-sco">
@ -2640,7 +2640,7 @@
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-playback bt-sco" />
</path>
@ -2660,7 +2660,7 @@
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<path name="mmap-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>

View File

@ -10,6 +10,10 @@ $(call inherit-product, device/xiaomi/sm6150-common/sm6150.mk)
# Call the MiuiCamera setup
$(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk)
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# API level, the device has been commercially launched on
PRODUCT_SHIPPING_API_LEVEL := 30