feat: configure PCM1862 differential inputs and optimize audio buffer settings

- Added PCM1862 I2S interface setup with differential input configuration via I2C
- Reduced audio buffer latency by decreasing period_size from 240 to 120 samples (5ms to 2.5ms)
- Updated buffer_size to 360 samples for both channels to maintain stable audio capture
This commit is contained in:
2025-11-12 18:01:12 +01:00
parent e9e5a190f6
commit 178f75e735
2 changed files with 17 additions and 4 deletions
+5 -4
View File
@@ -6,12 +6,13 @@ pcm.ch1 {
channels 2
rate 48000
format S16_LE
period_size 240 # 5 ms @ 48 kHz
buffer_size 480 # 2 periods (≈10 ms total)
period_size 120 # 2.5ms
buffer_size 360
}
bindings.0 0
}
pcm.ch2 {
type dsnoop
ipc_key 2241234
@@ -20,8 +21,8 @@ pcm.ch2 {
channels 2
rate 48000
format S16_LE
period_size 240 # 5 ms @ 48 kHz
buffer_size 480 # 2 periods (≈10 ms total)
period_size 120
buffer_size 360
}
bindings.0 1
}