HAL : update set_volume logic in AudioStream.cpp

-When left channel is equal to right, number of volume pair is set to 1
 and payload is being prepared for 1 channel only, this is not correct if
 multilevel gain is applied for different channels with same volume.
-Update logic to check number of channel first, depending on that
 set the number of volume pair and volume value.
-In case of master balance differene volume gain can be applied and also
 same volume levels can be applied to respective channels.
-Considering all the below possible scenarios:
 stream channel is one and left != right
 stream channel is one and left == right
 stream channel is two and left != right
 stream channel is two and left == right

Change-Id: I7a19f701ba02093b8744363b9cc6382d8b0238b7
(cherry picked from commit efc17249dd37935b10d537e4fefba7cd8a9b1e05)
1 file changed