device-manager: Add Dbus interfaces related to sample rate of usb device 09/178909/3
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 11 May 2018 01:44:57 +0000 (10:44 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 1 Jun 2018 08:34:44 +0000 (17:34 +0900)
commit07ef870c6e343e151dfd3df2286bd163206bf275
treed8defe0e419aae5f1eca07ba863348984bc877f1
parent1990c1493aa872efa75b8f86d1ad111e9573ab5a
device-manager: Add Dbus interfaces related to sample rate of usb device

Methods are added as below
 - GetSupportedSampleRates
    : arg#1 (in)  int32 for device_id
      arg#2 (out) uint32 array for sample_rates
 - SetSampleRate
    : arg#1 (in)  int32 for device_id
      arg#2 (in)  uint32 for sample_rate
 - GetSampleRate
    : arg#1 (in)  int32 for device_id
      arg#2 (out) uint32 for sample_rate

1. Those APIs are only for usb output device.
2. Here's description about setting sample rate to '0'.
 If sample rate is set to '0', it will work to use stream's original sample
 rate if the usb device supports the sample rate. In this case, if the
 stream's sample rate is lower than default and alternate sample rate of
 pulseaudio configuration, it will use the default or the alternate sample
 rate. When mixing case happens in the same usb device, the sample rate of
 the prior stream will be maintained.

[Version] 11.1.7
[Issue Type] New feature

Change-Id: I7f82d5aefbc84e0641fc05dab86bc89def897c66
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/device-manager.c