Trying to mute an audio amplifier board – working with boards GND but not with boards pin driven LOW

From TPA3118 data sheet

You might want use transistor or mosfet there instead of directly connecting it to the board