0.3-alt1
- Moved script to firsttime.d directory for single-time start
This commit is contained in:
parent
2d24315065
commit
0600052c44
14
aqpro-mixer
14
aqpro-mixer
@ -1,8 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
main() {
|
|
||||||
CARD='sysdefault:CARD=Audio'
|
CARD='sysdefault:CARD=Audio'
|
||||||
|
|
||||||
|
# Store the configuration
|
||||||
|
store_config() {
|
||||||
|
/usr/sbin/alsactl store
|
||||||
|
}
|
||||||
|
|
||||||
|
# Set the IO interfaces parameters
|
||||||
|
alsa_setup() {
|
||||||
amixer -D $CARD cset iface=MIXER,name='Speaker Volume' 0,0
|
amixer -D $CARD cset iface=MIXER,name='Speaker Volume' 0,0
|
||||||
amixer -D $CARD cset iface=MIXER,name='Speaker Playback Switch' off,off
|
amixer -D $CARD cset iface=MIXER,name='Speaker Playback Switch' off,off
|
||||||
amixer -D $CARD cset iface=MIXER,name='Speaker ZC Switch' off,off
|
amixer -D $CARD cset iface=MIXER,name='Speaker ZC Switch' off,off
|
||||||
@ -13,5 +19,11 @@ main() {
|
|||||||
amixer -D $CARD cset iface=MIXER,name='Right Input Mixer R2 Switch' on
|
amixer -D $CARD cset iface=MIXER,name='Right Input Mixer R2 Switch' on
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Setup the audio device configuration for Aquarius machines
|
||||||
|
main() {
|
||||||
|
alsa_setup
|
||||||
|
store_config
|
||||||
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
%define _unpackaged_files_terminate_build 1
|
%define _unpackaged_files_terminate_build 1
|
||||||
|
%define _firsttime_dir %_sysconfdir/firsttime.d
|
||||||
|
|
||||||
Name: aqpro-mixer
|
Name: aqpro-mixer
|
||||||
Version: 0.2
|
Version: 0.3
|
||||||
Release: alt1
|
Release: alt1
|
||||||
|
|
||||||
Summary: Aquarius Pro P30 K41 R53 mixer settings
|
Summary: Aquarius Pro P30 K41 R53 mixer settings
|
||||||
@ -21,13 +22,15 @@ Aquarius Pro P30 K41 R53 mixer settings
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -m 0755 aqpro-mixer %buildroot%_initdir/aqpro-mixer
|
install -D -m 0755 aqpro-mixer %buildroot%_firsttime_dir/aqpro-mixer
|
||||||
chmod +x %buildroot%_initdir/aqpro-mixer
|
chmod +x %buildroot%_firsttime_dir/aqpro-mixer
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%attr(755,root,root)%_initdir/aqpro-mixer
|
%attr(755,root,root)%_firsttime_dir/aqpro-mixer
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 02 2022 Igor Chudov <nir@altlinux.org> 0.3-alt1
|
||||||
|
- Moved script to firsttime.d directory for single-time start
|
||||||
* Mon Oct 24 2022 Igor Chudov <nir@altlinux.org> 0.2-alt1
|
* Mon Oct 24 2022 Igor Chudov <nir@altlinux.org> 0.2-alt1
|
||||||
- Fixed build
|
- Fixed build
|
||||||
* Fri Oct 21 2022 Igor Chudov <nir@altlinux.org> 0.1-alt1
|
* Fri Oct 21 2022 Igor Chudov <nir@altlinux.org> 0.1-alt1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user