audio: fix SCO issues

SCO pcm streams must be active only when either playback or capture
is active on a SCO device. As the output device is not always reset
when a stream stops, the SCO pcm streams would remain active until
a new device selection is received.

Also manage SCO pcm streams when capture only is active. Previous
implementation was only starting SCO pcm streams if the playback
device was SCO.

Bug: 8634536
Change-Id: Icf65583f901d63cf1b469f4b03c9ffc84eefc41f
1 file changed