controlling sony sound bar with direct tv remote - DirecTV

i'm trying to set up my direct tv remote (rc73) to control sony soundbar on/off and volume. when i do what the website says to do i get to the "program remote" choice but the only device available to program is the tv. how does the soundbar need to be connected for the genie to see it? right now it is connected only to the tv by optical cable. do i need to connect hdmi from soundbar to tv?

This question, "controlling sony sound bar with direct tv remote," is about DirecTV channels, programming, equipment, and sports.