Change default sample rate to 48000.
* Capture on excelsior only support multiples of 48kHz
* Specify subdevice for capture.
Change-Id: Idf075f5993529b6d73720c70455e5e3daaf50121
diff --git a/etc/runonce.d/99-default-pulse-sample-rate.sh b/etc/runonce.d/99-default-pulse-sample-rate.sh
new file mode 100755
index 0000000..e227ee9
--- /dev/null
+++ b/etc/runonce.d/99-default-pulse-sample-rate.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+sed 's/; default-sample-rate = 44100/default-sample-rate = 48000/g' -i /etc/pulse/daemon.conf
diff --git a/usr/share/alsa/ucm/excelsior-card/HiFi.conf b/usr/share/alsa/ucm/excelsior-card/HiFi.conf
index 97183e2..adc78f6 100644
--- a/usr/share/alsa/ucm/excelsior-card/HiFi.conf
+++ b/usr/share/alsa/ucm/excelsior-card/HiFi.conf
@@ -2,7 +2,8 @@
Value {
TQ "HiFi"
# ALSA PCM device for HiFi
- PlaybackPCM "hw:0"
+ PlaybackPCM "hw:0,0"
+ CapturePCM "hw:0,1"
}
EnableSequence [