Author: pebender
Date: Fri May 8 06:51:54 2009
New Revision: 4729
Modified:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/audio.pm
Log:
- Changed audio init to enable the 'IEC958 Default PCM' control.
Modified:
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/audio.pm
==============================================================================
---
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/audio.pm
(original)
+++
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/etc/rc.d/init/audio.pm
Fri May 8 06:51:54 2009
@@ -78,19 +78,19 @@
given ($_)
{
# General unmuting.
- when (m!^'PCM'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Master'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Master Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Analog Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Surround'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Analog Side'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Analog Rear'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Center'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'Analog Center/LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'PCM'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Master'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Master Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Analog Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Surround'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Analog Side'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Analog Rear'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Center'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'Analog Center/LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
# VIA Specific unmuting.
- when (m!^'VIA DXS'!) {
system(qq($amixer_command sset $_ 100% )); }
+ when (m!^'VIA DXS'!) {
system(qq($amixer_command sset $_ 100% )); }
}
}
close(FILE);
@@ -106,14 +106,15 @@
given ($_)
{
# General unmuting.
- when (m!^'IEC958'!) {
system(qq($amixer_command sset $_ on )); }
- when (m!^'IEC958 Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'IEC958 Side'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'IEC958 Rear'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
- when (m!^'IEC958 Center/LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'IEC958'!) {
system(qq($amixer_command sset $_ on )); }
+ when (m!^'IEC958 Default PCM'!) {
system(qq($amixer_command sset $_ on )); }
+ when (m!^'IEC958 Front'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'IEC958 Side'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'IEC958 Rear'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
+ when (m!^'IEC958 Center/LFE'!) {
system(qq($amixer_command sset $_ $gain unmute)); }
# VIA Specific unmuting.
when (m!^'IEC958 Playback AC97-SPSA'!)
- {
system(qq($amixer_command sset $_ 0 )); }
+ {
system(qq($amixer_command sset $_ 0 )); }
}
}
close(FILE);
@@ -153,19 +154,18 @@
given ($_)
{
# General muting.
- when (m!^'PCM'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Master'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Front'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Analog Front'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Surround'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Analog Side'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Analog Rear'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Center'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'LFE'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'Analog Center/LFE'!) {
system(qq($amixer_command set $_ 0% mute)); }
+ when (m!^'PCM'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Master'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Front'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Analog Front'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Surround'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Analog Side'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Analog Rear'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Center'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'LFE'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'Analog Center/LFE'!) {
system(qq($amixer_command sset $_ 0% mute)); }
# VIA Specific muting.
- when (m!^'VIA DXS'!) {
system(qq($amixer_command set $_ 0% )); }
- when (m!^'IEC958 Center/LFE'!) {
system(qq($amixer_command set $_ 0% mute)); }
+ when (m!^'VIA DXS'!) {
system(qq($amixer_command sset $_ 0% )); }
}
}
close(FILE);
@@ -181,11 +181,12 @@
given ($_)
{
# General muting.
- when (m!^'IEC958'!) {
system(qq($amixer_command set $_ off )); }
- when (m!^'IEC958 Front'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'IEC958 Side'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'IEC958 Rear'!) {
system(qq($amixer_command set $_ 0% mute)); }
- when (m!^'IEC958 Center/LFE'!) {
system(qq($amixer_command set $_ 0% mute)); }
+ when (m!^'IEC958'!) {
system(qq($amixer_command sset $_ off )); }
+ when (m!^'IEC958 Default PCM'!) {
system(qq($amixer_command sset $_ off )); }
+ when (m!^'IEC958 Front'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'IEC958 Side'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'IEC958 Rear'!) {
system(qq($amixer_command sset $_ 0% mute)); }
+ when (m!^'IEC958 Center/LFE'!) {
system(qq($amixer_command sset $_ 0% mute)); }
}
}
close(FILE);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---