-517 is -EPROBE_DEFER (I think it's from mca_pcm_new()).
This doesn't seem to be a problem in itself. Unfortunately, tas2770_codec_remove() doesn't clean up the sysfs files it creates in its probe(). The secondary probe then fails when it tries to create them again.
With the below patch applied, the driver works and I get sound:
I'm not getting sound on my Mac Mini 2020 and the following splat in dmesg:
There appear to be two probes of the macaudio driver, where the first one fails and defers. A few lines up:
-517 is -EPROBE_DEFER (I think it's from mca_pcm_new()).
This doesn't seem to be a problem in itself. Unfortunately, tas2770_codec_remove() doesn't clean up the sysfs files it creates in its probe(). The secondary probe then fails when it tries to create them again.
With the below patch applied, the driver works and I get sound: