I was having trouble with only getting stereo from my Apple TV into Sonos Beam (sub and 2 Symfonic bookshelf speakers for surround), connected to a Samsung frame (from Dec. 2023). I thought it was a problem with EARC, so I swapped out the Beam for Sonos Arc, connected the sub & surround speakers, and connected through optical.
after switching around with the settings within the appleTV and the Samsung, I was still getting only stereo sound on everything I played into the TV through the apple TV.
Then I tried playing Disney+ directly through the Samsung. Behold! Dolby 5.1 surround!
Then I realized that the only thing playing Dolby Atmos through the AppleTV was AppleTV+ content. Everything else was only playing in Stereo. Shame on you Apple! They better fix this soon.