The specifications page for your ASRock 650E PG-ITX WIFI motherboard says it uses the Realtek ALC 1220 audio codec, not the ALC897 codec.
You need to use one of the audio layout-id's for the ALC1220 to get the Line-Out audio and Microphone port working. The screenshot below shows all the layout ID's that have been set to work with the ALC1220 codec.
![Screenshot 2024-04-26 at 19.07.53.png Screenshot 2024-04-26 at 19.07.53.png](https://forum.amd-osx.com/data/attachments/14/14263-425403d7d564ac2e7d895e3925e36b34.jpg?hash=QlQD19VkrC)
You will need to try each layout-id in your config.plist to see which of these work best for your system. Multiple ID's may work, you need to work out which works the best for your end use.
The easiest way to do this is to use the
alcid=xx boot argument in your config.plist. Where xx represents one of the ID's listed above, i.e. alcid=1 or alcid=2 ... alcid=100.
If you have a DeviceProperties entry in your config.plist for the Audio device, remove it, as the alcid=xx boot argument takes precedence over the DeviceProperties entry.
After adding the alcid=1 or 2 or 3 ... etc. boot argument, you need to reboot your system for the new layout-id to take effect.
Before booting in to macOS with the new ID, you need to use the ResetNvram driver from the OC boot screen, so the previous non-working layout-id is removed from NVRAM.
When you get one that works, i.e. enables the line-out and microphone devices you should see them in the following locations:
![Screenshot 2024-04-26 at 19.05.39.png Screenshot 2024-04-26 at 19.05.39.png](https://forum.amd-osx.com/data/attachments/14/14261-c618c0434834626fdb38bf50793d0c73.jpg?hash=xhjAQ0g0Ym)
System Information > Audio
![Screenshot 2024-04-26 at 19.06.16.png Screenshot 2024-04-26 at 19.06.16.png](https://forum.amd-osx.com/data/attachments/14/14262-906ea93a615542910c0c2e266c95c7dd.jpg?hash=kG6pOmFVQp)
System Settings > Sound > Output
![Screenshot 2024-04-26 at 19.20.03.png Screenshot 2024-04-26 at 19.20.03.png](https://forum.amd-osx.com/data/attachments/14/14267-6ec5748b86a84f20c5966c4c216f102d.jpg?hash=bsV0i4aoTy)
Hackintool > Sound tab
Best of luck with your testing.