FM Radio app: Earphone/Speaker setting does nothing after being set externally
- /e/OS version: 3.1.4
- Device model(s): moto g(7) power
- Impacted Application: /e/OS FMRadio
The problem
After setting audio destination externally (i.e. via Settings > Sounds and vibration > Audio will play on or via another app), setting it via the FM Radio app no longer works - the setting changes but it has not taken effect.
Steps to reproduce
- Change setting via Settings
- Change setting via FM Radio app: doesn't work
Technical details
Paste any relevant logs (adb logcat) in the codeblock below if you have any
10-22 11:18:44.733 23377 23377 E FmMainActivity: onOptionsItemSelected, invalid options menu item.
10-22 11:18:44.737 1039 1081 D audioserver: logFgsApiBegin: FGS Logger Transaction failed, -129
10-22 11:18:44.737 1831 1902 W AS.PlaybackActivityMon: No piid assigned for invalid/internal port id 232
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_get_output_snd_device: enter: output devices(0x4)
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_get_output_snd_device: exit: snd_device(headphones)
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_get_backend_index:napb: backend port - 1 device - 5
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_and_set_playback_backend_cfg: usecase->stream.out->config.format (0)
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_and_set_playback_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 1 usecase = 1 device (headphones)
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_and_set_playback_backend_cfg: new_snd_devices[0] is 5
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_get_backend_index:napb: backend port - 1 device - 5
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_playback_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 1 usecase = 1 device (headphones)
10-22 11:18:44.740 994 2750 V msm8974_platform: pick_playback_cfg_for_uc:napb: (0) - (deep-buffer-playback)id (0) sr 48000 bw (16) ch (2) device headphones
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_backends_match: snd_device1 = headphones, snd_device2 = headphones
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_backends_match: be_itf1 = SLIMBUS_0_RX, be_itf2 = SLIMBUS_0_RX
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_check_playback_backend_cfg:becf: afe: Codec selected backend: 1 updated bit width: 16 andsample rate: 48000
10-22 11:18:44.740 994 2750 V msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(5) acdb_id(9)
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 9, path = 0, app id = 0x11130, sample rate = 48000, afe_sample_rate = 48000
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_asm_topology
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_adm_topology
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_audtable
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL cal_type[11] acdb_id[9] app_type[69936]
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_audvoltable
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE_SIZE
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_audstrmtable
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_afe_topology
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 9, Topology Id 112fc
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_afe_cal
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE
10-22 11:18:44.740 994 2750 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000009
10-22 11:18:44.740 994 2750 D ACDB-LOADER: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
10-22 11:18:44.740 994 2750 D android.hardware.audio.service: Failed to fetch the lookup information of the device 00000009
10-22 11:18:44.740 994 2750 D ACDB-LOADER: Error: ACDB AFE returned = -19
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL cal_type[16] acdb_id[9]
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 9 path = 0
10-22 11:18:44.740 994 2750 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
10-22 11:18:44.741 994 2750 V msm8974_platform: platform_get_snd_device_backend_index: enter with device 5
10-22 11:18:44.741 994 2750 V msm8974_platform: platform_get_backend_index:napb: backend port - 1 device - 5
10-22 11:18:44.741 994 2750 I audio_hw_utils: Set Audio Stream 12 App Type Cfg: app_type 69936, acdb_dev_id 9, sample_rate 48000, snd_device_be_idx 2
10-22 11:18:44.741 994 2750 D audio_hw_primary: enable_audio_route: usecase(1) apply and update mixer path: low-latency-playback headphones
10-22 11:18:44.741 994 2750 D audio_route: Apply path: low-latency-playback headphones
10-22 11:18:44.754 1831 4971 D CoreBackPreview: Window{ba3a181 u0 PopupWindow:4f63604}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@e060a03, mPriority=0, mIsAnimationCallback=false, mOverrideBehavior=0}
10-22 11:18:44.761 994 2750 D audio_hw_primary: out_write: retry previous failed cal level set
10-22 11:18:44.939 1039 1533 D audioserver: logFgsApiEnd: FGS Logger Transaction failed, -129
10-22 11:18:46.966 1005 1005 I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
10-22 11:18:47.079 1005 1005 I android.hardware.power-service-qti: Power setBoost: 0, duration: 0
10-22 11:18:47.080 23377 23377 D FmService: setSpeakerPhoneOn true
10-22 11:18:47.082 1039 1081 D audioserver: logFgsApiBegin: FGS Logger Transaction failed, -129
10-22 11:18:47.083 1831 4971 W AS.PlaybackActivityMon: No piid assigned for invalid/internal port id 232
10-22 11:18:47.139 1831 2008 I ImeTracker: com.android.fmradio:d76ce350: onRequestHide at ORIGIN_SERVER reason HIDE_SAME_WINDOW_FOCUSED_WITHOUT_EDITOR fromUser false
10-22 11:18:47.140 23377 23377 D InsetsController: hide(ime(), fromIme=false)
10-22 11:18:47.140 23377 23377 I ImeTracker: com.android.fmradio:d76ce350: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN
10-22 11:18:47.239 1039 1533 D audioserver: logFgsApiEnd: FGS Logger Transaction failed, -129
10-22 11:18:47.404 23377 23377 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=false callback=android.view.ViewRootImpl$$ExternalSyntheticLambda13@8b748b3
10-22 11:18:47.404 1831 1902 D CoreBackPreview: Window{ba3a181 u0 PopupWindow:4f63604}: Setting back callback null
10-22 11:18:47.406 23377 23392 D HWUI : endAllActiveAnimators on 0xb40000712d95a570 (MenuPopupWindow$MenuDropDownListView) with handle 0xb40000703d93d1e0
10-22 11:18:50.205 994 1061 D audio_hw_primary: disable_audio_route: usecase(1) reset and update mixer path: low-latency-playback headphones
10-22 11:18:51.541 992 1086 W qti_sensors_hal: processReportInd: lux: 102, ch0: 68, ch1: 115, pData: 9, pOffset: 11
10-22 11:18:51.742 992 1086 W qti_sensors_hal: processReportInd: lux: 143, ch0: 89, ch1: 115, pData: 12, pOffset: 11
10-22 11:18:52.146 992 1086 W qti_sensors_hal: processReportInd: lux: 108, ch0: 66, ch1: 76, pData: 10, pOffset: 11
10-22 11:18:54.110 0 0 I pmi632_charger: mmi_heartbeat_work: PMI Input 500 mA, USBC CL 500 mA, FV 4400 mV, FCC 3000 mA
10-22 11:18:54.110 0 0 I pmi632_charger: mmi_heartbeat_work: Step State = MAX
10-22 11:18:54.110 0 0 W EFFECTIVE: FV = 4400000, CDIS = 0, FCC = 3000000, USBICL = 500000
10-22 11:18:54.119 0 0 W healthd : battery l=85 v=4248 t=21.0 h=2 st=2 c=307007 fc=4982000 cc=7 chg=u
10-22 11:18:54.217 2128 2895 D PowerUI : can't show warning due to - plugged: true status unknown: false