If you had the soundbar attached to the arc input of the tv, and had hdmi cec turned on, you wouldn't need a code for the soundbar, just one the controls the tv volume which in turn controls the soundbar volume. Tv's volume controls the soundbar and the soundbar's volume controls the tv volume with hdmi cec turned on.