summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:11:07 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:11:07 +0000
commit9ae63b37bb909c66a931ee3934af1ad87047f326 (patch)
treecd772bc99e37d2c5ba3e611d10370dc361a683c7 /audio/a2dp.c
parentf67d81062c4be2cec6bb1b340a9f212f1227e062 (diff)
Initial support of mpeg12 codec.
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index 74699cd5..1c59374f 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -355,25 +355,25 @@ static gboolean getcap_ind(struct avdtp *session, struct avdtp_local_sep *sep,
sbc_cap.cap.media_type = AVDTP_MEDIA_TYPE_AUDIO;
sbc_cap.cap.media_codec_type = A2DP_CODEC_SBC;
- sbc_cap.frequency = ( A2DP_SAMPLING_FREQ_48000 |
- A2DP_SAMPLING_FREQ_44100 |
- A2DP_SAMPLING_FREQ_32000 |
- A2DP_SAMPLING_FREQ_16000 );
+ sbc_cap.frequency = ( SBC_SAMPLING_FREQ_48000 |
+ SBC_SAMPLING_FREQ_44100 |
+ SBC_SAMPLING_FREQ_32000 |
+ SBC_SAMPLING_FREQ_16000 );
- sbc_cap.channel_mode = ( A2DP_CHANNEL_MODE_JOINT_STEREO |
- A2DP_CHANNEL_MODE_STEREO |
- A2DP_CHANNEL_MODE_DUAL_CHANNEL |
- A2DP_CHANNEL_MODE_MONO );
+ sbc_cap.channel_mode = ( SBC_CHANNEL_MODE_JOINT_STEREO |
+ SBC_CHANNEL_MODE_STEREO |
+ SBC_CHANNEL_MODE_DUAL_CHANNEL |
+ SBC_CHANNEL_MODE_MONO );
- sbc_cap.block_length = ( A2DP_BLOCK_LENGTH_16 |
- A2DP_BLOCK_LENGTH_12 |
- A2DP_BLOCK_LENGTH_8 |
- A2DP_BLOCK_LENGTH_4 );
+ sbc_cap.block_length = ( SBC_BLOCK_LENGTH_16 |
+ SBC_BLOCK_LENGTH_12 |
+ SBC_BLOCK_LENGTH_8 |
+ SBC_BLOCK_LENGTH_4 );
- sbc_cap.subbands = ( A2DP_SUBBANDS_8 | A2DP_SUBBANDS_4 );
+ sbc_cap.subbands = ( SBC_SUBBANDS_8 | SBC_SUBBANDS_4 );
- sbc_cap.allocation_method = ( A2DP_ALLOCATION_LOUDNESS |
- A2DP_ALLOCATION_SNR );
+ sbc_cap.allocation_method = ( SBC_ALLOCATION_LOUDNESS |
+ SBC_ALLOCATION_SNR );
sbc_cap.min_bitpool = MIN_BITPOOL;
sbc_cap.max_bitpool = MAX_BITPOOL;