twl6040 : L15 creates 6 extra devices with (null) names that make the driver lock up when accessed.
This also locks up pulseaudio, and the mate (and probably other WM too) settings daemon when it probes for soundcards. Currently working around it by forcing pulseaudio to only use the first L15 device, sound works fine after that.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Bluetooth [Bluetooth], device 0: 40122000.mcbsp-W2CBW003 W2CBW003-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 0: TWL6040 twl6040-legacy-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 1: (null) (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 3: (null) (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 4: (null) (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 5: (null) (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 6: (null) (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: L15 [Letux Cortex 15], device 7: (null) twl6040-legacy-7 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Tuner [Tuner], device 0: 40124000.mcbsp-W2CBW003 W2CBW003-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 4: Telephony [Telephony], device 0: 40126000.mcbsp-gtm601 gtm601-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
[ 8.830048] omap-abe-twl6040 sound: ASoC: unknown pin AFML
[ 8.830055] omap-abe-twl6040 sound: ASoC: unknown pin AFMR
[ 8.830716] omap-abe-twl6040 sound: twl6040-legacy <-> 40132000.mcpdm mapping ok
[ 8.830805] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> MultiMedia1 mapping ok
[ 8.830862] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> MultiMedia2 mapping ok
[ 8.830939] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> Voice mapping ok
[ 8.831009] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> Tones mapping ok
[ 8.831081] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> MODEM mapping ok
[ 8.831138] omap-abe-twl6040 sound: snd-soc-dummy-dai <-> MultiMedia1 LP mapping ok
[ 8.831197] omap-abe-twl6040 sound: twl6040-legacy <-> 40132000.mcpdm mapping ok
[ 8.831242] omap-abe-twl6040 sound: Connecting non-supply widget to supply widget is not supported (Headset Mic -> Headset Mic Bias)
[ 8.831246] omap-abe-twl6040 sound: ASoC: no dapm match for Headset Mic --> (null) --> Headset Mic Bias
[ 8.831250] omap-abe-twl6040 sound: ASoC: Failed to add route Headset Mic -> direct -> Headset Mic Bias
[ 8.831261] omap-abe-twl6040 sound: Connecting non-supply widget to supply widget is not supported (Main Handset Mic -> Main Mic Bias)
[ 8.831265] omap-abe-twl6040 sound: ASoC: no dapm match for Main Handset Mic --> (null) --> Main Mic Bias
[ 8.831269] omap-abe-twl6040 sound: ASoC: Failed to add route Main Handset Mic -> direct -> Main Mic Bias
[ 8.831279] omap-abe-twl6040 sound: Connecting non-supply widget to supply widget is not supported (Sub Handset Mic -> Main Mic Bias)
[ 8.831283] omap-abe-twl6040 sound: ASoC: no dapm match for Sub Handset Mic --> (null) --> Main Mic Bias
[ 8.831287] omap-abe-twl6040 sound: ASoC: Failed to add route Sub Handset Mic -> direct -> Main Mic Bias
[ 8.831297] omap-abe-twl6040 sound: ASoC: no source widget found for PDM_DL1
[ 8.831301] omap-abe-twl6040 sound: ASoC: Failed to add route PDM_DL1 -> direct -> Headset Playback
[ 8.831308] omap-abe-twl6040 sound: ASoC: no source widget found for PDM_DL2
[ 8.831312] omap-abe-twl6040 sound: ASoC: Failed to add route PDM_DL2 -> direct -> Handsfree Playback
[ 8.831318] omap-abe-twl6040 sound: ASoC: no source widget found for Analog Capture
[ 8.831322] omap-abe-twl6040 sound: ASoC: Failed to add route Analog Capture -> direct -> PDM_UL1
[ 8.831327] omap-abe-twl6040 sound: ASoC: no source widget found for BT_VX_DL
[ 8.831331] omap-abe-twl6040 sound: ASoC: Failed to add route BT_VX_DL -> direct -> omap-mcbsp.1 Playback
[ 8.831336] omap-abe-twl6040 sound: ASoC: no source widget found for omap-mcbsp.1 Capture
[ 8.831340] omap-abe-twl6040 sound: ASoC: Failed to add route omap-mcbsp.1 Capture -> direct -> BT_VX_UL
[ 8.831346] omap-abe-twl6040 sound: ASoC: no source widget found for MM_EXT_DL
[ 8.831350] omap-abe-twl6040 sound: ASoC: Failed to add route MM_EXT_DL -> direct -> omap-mcbsp.2 Playback
[ 8.831356] omap-abe-twl6040 sound: ASoC: no source widget found for omap-mcbsp.2 Capture
[ 8.831360] omap-abe-twl6040 sound: ASoC: Failed to add route omap-mcbsp.2 Capture -> direct -> MM_EXT_UL
During boot this also happens, probably related:
[ 8.616884] ------------[ cut here ]------------
[ 8.616906] WARNING: CPU: 1 PID: 1371 at drivers/base/devres.c:899 snd_soc_card_new_dai_links+0x5c/0x94 [snd_soc_omap_abe_twl6040]
[ 8.616910] Modules linked in: snd_soc_omap_abe_twl6040(+) snd_soc_simple_card(+) snd_soc_simple_card_utils snd_soc_twl6040 snd_soc_gtm601 leds_gpio wwan_on_off snd_soc_w2cbw003_bt snd_soc_omap_hdmi_audio wlcore_sdio hci_uart snd_soc_ts3a227e btbcm leds_is31fl319x crtouch_mt bq2429x_charger bmp280_spi bq27xxx_battery_i2c ina2xx bq27xxx_battery twl6040_vibra palmas_gpadc bluetooth usb3503 ecdh_generic bmg160_i2c bmc150_magn_i2c bmc150_accel_i2c bmc150_accel_core bmc150_magn bmg160_core bmp280_i2c industrialio_triggered_buffer kfifo_buf bno055 bmp280 snd_soc_omap_mcpdm snd_soc_omap_aess snd_soc_omap_mcbsp snd_soc_sdma sunrpc ip_tables x_tables ipv6 autofs4 omapdrm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm drm_panel_orientation_quirks panel_boe_w677l encoder_tpd12s015 pwm_omap_dmtimer
[ 8.617052] connector_hdmi pwm_bl omapdss omapdss_base cec ehci_omap dwc3_omap tsc2007 industrialio gpio_twl6040 palmas_pwrbutton tca8418_keypad as5013
[ 8.617092] CPU: 1 PID: 1371 Comm: systemd-udevd Not tainted 4.19.60-letux-lpae-pyra-bat+ #3
[ 8.617096] Hardware name: Generic OMAP5 (Flattened Device Tree)
[ 8.617116] [<c02111c0>] (unwind_backtrace) from [<c020c37c>] (show_stack+0x10/0x14)
[ 8.617124] [<c020c37c>] (show_stack) from [<c08ef2ac>] (dump_stack+0x7c/0x98)
[ 8.617134] [<c08ef2ac>] (dump_stack) from [<c022ec74>] (__warn+0xdc/0xfc)
[ 8.617140] [<c022ec74>] (__warn) from [<c022eda4>] (warn_slowpath_null+0x38/0x44)
[ 8.617151] [<c022eda4>] (warn_slowpath_null) from [<bf50b458>] (snd_soc_card_new_dai_links+0x5c/0x94 [snd_soc_omap_abe_twl6040])
[ 8.617193] [<bf50b458>] (snd_soc_card_new_dai_links [snd_soc_omap_abe_twl6040]) from [<bf50b8e8>] (omap_abe_probe+0x458/0x5f8 [snd_soc_omap_abe_twl6040])
[ 8.617206] [<bf50b8e8>] (omap_abe_probe [snd_soc_omap_abe_twl6040]) from [<c064151c>] (platform_drv_probe+0x48/0x94)
[ 8.617214] [<c064151c>] (platform_drv_probe) from [<c063f428>] (really_probe+0x21c/0x3a8)
[ 8.617220] [<c063f428>] (really_probe) from [<c063f8c0>] (driver_probe_device+0x178/0x19c)
[ 8.617228] [<c063f8c0>] (driver_probe_device) from [<c063f974>] (__driver_attach+0x90/0x110)
[ 8.617235] [<c063f974>] (__driver_attach) from [<c063d7d0>] (bus_for_each_dev+0x64/0xa0)
[ 8.617243] [<c063d7d0>] (bus_for_each_dev) from [<c063e888>] (bus_add_driver+0x1b0/0x228)
[ 8.617250] [<c063e888>] (bus_add_driver) from [<c064065c>] (driver_register+0xb4/0xf8)
[ 8.617259] [<c064065c>] (driver_register) from [<bf511080>] (omap_abe_init+0x80/0x1000 [snd_soc_omap_abe_twl6040])
[ 8.617274] [<bf511080>] (omap_abe_init [snd_soc_omap_abe_twl6040]) from [<c0202d14>] (do_one_initcall+0x40/0x25c)
[ 8.617283] [<c0202d14>] (do_one_initcall) from [<c02ab2a4>] (do_init_module+0x58/0x1c8)
[ 8.617291] [<c02ab2a4>] (do_init_module) from [<c02aa138>] (load_module+0x1c84/0x2180)
[ 8.617297] [<c02aa138>] (load_module) from [<c02aa848>] (sys_finit_module+0x98/0xdc)
[ 8.617303] [<c02aa848>] (sys_finit_module) from [<c02011c8>] (__sys_trace_return+0x0/0x10)
[ 8.617307] Exception stack(0xe979bfa8 to 0xe979bff0)
[ 8.617312] bfa0: 00000000 004483cc 0000000f 0045c8b8 00000000 be8afa04
[ 8.617317] bfc0: 00000000 004483cc 00000000 0000017b 00020000 00000008 0045c8b8 00459f38
[ 8.617321] bfe0: be8af8e8 be8af8d8 b6e86aeb b6d971c2
[ 8.617325] ---[ end trace 0842a3967b8ce551 ]---
Edited by aTc