diff options
author | 2019-05-13 14:26:49 +0200 | |
---|---|---|
committer | 2019-05-14 15:11:31 +0200 | |
commit | d47f47e7a8dd685c44506e3b37e11b017744261f (patch) | |
tree | 631ce3c7175c52026cf1d9f6ede6db847c2b7380 /plugins/lib/bluealsa/hal-bluealsa-transports.c | |
parent | 2d4da5da14a328fa04ebddad33750c033523c383 (diff) | |
parent | 33fb9656b6d72f32ddf0d04db5c3edab57faa308 (diff) |
Merge branch 'sandbox/tbultel/spec-2387' into guppyguppy_7.0.4guppy_7.0.3guppy_7.0.2guppy/7.0.4guppy/7.0.3guppy/7.0.27.0.47.0.37.0.2guppy
Bug AGL: SPEC-2387
This cherry-picks the following commits from master:
* 33fb965 .gitignore: added wildcard for build directory
* 43efc33 bluealsa plugin: do not do anything when the HAL is not ready
* db4eeea bluealsa plugin: get the sampling rate from the transport
Change-Id: I35c46c3adbd39fcabc6b616ad3c7456d088f0028
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/lib/bluealsa/hal-bluealsa-transports.c')
-rw-r--r-- | plugins/lib/bluealsa/hal-bluealsa-transports.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/lib/bluealsa/hal-bluealsa-transports.c b/plugins/lib/bluealsa/hal-bluealsa-transports.c index 590ab5d..b528212 100644 --- a/plugins/lib/bluealsa/hal-bluealsa-transports.c +++ b/plugins/lib/bluealsa/hal-bluealsa-transports.c @@ -147,9 +147,11 @@ char * halBlueAlsaTransportAsString(char * buff, size_t len, const struct ba_msg char addr[18]; ba2str(&transport->addr, addr); - snprintf(buff, len, "%s,%s,%s", addr, + snprintf(buff, len, "%s,%s,%s sampling %d codec %d", addr, transport->type & BA_PCM_TYPE_A2DP?"a2dp":"sco", - transport->type & BA_PCM_STREAM_PLAYBACK?"playback":"capture"); + transport->type & BA_PCM_STREAM_PLAYBACK?"playback":"capture", + transport->sampling, + transport->codec); return buff; } |