[Google Pixel Questions & Answers] GianlucaVGC:
Hi, this is my first thread on XDA but I've went crazy with this thing. I had a Pixel sailfish and I wanted to install on that Android 11, I tried GSI by Google but that didn't work for some reasons. I then used Lineage 18, that worked but was pretty instable, so I returned to Android 10 Stock with the Factory Image of Sailfish. From this event (I don't know this precisely, but I think so), my microphone (and the speaker, but only in calls) randomly stops working. After a reboot, most of the times it works again, sometimes it doesn't work (and the speaker doesn't work too, also for media). I have to do multiple reboot to make everything work normally, but after some time it stops working again.

I've also noticed that sometimes, when the microphone stops working and I have my earphones plugged in, they make a strange, loud sound.

I've tried everything. Changed multiple times rom (Stock, Resurrection Remix, Pixel Experience, EvolutionX), used a custom kernel (ElementalX), flashed Magisk and installed a Magisk Module that should fix microphone issues, modified build.prop with some things found in some forum threads (but no one had the same problem as mine), formatted data with TWRP and tried again all the above. Nothing.

My logcat is almost literally a spam of

01-03 19:51:04.777 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 0
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 1
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 2
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 3
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 4
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 5
01-03 19:51:04.778 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 6
01-03 19:51:04.779 14010 14017 E audio_hw_utils: audio_extn_utils_get_snd_card_num: Unable to open the mixer card: 7
01-03 19:51:04.984 2562 2562 E HwDetectorWithState: a: 0
01-03 19:51:04.984 899 1758 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
01-03 19:51:04.984 899 1758 W AudioSystem: AudioPolicyService not published, waiting...
01-03 19:51:04.985 2562 2562 E A : #cleanUpAudioRecordAndPfds: Cleaning up audio record and Pfds
01-03 19:51:04.985 2562 2562 E A : #cleanUpAudioRecordAndPfds: Cleaning up audio record and Pfds
01-03 19:51:04.990 1387 1520 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
01-03 19:51:04.990 1387 1520 W AudioSystem: AudioPolicyService not published, waiting...
01-03 19:51:04.991 12625 12721 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
01-03 19:51:04.991 12625 12721 W AudioSystem: AudioPolicyService not published, waiting...
01-03 19:51:04.997 13306 13444 W ServiceManager: Service media.audio_policy didn't start. Returning NULL
01-03 19:51:04.998 13306 13444 W AudioSystem: AudioPolicyService not published, waiting...
01-03 19:51:05.123 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 0
01-03 19:51:05.123 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 1
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 2
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 3
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 4
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 5
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 6
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: Unable to open the mixer card 7
01-03 19:51:05.124 14010 14010 E sound_trigger_platform: platform_stdev_init: primary sound card not found
01-03 19:51:05.124 14010 14010 E sound_trigger_hw: stdev_open: ERROR. platform init failed
01-03 19:51:05.124 14010 14010 D sound_trigger_hw: stdev_open: Exit status -19
01-03 19:51:05.124 14010 14010 E SoundTriggerHw: couldn't open sound trigger hw device in sound_trigger.primary (No such device)
01-03 19:51:05.130 14010 14010 I ServiceManagement: Registered android.hardware.soundtrigger@2.2::ISoundTriggerHw/default (start delay of 5144ms)
01-03 19:51:05.131 14010 14010 I audiohalservice: Registration complete for android.hardware.soundtrigger@2.2::ISoundTriggerHw/default.

And some other things pretty similar to these

If someone knows what is happening to my device, please help me!

(also, sorry for mistakes but I'm not a native english speaker)