[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

So I grabbed a log and started looking into this. I believe you are correct that the correct path is one of the bt-sco ones, however I'm not sure where to modify the volume? I don't see a place for that in the file you mentioned. Can you explain exactly where the volumes are stored? Here's a link to a full logcat I grabbed when making a phone call and adjusting the headset speaker volume:

https://www.dropbox.com/s/quzbrrak0o6y1to/logcat-bt-ic.txt?dl=0

Some highlights from the log with 'bt-sco' mentioned:

01-27 16:36:20.710 735 891 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: 00:06:6E:15:05:46=;routing=32
01-27 16:36:20.710 735 891 D audio_hw_primary: select_devices for use case (voicemmode1-call)
01-27 16:36:20.710 735 891 D audio_hw_primary: select_devices: out_snd_device(27: bt-sco-headset) in_snd_device(94: bt-sco-mic)
01-27 16:36:20.710 735 891 D voice : voice_set_sidetone: disable, out_snd_device: 15
01-27 16:36:20.718 735 891 D audio_hw_primary: disable_audio_route: reset and update mixer path: voicemmode1-call
01-27 16:36:20.760 735 891 D hardware_info: hw_info_append_hw_type : device_name = earpiece-voice
01-27 16:36:20.761 735 891 D audio_hw_primary: disable_snd_device: snd_device(15: earpiece-voice)
01-27 16:36:20.761 735 891 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(0) new_snd_devices(0)
01-27 16:36:20.762 735 891 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0xf of type 0 for Event 0, with Raise=0
01-27 16:36:20.762 735 891 D audio_hw_primary: disable_audio_route: reset and update mixer path: voicemmode1-call
01-27 16:36:20.762 735 891 D hardware_info: hw_info_append_hw_type : device_name = line-vr
01-27 16:36:20.762 735 891 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 36 device (bt-sco-headset)
01-27 16:36:20.762 735 891 D msm8974_platform: platform_split_snd_device: snd_device(27) num devices(1) new_snd_devices(0)
01-27 16:36:20.762 735 891 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 27
01-27 16:36:20.762 735 891 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
01-27 16:36:20.762 735 891 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
01-27 16:36:20.762 735 891 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: bt-sco-headset, usecase device: backends match 0
01-27 16:36:20.762 735 891 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: bt-sco-headset, usecase device:earpiece-voice backends match 0
01-27 16:36:20.763 735 891 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
01-27 16:36:20.763 735 891 D msm8974_platform: platform_split_snd_device: snd_device(27) num devices(0) new_snd_devices(0)
01-27 16:36:20.763 735 891 D hardware_info: hw_info_append_hw_type : device_name = bt-sco-headset
01-27 16:36:20.763 735 891 D msm8974_platform: platform_split_snd_device: snd_device(27) num devices(0) new_snd_devices(0)
01-27 16:36:20.763 735 891 D audio_hw_primary: enable_snd_device: snd_device(27: bt-sco-headset)
01-27 16:36:20.763 735 891 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x1b of type 0 for Event 1, with Raise=0
01-27 16:36:20.763 735 891 D audio_route: Apply path: bt-sco-headset
01-27 16:36:20.763 735 891 I msm8974_platform: platform_check_and_set_capture_codec_backend_cfg:txbecf: afe: bitwidth 16, samplerate 48000, channel 1 format 1, backend_idx 9 usecase = 36 device (bt-sco-mic)
01-27 16:36:20.763 735 891 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 9 current bit width: 16 and sample rate: 48000, channels 1 format 1
01-27 16:36:20.763 735 891 W msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Use default bw and sr for voice/voip calls and for unprocessed/camera source
01-27 16:36:20.763 735 891 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 9 updated bit width: 16 and sample rate: 48000
01-27 16:36:20.763 735 891 D audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 0
01-27 16:36:20.763 735 891 D hardware_info: hw_info_append_hw_type : device_name = bt-sco-mic
01-27 16:36:20.763 735 891 D msm8974_platform: platform_split_snd_device: snd_device(94) num devices(0) new_snd_devices(0)
01-27 16:36:20.763 735 891 D audio_hw_primary: enable_snd_device: snd_device(94: bt-sco-mic)
01-27 16:36:20.763 735 891 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x5e of type 1 for Event 1, with Raise=1
01-27 16:36:20.763 735 891 D audio_route: Apply path: bt-sco-mic
01-27 16:36:20.763 735 891 D ACDB-LOADER: ACDB -> send_voice_cal, acdb_rx = 22, acdb_tx = 21, feature_set = 0
01-27 16:36:20.763 735 891 D ACDB-LOADER: ACDB -> send_voice_rx_topology
01-27 16:36:20.763 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
01-27 16:36:20.763 735 891 D ACDB-LOADER: ACDB -> send_voice_tx_topology
01-27 16:36:20.763 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOCPROC_COMMON_TOPOLOGY_ID
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_SIDETONE_IIR_CAL
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_DATA
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_SIDETONE_CAL
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 22, txacdb_id 21, table 5
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
01-27 16:36:20.764 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE_SIZE
01-27 16:36:20.765 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_STATIC_TABLE
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_CAL
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DEVICE_CFG
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_DEV_CFG_CAL
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 22, txacdb_id 21, table 4
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
01-27 16:36:20.766 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE_SIZE
01-27 16:36:20.769 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_VOL_CAL
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> send_voice_columns, rxacdb_id 22, txacdb_id 21, table 6
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_COLUMNS_INFO_V2
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE_SIZE
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_VOC_STREAM_STATIC_TABLE
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_VOCPROC_STREAM_CAL
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> send_afe_topology
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 21, Topology Id 112fb
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> send_afe_cal
01-27 16:36:20.773 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
01-27 16:36:20.774 735 891 D : Failed to fetch the lookup information of the device 00000015
01-27 16:36:20.774 735 891 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
01-27 16:36:20.774 735 891 D : Failed to fetch the lookup information of the device 00000015
01-27 16:36:20.774 735 891 E ACDB-LOADER: Error: ACDB AFE returned = -19
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> send_afe_topology
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 22, Topology Id 112fc
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> send_afe_cal
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
01-27 16:36:20.774 735 891 D : Failed to fetch the lookup information of the device 00000016
01-27 16:36:20.774 735 891 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
01-27 16:36:20.774 735 891 D : Failed to fetch the lookup information of the device 00000016
01-27 16:36:20.774 735 891 E ACDB-LOADER: Error: ACDB AFE returned = -19
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 21 path = 1
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 22 path = 0
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
01-27 16:36:20.774 735 891 D ACDB-LOADER: ACDB -> Sent VocProc Cal!
01-27 16:36:20.774 735 891 E audio_hw_utils: audio_extn_utils_update_stream_app_type_cfg_for_usecase: app type cfg not supported for usecase type (2)
01-27 16:36:20.774 735 891 I audio_hw_utils: audio_extn_utils_send_app_type_cfg: not a playback/capture path, no need to cfg app type
01-27 16:36:20.774 735 891 D audio_hw_primary: enable_audio_route: apply mixer and update path: voicemmode1-call bt-sco
01-27 16:36:20.774 735 891 D audio_route: Apply path: voicemmode1-call bt-sco
01-27 16:36:20.835 735 891 D voice : voice_set_sidetone: enable, out_snd_device: 27
01-27 16:36:20.836 735 891 D audio_hw_primary: select_devices: done
01-27 16:36:20.836 735 891 D audio_hw_extn: audio_extn_set_anc_parameters: anc_enabled:0
01-27 16:36:20.836 735 891 D audio_hw_spkr_prot: audio_extn_fbsp_set_parameters: Speaker protection disabled
01-27 16:36:20.881 736 27029 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_WAKE_IND: 0xFD
01-27 16:36:20.881 736 27029 I vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK ON
01-27 16:36:20.883 736 27029 D vendor.qti.bluetooth@1.0-wake_lock: Acquire wakelock is acquired
01-27 16:36:20.883 736 27029 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Writing IBS_WAKE_ACK
01-27 16:36:20.925 736 27029 I vendor.qti.bluetooth@1.0-ibs_handler: ProcessIbsCmd: Received IBS_SLEEP_IND: 0xFE
01-27 16:36:20.925 736 27029 I vendor.qti.bluetooth@1.0-ibs_handler: SerialClockVote: vote for UART CLK OFF
01-27 16:36:20.925 736 27029 E vendor.qti.bluetooth@1.0-wake_lock: Release wakelock is released
01-27 16:36:20.951 735 891 D audio_hw_primary: out_set_parameters: enter: usecase(0: deep-buffer-playback) kvpairs: 00:06:6E:15:05:46=;routing=32
01-27 16:36:20.977 735 891 D audio_hw_primary: in_set_parameters: enter: kvpairs=00:06:6E:15:05:46=;input_source=6;routing=-2147483640
01-27 16:36:20.977 735 891 D audio_hw_primary: select_devices for use case (audio-record)
01-27 16:36:20.977 735 891 D audio_hw_primary: select_devices: out_snd_device(0: ) in_snd_device(94: bt-sco-mic)
01-27 16:36:20.977 735 891 D audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record
01-27 16:36:21.005 735 891 D hardware_info: hw_info_append_hw_type : device_name = line-vr
01-27 16:36:21.005 735 891 D audio_hw_primary: disable_snd_device: snd_device(71: line-vr)
01-27 16:36:21.005 735 891 D msm8974_platform: platform_split_snd_device: snd_device(71) num devices(0) new_snd_devices(0)
01-27 16:36:21.015 735 891 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x47 of type 1 for Event 0, with Raise=1
01-27 16:36:21.016 735 891 I msm8974_platform: platform_check_and_set_capture_codec_backend_cfg:txbecf: afe: bitwidth 16, samplerate 16000, channel 1 format 1, backend_idx 9 usecase = 18 device (bt-sco-mic)
01-27 16:36:21.016 735 891 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 9 current bit width: 16 and sample rate: 16000, channels 1 format 1
01-27 16:36:21.016 735 891 W msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Use default bw and sr for voice/voip calls and for unprocessed/camera source
01-27 16:36:21.016 735 891 I msm8974_platform: platform_check_capture_codec_backend_cfg:txbecf: afe: Codec selected backend: 9 updated bit width: 16 and sample rate: 48000
01-27 16:36:21.016 735 891 D audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 0
01-27 16:36:21.016 735 891 D hardware_info: hw_info_append_hw_type : device_name = bt-sco-mic
01-27 16:36:21.016 735 891 W audio_hw_utils: audio_extn_utils_update_stream_input_app_type_cfg: App type could not be selected. Falling back to default
01-27 16:36:21.016 735 891 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->in_snd_device bt-sco-mic
01-27 16:36:21.016 735 891 D msm8974_platform: platform_split_snd_device: snd_device(94) num devices(0) new_snd_devices(0)
01-27 16:36:21.016 735 891 I audio_hw_utils: send_app_type_cfg_for_device CAPTURE app_type 69938, acdb_dev_id 21, sample_rate 8000, snd_device_be_idx 33
01-27 16:36:21.017 735 891 D msm8974_platform: platform_split_snd_device: snd_device(94) num devices(1) new_snd_devices(0)
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 21, path = 1, app id = 0x11132, sample rate = 8000
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> send_asm_topology
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> send_adm_topology
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> send_audtable
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> send_audvoltable
01-27 16:36:21.017 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
01-27 16:36:21.018 735 891 D : Failed to fetch the lookup information of the device 00000015
01-27 16:36:21.018 735 891 E ACDB-LOADER: Error: ACDB AudProc vol returned = -19
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> send_audstrmtable
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> send_afe_topology
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 21, Topology Id 112fb
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> send_afe_cal
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
01-27 16:36:21.018 735 891 D : Failed to fetch the lookup information of the device 00000015
01-27 16:36:21.018 735 891 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
01-27 16:36:21.018 735 891 D : Failed to fetch the lookup information of the device 00000015
01-27 16:36:21.018 735 891 E ACDB-LOADER: Error: ACDB AFE returned = -19
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 21 path = 1
01-27 16:36:21.018 735 891 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
01-27 16:36:21.018 735 891 D audio_hw_primary: enable_audio_route: apply mixer and update path: audio-record bt-sco
01-27 16:36:21.019 735 891 D audio_route: Apply path: audio-record bt-sco
01-27 16:36:21.031 735 891 D audio_hw_primary: BT SOC status: 1
01-27 16:36:21.031 735 891 D audio_hw_primary: select_devices: done
01-27 16:36:21.036 764 5608 D AudioPolicyManagerCustom: setForceUse() usage 2, config 3, mPhoneState 2

TWP