sound_manager_private: Fix policy to set echo cancellation reference device 70/275270/2
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 19 May 2022 06:11:33 +0000 (15:11 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 19 May 2022 07:42:06 +0000 (16:42 +0900)
commitcd4ed29c766fb83e3194d5cb70bff31867ce2451
tree65d1f9fe89fd7b39c86a2b7f4f9d788c5eb5b931
parent2bf3adf1e4d8befb5b1067c9f49c112dbd19e08f
sound_manager_private: Fix policy to set echo cancellation reference device

Previously, to set the reference device, it has to be one of avail-out-
devices of the stream info. But considering that this stream info handle
is for a capture API(for example, audio-io, recorder and so on), this
restriction should be removed. Rather, the reference device could be any
of playback devices. It is fixed now.

It is also added to return policy error when the stream info handle is
only for the playback stream.

[Version] 0.6.48
[Issue Type] Bug fix

Change-Id: I3c160f679731865b5d1c2e6a711b1956b8e44146
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
src/sound_manager_private.c