@nabeejetbase It would be sure, if your TV could indicate the incoming signal is HDMI or DVI.
I am saying this, because the CPi would send out PCM audio, instead of any CODEC ES format audio such as Dolby,AAC… . It is not normal to have issues on PCM Audio, since it is the most simple audio format in HDMI.
All HDMI source device’s first step is to read the EDID from the SINK(TV), and try to send a signal that is capable of the SINK device.(“EDID” : Extended Display Identification Data).
If the source device has a problem of parsing/or interpretation of the EDID, it would just think the SINK is not a HDMI capable device or may think that it is connected through a HDMI/DVI dongle, which eventually send no Audio(DVI : no audio, HDMI : audio + video).
Almost all HDMI supported Sink device has the capability to proceed DVI signals, as the EDID does not have much information to avoid such signals. It however has the maximum TMDS clock frequency limitation, but I doubt that this is not the case(your mentioning about your TV does not support DVI modes in HDMI). Just for my curiosity, may i ask what is your TV model?