Open End4You opened 5 years ago
please test on my latest AOSP 8.1 release
please test on my latest AOSP 8.1 release
speaker still doesn't work on AOSP 8.1 V26
same problem on AOSP 9.0 v107
getprop ro.vendor.build.fingerprint AGM/T91/HSSDM845QC:8.1.0/OPM1.171019.026/65:user/release-keys
it's logcat on AOSP 9 V107 logcat.log
11-08 18:31:56.938 3695 3695 W ServiceManagement: Waited one second for android.hardware.boot@1.0::IBootControl/default. Waiting another...
11-08 18:31:58.949 3695 3695 I chatty : uid=0(root) bootctl identical 2 lines
11-08 18:31:59.954 3695 3695 W ServiceManagement: Waited one second for android.hardware.boot@1.0::IBootControl/default. Waiting another...
11-08 18:32:00.432 1323 1584 E LightsService: Light requested not available on this device. 2
11-08 18:32:00.512 1004 1999 D NuPlayerDriver: reset(0xed521300) at state 4
11-08 18:32:00.513 1004 1999 D NuPlayerDriver: notifyListener_l(0xed521300), (8, 0, 0, -1), loop setting(0, 0)
11-08 18:32:00.513 1818 2027 I vol.Events: writeEvent level_changed STREAM_MUSIC 7
11-08 18:32:00.514 1004 3982 D NuPlayerDriver: notifyResetComplete(0xed521300)
11-08 18:32:00.515 1004 1999 D NuPlayerDriver: reset(0xed521300) at state 0
11-08 18:32:00.516 1953 3954 V MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
11-08 18:32:00.517 1953 3954 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
11-08 18:32:00.517 1953 3954 V MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
11-08 18:32:00.517 1953 3954 V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
11-08 18:32:00.523 1004 1999 D NuPlayerDriver: NuPlayerDriver(0xed521980) created, clientPid(1953)
11-08 18:32:00.528 1004 4007 D GenericSource: FileSource remote
11-08 18:32:00.535 1004 4006 D NuPlayerDriver: notifyListener_l(0xed521980), (1, 0, 0, -1), loop setting(0, 0)
11-08 18:32:00.538 1953 3954 D Ringtone: Successfully created local player
11-08 18:32:00.540 1323 1323 V MediaRouter: onRestoreRoute() : route=RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
11-08 18:32:00.540 1323 1323 V MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
11-08 18:32:00.540 1004 1999 D NuPlayerDriver: start(0xed521980), state is 4, eos is 0
11-08 18:32:00.540 1781 2339 E bt_btif : register_notification_rsp: Avrcp device is not connected, handle: 0x0
11-08 18:32:00.540 1004 4006 I GenericSource: start
11-08 18:32:00.541 1781 2339 E bt_btif : register_notification_rsp: Avrcp device is not connected, handle: 0x0
11-08 18:32:00.541 1781 2339 I chatty : uid=1002(bluetooth) BluetoothAvrcpH identical 3 lines
11-08 18:32:00.541 1781 2339 E bt_btif : register_notification_rsp: Avrcp device is not connected, handle: 0x0
11-08 18:32:00.546 1004 4011 I OMXClient: IOmx service obtained
11-08 18:32:00.547 1010 2169 I OMXMaster: makeComponentInstance(OMX.google.vorbis.decoder) in omx@1.0-service process
11-08 18:32:00.549 1010 2169 E OMXNodeInstance: setConfig(0xeac246e0:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
11-08 18:32:00.549 1004 4011 I ACodec : codec does not support config priority (err -2147483648)
11-08 18:32:00.549 1010 2169 E OMXNodeInstance: getConfig(0xeac246e0:google.vorbis.decoder, ConfigAndroidVendorExtension(0x6f100004)) ERROR: Undefined(0x80001001)
11-08 18:32:00.550 1004 4011 I MediaCodec: MediaCodec will operate in async mode
11-08 18:32:00.553 841 841 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x7c68a2b4e0, 32768)
11-08 18:32:00.566 841 841 I chatty : uid=1000(system) allocator@1.0-s identical 10 lines
11-08 18:32:00.566 841 841 W AshmemAllocator: ashmem_create_region(32768) returning hidl_memory(0x7c68a2b4e0, 32768)
11-08 18:32:00.570 893 3949 D AudioFlinger: Client defaulted notificationFrames to 7350 for frameCount 22050
11-08 18:32:00.572 841 841 W AshmemAllocator: ashmem_create_region(15360) returning hidl_memory(0x7c68a2b4e0, 15360)
11-08 18:32:00.573 841 841 W AshmemAllocator: ashmem_create_region(15360) returning hidl_memory(0x7c68a2b4e0, 15360)
11-08 18:32:00.574 893 3949 W AudioFlinger: moveEffectChain_l() effect chain for session 0 not on source thread 0xef4837c0
11-08 18:32:00.578 1004 4006 D NuPlayerDriver: notifyListener_l(0xed521980), (6, 0, 0, -1), loop setting(0, 0)
11-08 18:32:00.578 843 4014 D audio_hw_primary: start_output_stream: enter: stream(0xed7f9000)usecase(0: deep-buffer-playback) devices(0x2)
11-08 18:32:00.579 843 4014 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
11-08 18:32:00.579 843 4014 V audio_hw_primary: voice_extn_compress_voip_is_active: COMPRESS_VOIP_ENABLED is not defined
11-08 18:32:00.579 843 4014 D msm8974_platform: platform_get_output_snd_device: is_in_factory value is 0
11-08 18:32:00.579 843 4014 V msm8974_platform: voice_extn_compress_voip_is_active: COMPRESS_VOIP_ENABLED is not defined
11-08 18:32:00.579 843 4014 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
11-08 18:32:00.579 843 4014 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 0 device (speaker)
11-08 18:32:00.579 843 4014 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
11-08 18:32:00.579 843 4014 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 2
11-08 18:32:00.579 843 4014 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 0 device (speaker)
11-08 18:32:00.579 843 4014 D msm8974_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k)
11-08 18:32:00.579 843 4014 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
11-08 18:32:00.579 843 4014 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
11-08 18:32:00.579 843 4014 I msm8974_platform: platform_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2 format 1, backend_idx 0 device (speaker)
11-08 18:32:00.579 843 4014 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0
11-08 18:32:00.579 843 4014 E msm8974_platform: platform_check_backends_match: Invalid snd_device =
11-08 18:32:00.579 843 4014 D audio_hw_primary: check_usecases_codec_backend:becf: (62) check_usecases curr device: speaker, usecase device: backends match 0
11-08 18:32:00.579 843 4014 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0
11-08 18:32:00.579 843 4014 D hardware_info: hw_info_append_hw_type : device_name = speaker-qrd
11-08 18:32:00.579 843 4014 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
11-08 18:32:00.579 843 4014 D audio_hw_primary: enable_snd_device: snd_device(2: speaker-qrd)
11-08 18:32:00.579 843 4014 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0
11-08 18:32:00.579 843 4014 D audio_route: Apply path: speaker-qrd
11-08 18:32:00.581 843 4014 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 0 of type 0 for Event 3, with Raise=1
11-08 18:32:00.581 843 4014 D sound_trigger_platform: platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 1, concurrency session_allowed 1
11-08 18:32:00.581 843 4014 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker
11-08 18:32:00.581 843 4014 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
11-08 18:32:00.581 843 4014 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate
11-08 18:32:00.581 843 4014 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69936, acdb_dev_id 14, sample_rate 48000, snd_device_be_idx 39
11-08 18:32:00.582 843 4014 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_asm_topology
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_adm_topology
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_audtable
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_audvoltable
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_audstrmtable
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> send_afe_topology
11-08 18:32:00.582 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fc
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> send_afe_cal
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
11-08 18:32:00.583 843 4014 D : Failed to fetch the lookup information of the device 0000000E
11-08 18:32:00.583 843 4014 E ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
11-08 18:32:00.583 843 4014 D : Failed to fetch the lookup information of the device 0000000E
11-08 18:32:00.583 843 4014 E ACDB-LOADER: Error: ACDB AFE returned = -19
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0
11-08 18:32:00.583 843 4014 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
11-08 18:32:00.583 843 4014 D audio_hw_primary: enable_audio_route: apply mixer and update path: deep-buffer-playback speaker
11-08 18:32:00.583 843 4014 D audio_route: Apply path: deep-buffer-playback speaker
11-08 18:32:00.584 843 4014 D audio_hw_primary: select_devices: done
11-08 18:32:00.609 843 4014 D msm8974_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map0
11-08 18:32:00.610 843 4014 D msm8974_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2
11-08 18:32:00.611 1004 4010 I NuPlayerDecoder: [audio] saw output EOS
11-08 18:32:00.611 1004 4009 D AudioTrack: stop() called with 21789 frames delivered
11-08 18:32:00.612 843 4014 D audio_hw_primary: start_output_stream: exit
11-08 18:32:00.613 843 4014 E msm8974_platform: ramp_speaker_gain: Could not get ctl for mixer cmd - Left Speaker Gain or Right Speaker Gain, not applying speaker gain ramp
11-08 18:32:00.613 843 4014 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
11-08 18:32:00.613 843 4014 V audio_hw_primary: voice_extn_compress_voip_is_active: COMPRESS_VOIP_ENABLED is not defined
11-08 18:32:00.613 843 4014 D msm8974_platform: platform_get_output_snd_device: is_in_factory value is 0
11-08 18:32:00.613 843 4014 V msm8974_platform: voice_extn_compress_voip_is_active: COMPRESS_VOIP_ENABLED is not defined
11-08 18:32:00.614 843 1381 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0)
11-08 18:32:00.614 843 1381 D ACDB-LOADER: ACDB -> send_audvoltable
11-08 18:32:00.614 843 1381 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE
11-08 18:32:00.614 843 1381 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 5
11-08 18:32:00.614 843 1381 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 40
11-08 18:32:00.707 893 1486 D AudioFlinger: mixer(0xef183f00) throttle end: throttle time(41)
11-08 18:32:00.955 3695 3695 W ServiceManagement: Waited one second for android.hardware.boot@1.0::IBootControl/default. Waiting another...
11-08 18:32:01.020 1323 1323 V SettingsProvider: Notifying for 0: content://settings/system/volume_music_speaker
Possibly linked to #417
please dump: adb logcat -b all # on stock rom when activating speaker adb shell dumpsys media.audio_policy # on stock rom
adb logcat -b all # on gsi when activating speaker adb shell dumpsys media.audio_policy # on gsi
/vendor/etc/audio_policy_configuration.xml file
Hi @End4You , Im trying to install Lineage on my AGM X3. Can you tell me how you manage to install it ? do you still have the speaker issue ? Thx !
@MoKuH did you happen to progress with what were you doing with AGM X3?
@End4You can you please tell how did you unlock bootloader?
Hello, @End4You and @MoKuH ! I'm also trying to flash custom ROM into my AGM X3. Could you tell me how to do that?
I have found some information on Chinese websites like http://bbs.zol.com.cn/sjbbs/d34009_58.html . It seems that someone succeeded before Jan 2019, but the link has been invalid now.
using rom: Lineage v21 system-arm64-aonly-gapps-su.img
It's work with USB-C headphones, but speaker can't work