Actually, RPI3's audio device name is "bcm2835".
Please See: audio-hal-bcm2837/tizen-audio-internal.h
platform/kernel/linux-rpi3/sound/arm/
The SoC:BCM2837 is the Broadcom chip used in the Raspberry-Pi 3.
However, the kernel's audio driver has been developed since the days of
bcm2835. And the name "bcm2835" continues to be used until now. So
Raspberry-pi 3 is bcm2837, but the audio device name is bcm2835. For the
same reason, not only audio, but other kernel drivers are also named
"bcm2835".
The alsa-ucm directory is of the form
"/usr/share/alsa/ucm/<card name>/<card name>.conf".
In "audio-hal-bcm2837", the snd_use_case_mgr_open() function is used,
and the parameter of this function is the "card name".
And Raspberry-Pi 3's the "card name" is "bcm2835".
Change-Id: Ie5c1e2502c28ffc72fe27346694274defec90ee5
Signed-off-by: Hackseung Lee <lhs@dignsys.com>
--- /dev/null
+SectionUseCase."Inactive" {
+ File "inactive"
+ Comment "reset audio path"
+}
+
+SectionUseCase."HiFi" {
+ File "hifi"
+ Comment "Hifi audio path"
+}
+
+SectionUseCase."HDMI" {
+ File "hdmi"
+ Comment "HDMI audio path"
+}
+
+
+ValueDefaults {
+ PlaybackCTL "hw:1"
+ CaptureCTL "hw:1"
+}
+
+SectionDefaults {
+}
--- /dev/null
+SectionVerb {
+ EnableSequence [
+ ]
+ DisableSequence [
+ ]
+
+ Value {
+ TQ "Music"
+ PlaybackCTL "hw:1"
+ }
+}
+
+SectionDevice."HDMI" {
+ Comment "HDMI AUDIO"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+
+ Value {
+ PlaybackPCM "hw:1,1"
+ }
+}
--- /dev/null
+SectionVerb {
+ EnableSequence [
+ ]
+ DisableSequence [
+ ]
+
+ Value {
+ TQ "Music"
+ PlaybackCTL "hw:1"
+ }
+}
+
+SectionDevice."Speaker" {
+ Comment "3.5mm Speaker"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+
+ Value {
+ PlaybackPCM "hw:1,0"
+ }
+}
--- /dev/null
+SectionVerb {
+ EnableSequence [
+ ]
+ DisableSequence [
+ ]
+
+ Value {
+ TQ "Music"
+ PlaybackCTL "hw:1"
+ CaptureCTL "hw:1"
+ }
+}
+
+SectionDevice."All" {
+ Comment "reset all"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Playback" {
+ Comment "reset playback"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Capture" {
+ Comment "reset capture"
+
+ EnableSequence [
+ ]
+
+ DisableSequence [
+ ]
+}
+++ /dev/null
-SectionUseCase."Inactive" {
- File "inactive"
- Comment "reset audio path"
-}
-
-SectionUseCase."HiFi" {
- File "hifi"
- Comment "Hifi audio path"
-}
-
-SectionUseCase."HDMI" {
- File "hdmi"
- Comment "HDMI audio path"
-}
-
-
-ValueDefaults {
- PlaybackCTL "hw:1"
- CaptureCTL "hw:1"
-}
-
-SectionDefaults {
-}
+++ /dev/null
-SectionVerb {
- EnableSequence [
- ]
- DisableSequence [
- ]
-
- Value {
- TQ "Music"
- PlaybackCTL "hw:1"
- }
-}
-
-SectionDevice."HDMI" {
- Comment "HDMI AUDIO"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-
- Value {
- PlaybackPCM "hw:1,1"
- }
-}
+++ /dev/null
-SectionVerb {
- EnableSequence [
- ]
- DisableSequence [
- ]
-
- Value {
- TQ "Music"
- PlaybackCTL "hw:1"
- }
-}
-
-SectionDevice."Speaker" {
- Comment "3.5mm Speaker"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-
- Value {
- PlaybackPCM "hw:1,0"
- }
-}
+++ /dev/null
-SectionVerb {
- EnableSequence [
- ]
- DisableSequence [
- ]
-
- Value {
- TQ "Music"
- PlaybackCTL "hw:1"
- CaptureCTL "hw:1"
- }
-}
-
-SectionDevice."All" {
- Comment "reset all"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-}
-
-SectionDevice."Playback" {
- Comment "reset playback"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-}
-
-SectionDevice."Capture" {
- Comment "reset capture"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/alsa/ucm
-cp -a bcm2837 %{buildroot}/usr/share/alsa/ucm
+cp -a bcm2835 %{buildroot}/usr/share/alsa/ucm
%post
%files
%manifest alsa-ucm-conf-rpi3.manifest
-/usr/share/alsa/ucm/bcm2837/*
+/usr/share/alsa/ucm/bcm2835/*
%license LICENSE.Apache-2.0