[Xiaomi Redmi Note 6 Pro ROMs, Kernels, Recoveries,] RickyGoldsmith:
Thank you for the quick reply. But that did not help.

As much as I would love to use my RN6Pro device and this ROM, I'm afraid I'll have to let go of this device now :(

Maybe time to buy a new RN9Pro :(

But, for the sake of investigation of this issue, what baffles me the most is that I did use it for around 12 hours since yesterday, before it gave up this afternoon.

With my limited debugging so far, all I see that the device isn't detected.

When this device gave up on me around a year ago, my impression was that there was a hardware problem. And given my limited time, I simply chose to buy a new phone. It is just that this weekend's random play with the phone made me discover that the sound was working. Which begs the questions to what must be happening. Either a dying a device or a bad/broken kernel.

My usual experience has been that device functioning is binary, works or does not. OTOH, Linux (And Android) does have bad buggy device drivers too. I am inclined to, and I'd like to, believe that this is the case of a bad buggy driver. But I need more investigation time to conclude that, which I'm afraid I will not have. :(

Now, this one is a driver message, incomplete though

It doesn't point the the backend device, which would mean a bad driver usually. Because a faulty hardware would have given a probe error in standard practice.

void platform_add_backend_name(void *platform, char *mixer_path,
snd_device_t snd_device)
{
struct platform_data *my_data = (struct platform_data *)platform;
if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) {
ALOGE("%s: Invalid snd_device = %d", __func__, snd_device);
return;
}
const char * suffix = backend_tag_table[snd_device];
if (suffix != NULL) {
strcat(mixer_path, " ");
strcat(mixer_path, suffix);
}
}

As I write, I'm downloading the MIUI11 image. I hope that ROM image can, for once and for good, conclude on this hardware. I just wasted my weekend in dealing with this mess.

---------- Post added at 09:25 PM ---------- Previous post was at 08:56 PM ----------

Hmmmm... Lets hope it is a Kernel + Vendor Bits issue, which in theory should be fixed with Xiaomi Stock Images. Just a wishful thinking.

[ 3.724881] pri_i2s_gpio_init:enter.
[ 3.725332] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured
[ 3.732202] calculate_residency: residency < 0 for LPM
[ 3.732210] parse_cpu_levels: idx 1 172
[ 3.732213] parse_cpu_levels: idx 2 1181
[ 3.732217] parse_cpu_levels: idx 2 2009
[ 3.732230] calculate_residency: residency < 0 for LPM
[ 3.732298] parse_cpu_levels: idx 1 191
[ 3.732300] sdm660-asoc-snd soc:sound: ASoC: platform (null) not registered
[ 3.732307] parse_cpu_levels: idx 2 1109
[ 3.732310] parse_cpu_levels: idx 2 2410
[ 3.732316] calculate_residency: residency < 0 for LPM
[ 3.732824] mdss_dp_usbpd_setup: get_usbpd phandle failed (-19)
[ 3.732830] mdss_dp_probe: Error usbpd setup!
[ 3.733406] pmic_analog_codec 800f000.qcom,spmi:qcom,pm660l@3:analog-codec@f000: Adsp is not loaded yet 0
[ 3.733564] msm_sdw_codec 152c1000.msm-sdw-codec: Adsp is not loaded yet 0
[ 3.734611] pri_i2s_gpio_init:enter.
[ 3.735167] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured
[ 3.742388] sdm660-asoc-snd soc:sound: ASoC: platform (null) not registered
[ 3.743033] mdss_dp_usbpd_setup: get_usbpd phandle failed (-19)
[ 3.743039] mdss_dp_probe: Error usbpd setup!
[ 3.743637] pmic_analog_codec 800f000.qcom,spmi:qcom,pm660l@3:analog-codec@f000: Adsp is not loaded yet 0
[ 3.743778] msm_sdw_codec 152c1000.msm-sdw-codec: Adsp is not loaded yet 0
[ 3.743959] ipa-wan ipa_wwan_init:3286 Registering for q6_cleanup_cb
[ 3.743971] ipa register_ipa_platform_cb:2210 In register_ipa_platform_cb
[ 3.743977] ipa register_ipa_platform_cb:2213 reg q6_cleanup_cb
[ 3.744482] rmnet_ipa started initialization

[ 3.745107] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured
[ 3.746510] ipa ipa_sps_irq_control_all:963 EP (5) not allocated.
[ 3.746520] ipa ipa2_uc_state_check:301 uC is not loaded
[ 3.747403] rmnet_ipa completed initialization
[ 3.748410] msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
[ 3.751886] sdm660-asoc-snd soc:sound: ASoC: platform (null) not registered
[ 3.752470] mdss_dp_usbpd_setup: get_usbpd phandle failed (-19)
[ 3.752476] mdss_dp_probe: Error usbpd setup!
[ 3.753017] pmic_analog_codec 800f000.qcom,spmi:qcom,pm660l@3:analog-codec@f000: Adsp is not loaded yet 0
[ 3.753144] msm_sdw_codec 152c1000.msm-sdw-codec: Adsp is not loaded yet 0
[ 3.754115] pri_i2s_gpio_init:enter.
[ 3.754501] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured
[ 3.760889] gfx_mem_acc_corner: disabling
[ 3.760901] apc0_pwrcl_corner: disabling
[ 3.760905] apc1_perfcl_corner: disabling
[ 3.760910] cam_avdd_gpio_regulator: disabling
[ 3.760914] cam_rear_dvdd_gpio_regulator: disabling
[ 3.760918] cam_rear_avdd_gpio_regulator: disabling
[ 3.760925] gdsc_ufs: disabling
[ 3.760941] gdsc_venus: disabling
[ 3.760971] regulator_proxy_consumer_remove_all: removing regulator proxy consumer requests
[ 3.761239] sdm660-asoc-snd soc:sound: ASoC: platform (null) not registered
[ 3.762966] ALSA device list:
[ 3.762972] No soundcards found.
[ 3.763047] Warning: unable to open an initial console.

[ 5.971774] init: Parsing directory /vendor/etc/init...
[ 5.971994] init: Parsing file /vendor/etc/init/android.hardware.audio@2.0-service.rc...
[ 5.973577] init: /vendor/etc/init/android.hardware.audio@2.0-service.rc: 13: Interface 'android.hardware.audio@4.0::IDevicesFactory/default' redefined in vendor.audio-hal-2-0 but is already defined by vendor.audio-hal-2-0
[ 5.973689] init: /vendor/etc/init/android.hardware.audio@2.0-service.rc: 14: Interface 'android.hardware.audio@2.0::IDevicesFactory/default' redefined in vendor.audio-hal-2-0 but is already defined by vendor.audio-hal-2-0
[ 5.973713] init: /vendor/etc/init/android.hardware.audio@2.0-service.rc: 1: ignored duplicate definition of service 'vendor.audio-hal-2-0'
[ 5.973730] init: Parsing file /vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660.rc...
[ 5.975182] init: Parsing file /vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc...

[ 13.060063] pmic_analog_codec 800f000.qcom,spmi:qcom,pm660l@3:analog-codec@f000: Adsp is not loaded yet 2
[ 13.062978] msm_cdc_pinctrl_get_gpiodata: device node is null
[ 13.064768] pri_i2s_gpio_init:enter.
[ 13.065514] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured
[ 13.070370] apexd: Loopback device created: /dev/block/loop6
[ 13.070446] apexd: AVB footer verification successful.
[ 13.074680] apexd: /system/apex/com.android.tzdata.apex: public key matches.
[ 13.074796] apexd: Waiting for /dev/block/loop6 to be created
[ 13.074868] sdm660-asoc-snd soc:sound: ASoC: CODEC DAI msm_dig_cdc_dai_rx1 not registered
[ 13.075465] mdss_dp_usbpd_setup: get_usbpd phandle failed (-19)
[ 13.075471] mdss_dp_probe: Error usbpd setup!
[ 13.077753] pri_i2s_gpio_init:enter.
[ 13.078133] sdm660-asoc-snd soc:sound: msm_internal_init: default codec configured

[ 13.094645] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for MM_UL28
[ 13.094659] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route MultiMedia28 Mixer -> direct -> MM_UL28
[ 13.094685] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for MM_UL29
[ 13.094691] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route MultiMedia29 Mixer -> direct -> MM_UL29
[ 13.097364] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL28 MUX
[ 13.097370] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route PRI_MI2S_TX -> PRI_MI2S_TX -> AUDIO_REF_EC_UL28 MUX
[ 13.097393] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL28 MUX
[ 13.097399] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route SEC_MI2S_TX -> SEC_MI2S_TX -> AUDIO_REF_EC_UL28 MUX
[ 13.097421] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL28 MUX
[ 13.097426] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route TERT_MI2S_TX -> TERT_MI2S_TX -> AUDIO_REF_EC_UL28 MUX
[ 13.097443] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL28 MUX
[ 13.097449] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route QUAT_MI2S_TX -> QUAT_MI2S_TX -> AUDIO_REF_EC_UL28 MUX
[ 13.097465] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL29 MUX
[ 13.097471] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route PRI_MI2S_TX -> PRI_MI2S_TX -> AUDIO_REF_EC_UL29 MUX
[ 13.097494] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL29 MUX
[ 13.097500] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route SEC_MI2S_TX -> SEC_MI2S_TX -> AUDIO_REF_EC_UL29 MUX
[ 13.097521] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL29 MUX
[ 13.097526] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route TERT_MI2S_TX -> TERT_MI2S_TX -> AUDIO_REF_EC_UL29 MUX
[ 13.097542] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no sink widget found for AUDIO_REF_EC_UL29 MUX
[ 13.097548] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route QUAT_MI2S_TX -> QUAT_MI2S_TX -> AUDIO_REF_EC_UL29 MUX
[ 13.097595] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no source widget found for AUDIO_REF_EC_UL28 MUX
[ 13.097601] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route AUDIO_REF_EC_UL28 MUX -> direct -> MM_UL28
[ 13.097626] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: no source widget found for AUDIO_REF_EC_UL29 MUX
[ 13.097632] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: Failed to add route AUDIO_REF_EC_UL29 MUX -> direct -> MM_UL29
[ 13.108632] msm_digital_codec msm_digital_codec: ASoC: Failed to create AIF2 Capture debugfs file
[ 13.151960] sdm660-asoc-snd soc:sound: control 2:0:0:MultiMedia5 Mixer QUAT_MI2S_TX:0 is already present
[ 13.151974] msm-pcm-routing soc:qcom,msm-pcm-routing: ASoC: failed to add widget MultiMedia5 Mixer dapm kcontrol MultiMedia5 Mixer QUAT_MI2S_TX: -16