Ok, from your PS2, the optical output goes to your receiver optical input, let say "Opt.1" from the back of your receiver in this case.
From your PS2 audio menu setup, enable the "Bitstream" fom the digital output.
From your receiver, select the optical input (Opt.1) so it correspond to the source connected of your PS2, let say "DVD" in this case. [It's called Selecting the Digital Inputs to the appropriate Sources]. In the audio menu setup of your receiver, set the right digital input (Opt.1) to the appropriate source (DVD).
Then select the DVD input and "Auto" from your receiver. Put a DVD inside your PS2 with a Dolby Digital soundtrack, making sure that you select the appropriate soundtrack from the DVD audio menu. It should work.
Bob