Make sure you have the optical output turned on in the TV menu. You may also have to turn the TV speakers off.
Then check the owners manual of the HTS. On many AVRs you have to assign the optical connection (for example optical 2) to an input name to get it working.