• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/libaudio


Commit MetaInfo

Revisãocec8aca80e41c264813c9f206c5749575e3810c4 (tree)
Hora2014-12-28 03:49:17
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Mensagem de Log

change the default sampling rates to 48000

The baytrail platform only supports 48000.
It won't affect others since all sound cards
I tested so far support 48000 as well.

Mudança Sumário

Diff

--- a/audio_hw.c
+++ b/audio_hw.c
@@ -45,11 +45,11 @@
4545 #define OUT_PERIOD_SIZE 512
4646 #define OUT_SHORT_PERIOD_COUNT 2
4747 #define OUT_LONG_PERIOD_COUNT 8
48-#define OUT_SAMPLING_RATE 44100
48+#define OUT_SAMPLING_RATE 48000
4949
5050 #define IN_PERIOD_SIZE 1024
5151 #define IN_PERIOD_COUNT 4
52-#define IN_SAMPLING_RATE 44100
52+#define IN_SAMPLING_RATE 48000
5353
5454 #define SCO_PERIOD_SIZE 256
5555 #define SCO_PERIOD_COUNT 4
--- a/audio_policy.conf
+++ b/audio_policy.conf
@@ -23,7 +23,7 @@ audio_hw_modules {
2323 primary {
2424 outputs {
2525 primary {
26- sampling_rates 44100
26+ sampling_rates 48000
2727 channel_masks AUDIO_CHANNEL_OUT_STEREO
2828 formats AUDIO_FORMAT_PCM_16_BIT
2929 devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO