To support audio for Photon OS.
These two packages were moved from Vivace.
Change-Id: I372503f041e658a2039dd64a316b18ff7f09bdcc
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6369
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,47 @@ |
| 0 |
+Summary: ALSA library |
|
| 1 |
+Name: alsa-lib |
|
| 2 |
+Version: 1.1.7 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: LGPLv2+ |
|
| 5 |
+URL: http://alsa-project.org |
|
| 6 |
+Group: Applications/Internet |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.7.tar.bz2 |
|
| 10 |
+%define sha1 alsa-lib=eca62790517220297ec82ba8a5258bcb6e708866 |
|
| 11 |
+BuildRequires: python2-devel python2-libs |
|
| 12 |
+Requires: python2 |
|
| 13 |
+%description |
|
| 14 |
+The ALSA Library package contains the ALSA library used by programs |
|
| 15 |
+(including ALSA Utilities) requiring access to the ALSA sound interface. |
|
| 16 |
+ |
|
| 17 |
+%package devel |
|
| 18 |
+Summary: Header and development files |
|
| 19 |
+Requires: %{name} = %{version}
|
|
| 20 |
+%description devel |
|
| 21 |
+It contains the libraries and header files to create applications |
|
| 22 |
+ |
|
| 23 |
+%prep |
|
| 24 |
+%setup -q |
|
| 25 |
+ |
|
| 26 |
+%build |
|
| 27 |
+%configure |
|
| 28 |
+make %{?_smp_mflags}
|
|
| 29 |
+ |
|
| 30 |
+%install |
|
| 31 |
+make DESTDIR=%{buildroot} install
|
|
| 32 |
+ |
|
| 33 |
+%files |
|
| 34 |
+%defattr(-,root,root) |
|
| 35 |
+%{_bindir}/*
|
|
| 36 |
+%{_libdir}/*
|
|
| 37 |
+%exclude %{_libdir}/debug/
|
|
| 38 |
+%{_datadir}/*
|
|
| 39 |
+ |
|
| 40 |
+%files devel |
|
| 41 |
+%defattr(-,root,root) |
|
| 42 |
+%{_includedir}/*
|
|
| 43 |
+ |
|
| 44 |
+%changelog |
|
| 45 |
+* Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.1.7-1 |
|
| 46 |
+- initial version, moved from Vivace |
| 0 | 47 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,47 @@ |
| 0 |
+Summary: ALSA Utilities. |
|
| 1 |
+Name: alsa-utils |
|
| 2 |
+Version: 1.1.7 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: LGPLv2+ |
|
| 5 |
+URL: http://alsa-project.org |
|
| 6 |
+Group: Applications/Internet |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.1.7.tar.bz2 |
|
| 10 |
+%define sha1 alsa-utils=5c9d6bee351c06baa645d89153d492199a60e66b |
|
| 11 |
+Patch0: ens1371.patch |
|
| 12 |
+BuildRequires: alsa-lib-devel ncurses-devel |
|
| 13 |
+Requires: linux-drivers-sound alsa-lib ncurses |
|
| 14 |
+%description |
|
| 15 |
+The ALSA Utilities package contains various utilities which are useful |
|
| 16 |
+for controlling your sound card. |
|
| 17 |
+ |
|
| 18 |
+%prep |
|
| 19 |
+%setup -q |
|
| 20 |
+%patch0 -p1 |
|
| 21 |
+ |
|
| 22 |
+%build |
|
| 23 |
+%configure --disable-alsaconf --disable-xmlto |
|
| 24 |
+make %{?_smp_mflags}
|
|
| 25 |
+ |
|
| 26 |
+%install |
|
| 27 |
+make DESTDIR=%{buildroot} install
|
|
| 28 |
+install -d -m 755 $RPM_BUILD_ROOT/var/lib/alsa |
|
| 29 |
+ |
|
| 30 |
+%post |
|
| 31 |
+alsactl init |
|
| 32 |
+alsactl -L store |
|
| 33 |
+ |
|
| 34 |
+%files |
|
| 35 |
+%defattr(-,root,root) |
|
| 36 |
+%{_bindir}/*
|
|
| 37 |
+%{_libdir}/*
|
|
| 38 |
+%exclude %{_libdir}/debug/
|
|
| 39 |
+/lib/* |
|
| 40 |
+%{_sbindir}/*
|
|
| 41 |
+%{_datadir}/*
|
|
| 42 |
+%{_localstatedir}/*
|
|
| 43 |
+ |
|
| 44 |
+%changelog |
|
| 45 |
+* Mon Dec 10 2018 Alexey Makhalov <amakhalov@vmware.com> 1.1.7-1 |
|
| 46 |
+- initial version, moved from Vivace |
| 0 | 47 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,54 @@ |
| 0 |
+diff -Naur alsa-utils-1.0.29/alsactl/init/00main alsa-utils-1.0.29_/alsactl/init/00main |
|
| 1 |
+--- alsa-utils-1.0.29/alsactl/init/00main 2015-02-26 06:49:40.000000000 -0800 |
|
| 2 |
+@@ -32,6 +32,7 @@ |
|
| 3 |
+ # real ALSA configuration database |
|
| 4 |
+ CARDINFO{driver}=="HDA-Intel", INCLUDE="hda", GOTO="init_end"
|
|
| 5 |
+ CARDINFO{driver}=="CA0106", INCLUDE="ca0106", GOTO="init_end"
|
|
| 6 |
++CARDINFO{driver}=="ENS1371", INCLUDE="ens1371", GOTO="init_end"
|
|
| 7 |
+ CARDINFO{driver}=="Test", INCLUDE="test", GOTO="init_end"
|
|
| 8 |
+ |
|
| 9 |
+ LABEL="init_end" |
|
| 10 |
+diff -Naur alsa-utils-1.0.29/alsactl/init/ens1371 alsa-utils-1.0.29_/alsactl/init/ens1371 |
|
| 11 |
+--- alsa-utils-1.0.29/alsactl/init/ens1371 1969-12-31 16:00:00.000000000 -0800 |
|
| 12 |
+@@ -0,0 +1,15 @@ |
|
| 13 |
++# Configuration for ensoniq based cards |
|
| 14 |
++ |
|
| 15 |
++CARDINFO{mixername}=="Cirrus Logic CS4297A rev 3", \
|
|
| 16 |
++ ATTR{subsystem_vendor}=="0x1274", ATTR{subsystem_device}=="0x1371", \
|
|
| 17 |
++ GOTO="vmware-ac97" |
|
| 18 |
++RESULT="false", EXIT="return" |
|
| 19 |
++ |
|
| 20 |
++LABEL="vmware-ac97" |
|
| 21 |
++# playback |
|
| 22 |
++CTL{reset}="mixer"
|
|
| 23 |
++CTL{name}="Master Playback Volume", CTL{value}="0dB,0dB"
|
|
| 24 |
++CTL{name}="Master Playback Switch", CTL{value}="on"
|
|
| 25 |
++CTL{name}="PCM Playback Volume", CTL{value}="51dB,51dB"
|
|
| 26 |
++CTL{name}="PCM Playback Switch", CTL{value}="on"
|
|
| 27 |
++RESULT="true", EXIT="return" |
|
| 28 |
+diff -Naur alsa-utils-1.0.29/alsactl/init/Makefile.am alsa-utils-1.0.29_/alsactl/init/Makefile.am |
|
| 29 |
+--- alsa-utils-1.0.29/alsactl/init/Makefile.am 2015-02-26 06:49:40.000000000 -0800 |
|
| 30 |
+@@ -1,7 +1,7 @@ |
|
| 31 |
+ |
|
| 32 |
+ init_files = \ |
|
| 33 |
+ 00main default help info test \ |
|
| 34 |
+- hda ca0106 |
|
| 35 |
++ hda ca0106 ens1371 |
|
| 36 |
+ EXTRA_DIST = $(init_files) |
|
| 37 |
+ alsainitdir = $(datadir)/alsa/init |
|
| 38 |
+ alsainit_DATA = $(init_files) |
|
| 39 |
+diff -Naur alsa-utils-1.0.29/alsactl/init/Makefile.in alsa-utils-1.0.29_/alsactl/init/Makefile.in |
|
| 40 |
+--- alsa-utils-1.0.29/alsactl/init/Makefile.in 2015-02-26 06:50:21.000000000 -0800 |
|
| 41 |
+@@ -246,7 +246,7 @@ |
|
| 42 |
+ xmlto_available = @xmlto_available@ |
|
| 43 |
+ init_files = \ |
|
| 44 |
+ 00main default help info test \ |
|
| 45 |
+- hda ca0106 |
|
| 46 |
++ hda ca0106 ens1371 |
|
| 47 |
+ |
|
| 48 |
+ EXTRA_DIST = $(init_files) |
|
| 49 |
+ alsainitdir = $(datadir)/alsa/init |