If your aging TV lacks HDMI, the next best thing would be an optical (or Toslink) audio port, which has a squarish opening ...
If you’re looking to connect a Raspberry Pi to the optical port of your AV system ... chip from Cirrus Logic to go from the Pi’s I 2 S audio output to S/PDIF. From there the signal goes ...