Bug 197135

Summary: Thinkpad 8 realtek ASoC no sound
Product: Drivers Reporter: freemancrowbar100500
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.13.3 Subsystem:
Regression: No Bisected commit-id:
Attachments: Full dmesg
sound modules loaded
Kernel config
alsa-info report
DSDT
New dmesg

Description freemancrowbar100500 2017-10-05 11:26:21 UTC
Created attachment 258723 [details]
Full dmesg

Hi.

The ship used is RT5640 (ACPI ID is 10EC5640).

dmesg shows multiple attempts to probe the hardware

[ 1180.449211] bytcr_rt5640 bytcr_rt5640: quirk DMIC1_MAP enabled
[ 1180.449221] bytcr_rt5640 bytcr_rt5640: quirk DMIC enabled
[ 1180.449230] bytcr_rt5640 bytcr_rt5640: quirk MCLK_EN enabled
[ 1180.449287] bytcr_rt5640 bytcr_rt5640: ASoC: CODEC DAI rt5640-aif1 not registered
[ 1180.449303] bytcr_rt5640 bytcr_rt5640: devm_snd_soc_register_card failed -517

I've tried enabling quirks for ssp0 aif1/aif2 to no avail

[ 2640.774310] bytcr_rt5640 bytcr_rt5640: Overriding quirk 0x410000 => 0x200000
[ 2640.774317] bytcr_rt5640 bytcr_rt5640: quirk DMIC1_MAP enabled
[ 2640.774322] bytcr_rt5640 bytcr_rt5640: quirk SSP0_AIF2 enabled
[ 2640.774349] bytcr_rt5640 bytcr_rt5640: ASoC: CODEC DAI rt5640-aif2 not registered
[ 2640.774356] bytcr_rt5640 bytcr_rt5640: devm_snd_soc_register_card failed -517
[ 2675.455574] bytcr_rt5640 bytcr_rt5640: Overriding quirk 0x410000 => 0x100000
[ 2675.455581] bytcr_rt5640 bytcr_rt5640: quirk DMIC1_MAP enabled
[ 2675.455586] bytcr_rt5640 bytcr_rt5640: quirk SSP0_AIF1 enabled
[ 2675.455613] bytcr_rt5640 bytcr_rt5640: ASoC: CODEC DAI rt5640-aif1 not registered
[ 2675.455621] bytcr_rt5640 bytcr_rt5640: devm_snd_soc_register_card failed -517
Comment 1 freemancrowbar100500 2017-10-05 11:27:34 UTC
Created attachment 258725 [details]
sound modules loaded
Comment 2 freemancrowbar100500 2017-10-05 11:28:04 UTC
Created attachment 258727 [details]
Kernel config
Comment 3 freemancrowbar100500 2017-10-05 11:28:48 UTC
Created attachment 258729 [details]
alsa-info report
Comment 4 freemancrowbar100500 2017-10-05 11:29:40 UTC
Created attachment 258731 [details]
DSDT
Comment 5 freemancrowbar100500 2017-10-23 14:21:12 UTC
Based on this bug thread https://bugzilla.kernel.org/show_bug.cgi?id=96691, I've hacked my local version of the ASoC driver to load rt5672. While mapping is ok and the new soundcard does appear, I still don't get any sound and dmesg shows   Audio Port: ASoC: no backend DAIs enabled for Audio Port while trying to play anything. Attaching new dmesg
Comment 6 freemancrowbar100500 2017-10-23 14:22:13 UTC
Created attachment 260341 [details]
New dmesg
Comment 7 freemancrowbar100500 2017-11-13 11:00:35 UTC

*** This bug has been marked as a duplicate of bug 96691 ***