Yes I can get sound from other audio sources.
I don't know what's wrong with the hdmi setting in my computer because it's two computers both having the same problems.
They can both output directly to TVs using hdmi just not to the receiver.
In that case I know what your problem is. This is common with computers. Your computers do not have HDCP repeater architecture, only single handshake. An end device like a TV is only required to make an initial handshake. On the other hand a device like a receiver, that receives and outputs HDMI has to have repeater architecture in the peripheral devices and the receiver inputs.
So an HDMI device does not have repeater architecture will work with a TV but not a receiver.
You must have a certified HDCP sound card that supports repeated handshakes over HDMI.
I use an HTPC I built that uses an Assus board that supports an Intel Quad 4 integrated processor. So processing, audio and video are handled in the same chip. It is HDCP certified. HDCP certification is expensive and a lot of computers and cards are not HDCP certified. Non certified devices create a myriad of problems with HDMI.
Do make sure you have HDMI audio turned on at the HDMI ports you are using on your receiver for your computer. If other devices are like a BD player are working correctly through that port then you need different computers.
If your TV and receiver support an audio return channel over HDMI then that might do the trick for you. However I suspect the HDCP police will still rain on your parade.
If you have no ARC available, or it does not solve the problem, then you will have to run the audio over digital coax or TOSLINK optical. You have no other options.