For your reference, here is some information on the Xiaomi Soundbar Pro 2.1 ch has no sound when connected to a TV via a wired connection:
Ensure the soundbar is connected to the TV via an HDMI cable. The TV needs to be connected to the HDMI (ARC) port. Also, go to [All settings] >> [Display & Sound] >> [Audio output], select HDMI Output, and Digital Output (PCM) on the TV.
Make sure the Soundbar is set to HDMI mode. Press the soundbar power button to turn it on. The soundbar defaults to HDMI mode.
Check if the soundbar is muted. You can unmute it by pressing the Mute button.
Adjust the volume to make sure it is not set to level 0.
Note:
If the Soundbar is not in HDMI mode, press the Input Source button on the Soundbar or use the remote control to switch to HDMI mode.