A 3.5mm audio jack is typically used for analog audio signals, while an optical out port uses a digital optical signal to transmit audio data. The optical out port typically requires a digital audio source and may not be compatible with analog audio signals.
To connect a 3.5mm audio jack to an optical output port, you would need to use a device called a Digital-to-Analog Converter (DAC) that can convert the analog audio signal from the 3.5mm jack to a digital signal that can be transmitted through the optical output port. This requires additional equipment and may affect the audio quality.
Alternatively, you could consider using a different audio output port on your device, such as a standard 3.5 mm auxiliary port or a digital coaxial output, which may be more compatible with your 3.5 mm audio jack.