@zazzko
It's unclear from your last comment what you're trying to do as you haven't explained your system very well. First you say this isn't an AV/TV system but only AV/TV systems have HDMI ports, then you've corrected yourself to say this is hooked up to a TV.
In your case your soundbar is getting its main input from, and is being controlled via the TV. Hence a media centre such as Kodi or Plex may be more suited for your playback needs as they have a TV-centric interface and support the CEC protocol which integrates with TVs and AV systems. Moode is more suited for headless operation with Hi-Fi systems and separates.
It seems you're getting confused between a SPDIF interface and a DAC. A DAC takes a digital input and outputs an analogue line signal to go into an amplifier, in the case of modern DACs USB input is the preferred option (or I2S/IIS but that's more specialist) and optical/SPDIF are considered legacy interfaces and do not support bitrates as high as USB/IIS inputs and are more prone to digital jitter.
Your soundbar will have a DAC built in which is how it is able to process digital audio coming from the TV.
The Sony HT-SF150 seems to have HDMI, USB and optical inputs. If you want to hook that to a raspberry PI then you might be able to use the USB input or if you want to use the optical input purchase a digital interface board for your Pi such as a JustBoom Digi or Allo DigiOne, these are not DACs. Your soundbar doesn't seem to have an analogue input that a standalone DAC would connect to.
It's unclear from your last comment what you're trying to do as you haven't explained your system very well. First you say this isn't an AV/TV system but only AV/TV systems have HDMI ports, then you've corrected yourself to say this is hooked up to a TV.
In your case your soundbar is getting its main input from, and is being controlled via the TV. Hence a media centre such as Kodi or Plex may be more suited for your playback needs as they have a TV-centric interface and support the CEC protocol which integrates with TVs and AV systems. Moode is more suited for headless operation with Hi-Fi systems and separates.
It seems you're getting confused between a SPDIF interface and a DAC. A DAC takes a digital input and outputs an analogue line signal to go into an amplifier, in the case of modern DACs USB input is the preferred option (or I2S/IIS but that's more specialist) and optical/SPDIF are considered legacy interfaces and do not support bitrates as high as USB/IIS inputs and are more prone to digital jitter.
Your soundbar will have a DAC built in which is how it is able to process digital audio coming from the TV.
The Sony HT-SF150 seems to have HDMI, USB and optical inputs. If you want to hook that to a raspberry PI then you might be able to use the USB input or if you want to use the optical input purchase a digital interface board for your Pi such as a JustBoom Digi or Allo DigiOne, these are not DACs. Your soundbar doesn't seem to have an analogue input that a standalone DAC would connect to.