You won't find patch_realtek.c anywhere in /lib/modules/ because it's already been compiled and installed. You need to download the source code, apply the patches, then compile and install the kernel.
Try downloading the 4.20-rc7 from kernel.org (the patches are already applied to this version), extract it, and then edit /sound/pci/hda/patch_realtek.c
@sojusnik
Yes, you're right, I missed the closing bracket. The correct line to add is:
SND_PCI_ QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_ FIXUP_ASUS_ SPK),
You won't find patch_realtek.c anywhere in /lib/modules/ because it's already been compiled and installed. You need to download the source code, apply the patches, then compile and install the kernel.
Try downloading the 4.20-rc7 from kernel.org (the patches are already applied to this version), extract it, and then edit /sound/ pci/hda/ patch_realtek. c
Look for this line:
SND_PCI_ QUIRK(0x1043, 0x14a1, "ASUS UX533FD", ALC294_ FIXUP_ASUS_ SPK),
And beneath it add:
SND_PCI_ QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_ FIXUP_ASUS_ SPK),
If you then compile and install the kernel, you should have working sound on your UX391UA.