Forums - CAPIv2 getParameters issue

1 post / 0 new
CAPIv2 getParameters issue
chuan_hsueh
Join Date: 30 May 17
Posts: 10
Posted: Tue, 2018-11-13 08:39

Encounter an issue when try to use AudioManager in Java to getParameters from CAPIv2 module in APQ8098/Android 8. The same method was working fine with APPI module in the 810 board/Android 5. Also, setParameters still works ok in APQ8098/Android 8.

When using AudioManager to getParameters, always getting Invalid snd_device = 0. But setParameters is ok.

Couldn't figure out what's the issue, hopefully someone knows about this. Thanks.

Following are the Java code and adb log.

String getKey = "cal_persist=0;cal_devid=0x400;cal_apptype=69936;cal_caltype=0;cal_samplerate=48000;cal_topoid=0x101BC360;cal_moduleid=0x100BC360;cal_paramid=0x100BC363;cal_data=0"; AudioManager aManager=(AudioManager)getSystemService(Context.AUDIO_SERVICE);

String rcv_params = aManager.getParameters(getKey);

11-12 12:08:23.772 6533 6550 D sendCOPP_params key:: cal_persist=0;cal_devid=0x400;cal_apptype=69936;cal_caltype=0;cal_samplerate=48000;cal_topoid=0x101BC360;cal_moduleid=0x100BC360;cal_paramid=0x100BC363;cal_data=VkcDAAAAAAA

11-12 12:08:23.772 758 1512 D audio_hw_primary: adev_set_parameters: enter: cal_apptype=69936;cal_caltype=0;cal_data=VkcDAAAAAAA;cal_devid=0x400;cal_moduleid=0x100BC360;cal_paramid=0x100BC363;cal_persist=0;cal_samplerate=48000;cal_topoid=0x101BC360

11-12 12:08:23.773 758 1512 D msm8974_platform: Setting audio calibration for snd_device(22) acdb_id(18)

11-12 12:08:23.773 758 1512 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0

11-12 12:08:23.773 758 1512 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled

11-12 12:08:23.774 6533 6550 D getCOPP_params key:: cal_persist=0;cal_devid=0x400;cal_apptype=69936;cal_caltype=0;cal_samplerate=48000;cal_topoid=0x101BC360;cal_moduleid=0x100BC360;cal_paramid=0x100BC363;cal_data=0

11-12 12:08:23.774 758 1521 D audio_hw_spkr_prot: audio_extn_fbsp_get_parameters: Speaker protection disabled

11-12 12:08:23.774 758 1521 D audio_hw_extn: audio_extn_get_parameters: returns

11-12 12:08:23.774 758 1521 E msm8974_platform: platform_get_snd_device_acdb_id: Invalid snd_device = 0

11-12 12:08:23.774 758 1521 E msm8974_platform: get_audiocal: Failed. Could not find acdb id for snd device(0)

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_data' value: '0'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_paramid' value: '0x100BC363'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_moduleid' value: '0x100BC360'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_caltype' value: '0'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_samplerate' value: '48000'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_topoid' value: '0x101BC360'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_persist' value: '0'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_apptype' value: '69936'

11-12 12:08:23.774 1109 1395 I hash_map_utils: key: 'cal_devid' value: '0x400'

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.