I have tried the method above by:
changing the codec layout ID in "NVRAM > boot-args"
adding "layout-id > (hex number) > data" under DeviceProperties > Pciroot(0x0)/Pci(0x1f,0x3)
saving, shutting down, and turning it back on
However, the result remains the same: the codec/sound is still not detected.
Picture NVRAM
Picture Layout ALC256