Even if your soundbar has an hdmi output it's not for a sub. Sub's don't have hdmi inputs. Most subs don't have a digital input at all, just analog.
ps While probably won't change anything in your case, post up specific make/model of gear you're asking about....