audio: fix audio switching
- Removes samplerate hack which fixed input but exposed requirement
for output downsampling in the event of an core layer samplerate
reduction. The audio session instance allows bluetooth after the
daemon initializes, allowing the input samplerate to be correctly
fetched.
- Sets the audio device to speakerphone or headset at app init and
when a call is terminated so the ringtone can be heard.
Change-Id: I99ebaca55dfd7295801626b8fa4f64ea24a5abb8
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
4 files changed