audio: fix media volume issues.
Fixed 2 issues with media volume:
1 - since we use mm port for music and tones port for other use cases
the digital volume should be applied to both "DL2 Tones Playback Volume"
and "DL2 Media Playback Volume".
2 - the total gain applied to audio originating from the AP is the
combination of digital gain in ABE and analog gain in codec. Some use cases
like telephony have a higher priority than media and apply a different (higher)
analog gain. As this analog gain is common to all sources, digital media gain
should be adjusted accordingly to avoid volume bursts while in call and playing
music. This is particularly important in speaker phone mode.
Change-Id: I90200282edca7098603edca2d56821290988cb20
1 file changed