日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

android7.1+msm8937双MIC改为单MIC(晓龙相机录像声音小)

發布時間:2025/4/16 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android7.1+msm8937双MIC改为单MIC(晓龙相机录像声音小) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

android7.1+msm8937雙MIC改為單MIC(曉龍相機錄像聲音小)

?

1.????問題背景

曉龍相機錄像的時候,回播視頻發現外放聲音非常小,但如果用耳機來聽則正常。

2.????產品和參考設計MIC的差別

?

我們產品

開發板

MIC_IN1_P/M

主MIC

主MIC

MIC_IN2_P/M

耳機

耳機

MIC_IN3_P/M

NC

副MIC

?

3.????錄音時抓log和分析

錄像的時候用logcat | grep snd_device抓log,如下

01-03 06:15:41.267?? 704?1035 D audio_hw_primary: select_devices: out_snd_device(2: speaker)in_snd_device(0: )

01-03 06:15:41.267?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(5)

01-03 06:15:41.267?? 704?1035 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf:new_snd_devices[0] is speaker

01-03 06:15:41.267?? 704?1035 E msm8916_platform: platform_check_backends_match: Invalidsnd_device =

01-03 06:15:41.267?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:15:41.267 ??704?1035 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)

01-03 06:15:41.309?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(-299367304)

01-03 06:15:44.810?? 704?1035 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)

01-03 06:15:44.810?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:15:53.127?? 704?1035 D audio_hw_primary: select_devices: out_snd_device(2: speaker)in_snd_device(0: )

01-03 06:15:53.127?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(6)

01-03 06:15:53.127?? 704?1035 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf:new_snd_devices[0] is speaker

01-03 06:15:53.127?? 704?1035 E msm8916_platform: platform_check_backends_match: Invalidsnd_device =

01-03 06:15:53.128?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:15:53.128?? 704?1035 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)

01-03 06:15:53.152?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(-299367304)

01-03 06:15:57.753?? 704?1035 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)

01-03 06:15:57.753?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:18:01.804?? 704?1035 D audio_hw_primary: select_devices: out_snd_device(2: speaker)in_snd_device(0: )

01-03 06:18:01.805?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(8)

01-03 06:18:01.805?? 704?1035 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf:new_snd_devices[0] is speaker

01-03 06:18:01.805?? 704?1035 E msm8916_platform: platform_check_backends_match: Invalidsnd_device =

01-03 06:18:01.805?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:18:01.805?? 704?1035 D audio_hw_primary: enable_snd_device: snd_device(2: speaker)

01-03 06:18:01.838?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(-299367304)

01-03 06:18:10.213?? 704?1035 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)

01-03 06:18:10.213?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(0) new_snd_devices(0)

01-03 06:18:10.294?? 704?3960 Daudio_hw_primary: select_devices: out_snd_device(0: ) in_snd_device(87:handset-stereo-dmic-ef)

01-03 06:18:10.295?? 704?3960 D msm8916_platform: platform_can_split_snd_device: snd_device(87)num devices(0) new_snd_devices(0)

01-03 06:18:10.295?? 704?3960 D audio_hw_primary: enable_snd_device: snd_device(87:handset-stereo-dmic-ef)

01-03 06:18:10.331?? 704?3960 D msm8916_platform: platform_can_split_snd_device: snd_device(87)num devices(1) new_snd_devices(-350227112)

01-03 06:18:10.519?? 704?1035 D audio_hw_primary: select_devices: out_snd_device(2: speaker)in_snd_device(0: )

01-03 06:18:10.519?? 704?1035 D msm8916_platform: platform_can_split_snd_device: snd_device(2)num devices(1) new_snd_devices(18)

01-03 06:18:10.519?? 704?1035 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf:new_snd_devices[0] is speaker

通過紅色部分關鍵內容D audio_hw_primary:select_devices: out_snd_device(0: ) in_snd_device(87: handset-stereo-dmic-ef)可知錄音的時候用到了副MIC(也就是snd_device),對應的設備名稱為handset-stereo-dmic-ef

?

我們通過系統采用的hardware\qcom\audio\configs\msm8937\mixer_paths_qrd_sku2.xml文件,查看handset-stereo-dmic-ef的內容如下:

<pathname="handset-stereo-dmic-ef">

???????<path name="speaker-dmic-endfire" />

</path>

可知handset-stereo-dmic-ef調用了speaker-dmic-endfire,接著看speaker-dmic-endfire

???<!-- Dual MIC devices -->

???<path name="speaker-dmic-endfire">

???????<path name="adc1" />

???????<ctl name="DEC2 MUX" value="ADC2" />

???????<ctl name="MI2S_TX Channels" value="Two" />

???????<ctl name="ADC2 MUX" value="INP3" />

</path>

可知采用的是雙升到,要改為單MIC,修改后如下:

<pathname="speaker-dmic-endfire">

???????<path name="adc1" />

</path>

?

同時新修hardware\qcom\audio\configs\msm8937\msm8937.mk下相關內容,修改前如下:

##fluencetype can be "fluence" or"fluencepro" or "none"

PRODUCT_PROPERTY_OVERRIDES += \

ro.qc.sdk.audio.fluencetype=fluence\

persist.audio.fluence.voicecall=true\

persist.audio.fluence.voicerec=false\

persist.audio.fluence.audiorec=true\

persist.audio.fluence.speaker=true

?

改后

##fluencetype can be "fluence" or"fluencepro" or "none"

PRODUCT_PROPERTY_OVERRIDES += \

ro.qc.sdk.audio.fluencetype=none\

#ro.qc.sdk.audio.fluencetype=fluence\

persist.audio.fluence.voicecall=true\

persist.audio.fluence.voicerec=false\

#persist.audio.fluence.audiorec=true\

persist.audio.fluence.speaker=true

?

?

總結

以上是生活随笔為你收集整理的android7.1+msm8937双MIC改为单MIC(晓龙相机录像声音小)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。