Sorry dude,
I haven't had chance to checkout any of the Mojave beta's yet so cant really comment on Mojave specific support. however I do know that Apple are dropping support for some HDA layout-id's such as 3,13 & 28 ... maybe some others.
The AppleALC devs are in the process of re-writing AppleALC to dynamically re-map un-supported layout-id's to supported ones. Versions 1.2.8 and 1.3.0 of AppleALC are works in progress ... there is a new release planned for this week so maybe wait a day or so and try the next AppleALC release.
Are you sure layout-id 2 is ok to use ? ... from the testing i've done with AppleALC versions 1.2.8 and 1.3.0 they seem to favour re-mapping un supported layouts to layout-id 7 or 12.
Sorry I cant be of more help, you could try posting to the
official AppleALC support thread, see the 1st post for the debug utility and problem report format .. probably worth doing regardless to ensure that ALC235 is fully supported in future versions of AppleALC.
Good Luck
Cheers
Jay