summaryrefslogtreecommitdiffstats
path: root/perl-install/install/share/po/fi.po
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install/share/po/fi.po')
-rw-r--r--perl-install/install/share/po/fi.po312
1 files changed, 137 insertions, 175 deletions
diff --git a/perl-install/install/share/po/fi.po b/perl-install/install/share/po/fi.po
index 7abc70e3c..f126d8e2a 100644
--- a/perl-install/install/share/po/fi.po
+++ b/perl-install/install/share/po/fi.po
@@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX-fi - Mandriva 2007 Release\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-03-21 12:07+0100\n"
+"POT-Creation-Date: 2007-07-02 11:21+0200\n"
"PO-Revision-Date: 2006-09-18 20:02+0300\n"
"Last-Translator: Thomas Backlund <tmb@mandriva.org>\n"
"Language-Team: Finnish <fi@li.org>\n"
@@ -62,24 +62,24 @@ msgstr "Verkko (FTP)"
msgid "Network (NFS)"
msgstr "Verkko (NFS)"
-#: any.pm:212
+#: any.pm:215
#, c-format
msgid "URL of the mirror?"
msgstr "Peilipalvelimen URL?"
-#: any.pm:218
+#: any.pm:221
#, c-format
msgid "URL must start with ftp:// or http://"
msgstr "URL pitää alkaa ftp:// tai http://"
-#: any.pm:229
+#: any.pm:232
#, c-format
msgid ""
"Contacting Mandriva Linux web site to get the list of available mirrors..."
msgstr ""
"Otetaan yhteys Mandriva Linuxin sivustolle peilipalvelinlistan saamiseksi..."
-#: any.pm:234
+#: any.pm:237
#, c-format
msgid ""
"Failed contacting Mandriva Linux web site to get the list of available "
@@ -88,70 +88,70 @@ msgstr ""
"Yhteydenotto Mandriva Linuxin sivustolle peilipalvelinlistan saamiseksi "
"epäonnistui"
-#: any.pm:244
+#: any.pm:247
#, c-format
msgid "Choose a mirror from which to get the packages"
msgstr "Valitse peilipalvelin josta paketit haetaan"
-#: any.pm:274
+#: any.pm:277
#, c-format
msgid "NFS setup"
msgstr "NFS Asetus"
-#: any.pm:275
+#: any.pm:278
#, c-format
msgid "Please enter the hostname and directory of your NFS media"
msgstr "Syötä NFS-palvelimesi nimi ja hakemistopolku"
-#: any.pm:279
+#: any.pm:282
#, c-format
msgid "Hostname missing"
msgstr ""
-#: any.pm:280
+#: any.pm:283
#, c-format
msgid "Directory must begin with \"/\""
msgstr ""
-#: any.pm:284
+#: any.pm:287
#, c-format
msgid "Hostname of the NFS mount ?"
msgstr "NFS-liitoksen palvelimen nimi?"
-#: any.pm:285
+#: any.pm:288
#, c-format
msgid "Directory"
msgstr "Kansio"
-#: any.pm:307
+#: any.pm:310
#, c-format
msgid "Supplementary"
msgstr ""
-#: any.pm:342
+#: any.pm:345
#, c-format
msgid ""
"Can't find a package list file on this mirror. Make sure the location is "
"correct."
msgstr "En löydä hdlist tiedostoa tässä peilipalvelimessa."
-#: any.pm:376
+#: any.pm:379
#, c-format
msgid "Looking at packages already installed..."
msgstr "Etsitään jo asennettuja paketteja..."
-#: any.pm:383
+#: any.pm:386
#, c-format
msgid "Removing packages prior to upgrade..."
msgstr "Poistetaan paketteja ennen päivitystä..."
-#: any.pm:426
+#: any.pm:428
#, c-format
msgid "Finding packages to upgrade..."
msgstr "Etsitään päivitettäviä paketteja..."
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
-#: any.pm:636
+#: any.pm:614
#, c-format
msgid ""
"You have selected the following server(s): %s\n"
@@ -176,7 +176,7 @@ msgstr ""
"Haluatko todella asentaa nämä palvelimet?\n"
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
-#: any.pm:659
+#: any.pm:637
#, c-format
msgid ""
"The following packages will be removed to allow upgrading your system: %s\n"
@@ -189,67 +189,67 @@ msgstr ""
"\n"
"Haluatko varmasti poistaa nämä paketit?\n"
-#: any.pm:1081
+#: any.pm:1059
#, c-format
msgid "The following disk(s) were renamed:"
msgstr "Seuraava(t) levy(t) uudelleennimettiin:"
-#: any.pm:1083
+#: any.pm:1061
#, c-format
msgid "%s (previously named as %s)"
msgstr "%s (oli ennen nimetty %s)"
-#: any.pm:1140
+#: any.pm:1118
#, c-format
msgid "HTTP"
msgstr "HTTP"
-#: any.pm:1140
+#: any.pm:1118
#, c-format
msgid "FTP"
msgstr "FTP"
-#: any.pm:1140
+#: any.pm:1118
#, c-format
msgid "NFS"
msgstr "NFS"
-#: any.pm:1159 steps_interactive.pm:840
+#: any.pm:1137 steps_interactive.pm:846
#, c-format
msgid "Network"
msgstr "Verkko"
-#: any.pm:1163
+#: any.pm:1141
#, c-format
msgid "Please choose a media"
msgstr "Ole hyvä ja valitse media"
-#: any.pm:1179
+#: any.pm:1157
#, c-format
msgid "File already exists. Overwrite it?"
msgstr "Tiedosto jo olemassa. Korvaa?"
-#: any.pm:1183
+#: any.pm:1161
#, c-format
msgid "Permission denied"
msgstr "Ei oikeuksia"
-#: any.pm:1231
+#: any.pm:1209
#, c-format
msgid "Bad NFS name"
msgstr "Virheellinen NFS-nimi"
-#: any.pm:1252
+#: any.pm:1230
#, c-format
msgid "Bad media %s"
msgstr "Huono media %s"
-#: any.pm:1294
+#: any.pm:1272
#, c-format
msgid "Can not make screenshots before partitioning"
msgstr "Kuvakaappauksia ei voida tehdä ennen osiointia"
-#: any.pm:1301
+#: any.pm:1279
#, c-format
msgid "Screenshots will be available after install in %s"
msgstr "Kuvakaappaukset löytyvät asennuksen jälkeen hakemistosta %s"
@@ -288,141 +288,46 @@ msgstr "Käynnistetään verkkoa"
msgid "Bringing down the network"
msgstr "Ajetaan alas verkkoa"
-#: media.pm:697 media.pm:706
+#: media.pm:699 media.pm:710
#, c-format
msgid "Downloading file %s..."
msgstr "Haetaan tiedosto %s ..."
-#: media.pm:798
+#: media.pm:804
#, c-format
msgid "Copying some packages on disks for future use"
msgstr "Kopioin paketteja kovalevylle myöhempään käyttöön"
-#: media.pm:851
+#: media.pm:857
#, c-format
msgid "Copying in progress"
msgstr "Kopiointi käynnissä"
-#: pkgs.pm:27
+#: pkgs.pm:33
#, c-format
msgid "must have"
msgstr "pakollinen"
-#: pkgs.pm:28
+#: pkgs.pm:34
#, c-format
msgid "important"
msgstr "tärkeä"
-#: pkgs.pm:29
+#: pkgs.pm:35
#, c-format
msgid "very nice"
msgstr "erittäin hyvä"
-#: pkgs.pm:30
+#: pkgs.pm:36
#, c-format
msgid "nice"
msgstr "hyvä"
-#: pkgs.pm:31
+#: pkgs.pm:37
#, c-format
msgid "maybe"
msgstr "ehkä"
-#: share/advertising/ARKEIA_EN.pl:3 share/advertising/ARKEIA_FR.pl:3
-#, c-format
-msgid "Arkeia"
-msgstr "Arkeia"
-
-#: share/advertising/FLATOUT.pl:3
-#, c-format
-msgid "Flatout"
-msgstr "Flatout"
-
-#: share/advertising/IM-GWENVIEW.pl:3
-#, c-format
-msgid "Gwenview"
-msgstr "Gwenview"
-
-#: share/advertising/IM_3D.pl:3
-#, c-format
-msgid "3D"
-msgstr "3D"
-
-#: share/advertising/IM_CMSJOOMLA.pl:3
-#, c-format
-msgid "CMS"
-msgstr "CMS"
-
-#: share/advertising/IM_CRM.pl:3
-#, c-format
-msgid "CRM"
-msgstr "CRM"
-
-#: share/advertising/IM_GAMME.pl:3
-#, c-format
-msgid "2007 product line"
-msgstr "2007 tuotelinja"
-
-#: share/advertising/IM_INVICTUS.pl:3
-#, c-format
-msgid "Invictus Firewall"
-msgstr "Invictus Palomuuri"
-
-#: share/advertising/IM_ONE.pl:3
-#, c-format
-msgid "Discovery Live Mode"
-msgstr "Discovery Live Tila"
-
-#: share/advertising/IM_REGISTER.pl:3
-#, c-format
-msgid "How to register"
-msgstr "Miten rekisteröityä"
-
-#: share/advertising/IM_RPMDRAKE.pl:3
-#, c-format
-msgid "Rpmdrake 2"
-msgstr "Rpmdrake 2"
-
-#: share/advertising/IM_SERVICES.pl:3
-#, c-format
-msgid "Mandriva Online Services"
-msgstr "Mandriva Online Palvelut"
-
-#: share/advertising/IM_THEME.pl:3
-#, c-format
-msgid "New Theme"
-msgstr "Uusi teema"
-
-#: share/advertising/IM_web2.pl:3
-#, c-format
-msgid "Web 2.0"
-msgstr "Web 2.0"
-
-#: share/advertising/Kaspersky.pl:3
-#, c-format
-msgid "Kaspersky"
-msgstr "Kaspersky"
-
-#: share/advertising/LinDVD.pl:3
-#, c-format
-msgid "LinDVD"
-msgstr "LinDVD"
-
-#: share/advertising/Skype.pl:3
-#, c-format
-msgid "Skype"
-msgstr "Skype"
-
-#: share/advertising/TRANSGAMING-CEDEGA.pl:3
-#, c-format
-msgid "Transgaming/Cedega"
-msgstr "Transgaming/Cedega"
-
-#: share/advertising/VPN.pl:3
-#, c-format
-msgid "DrakVPN"
-msgstr "DrakVPN"
-
#: share/meta-task/compssUsers.pl:23
#, c-format
msgid "Workstation"
@@ -758,7 +663,7 @@ msgstr ""
"Ilmeni virhe, eikä sitä ei voida käsitellä kunnolla.\n"
"Jatka omalla vastuullasi."
-#: steps.pm:426
+#: steps.pm:432
#, c-format
msgid ""
"Some important packages did not get installed properly.\n"
@@ -964,7 +869,7 @@ msgstr[0] "%d pakettia"
msgstr[1] "%d pakettia"
# Asennuksen sivuvalikko
-#: steps_gtk.pm:557 steps_interactive.pm:729
+#: steps_gtk.pm:557 steps_interactive.pm:735
#, c-format
msgid "Summary"
msgstr "Yhteenveto"
@@ -974,7 +879,7 @@ msgstr "Yhteenveto"
msgid "Configure"
msgstr "Aseta"
-#: steps_gtk.pm:580 steps_interactive.pm:725 steps_interactive.pm:852
+#: steps_gtk.pm:580 steps_interactive.pm:731 steps_interactive.pm:858
#, c-format
msgid "not configured"
msgstr "ei asetettu"
@@ -1216,12 +1121,12 @@ msgstr "Asennuksen jälkeiset toiminnot"
msgid "Please ensure the Update Modules media is in drive %s"
msgstr "Varmista että Päivitetyt Moduulit media on asemassa %s"
-#: steps_interactive.pm:638
+#: steps_interactive.pm:644
#, c-format
msgid "Updates"
msgstr "Päivitykset"
-#: steps_interactive.pm:639
+#: steps_interactive.pm:645
#, c-format
msgid ""
"You now have the opportunity to download updated packages. These packages\n"
@@ -1241,33 +1146,33 @@ msgstr ""
"\n"
"Haluatko hakea ja asentaa päivitykset?"
-#: steps_interactive.pm:660
+#: steps_interactive.pm:666
#, c-format
msgid "Contacting the mirror to get the list of available packages..."
msgstr "Yhdistetään peilipalvelimeen uusimman pakettilistan saamiseksi..."
-#: steps_interactive.pm:666
+#: steps_interactive.pm:672
#, c-format
msgid "Unable to contact mirror %s"
msgstr "Yhteyttä peilipalvelimeen %s ei voitu muodostaa"
-#: steps_interactive.pm:788 steps_interactive.pm:805 steps_interactive.pm:821
-#: steps_interactive.pm:832
+#: steps_interactive.pm:794 steps_interactive.pm:811 steps_interactive.pm:827
+#: steps_interactive.pm:838
#, c-format
msgid "Hardware"
msgstr "Laitteisto"
-#: steps_interactive.pm:789 steps_interactive.pm:806
+#: steps_interactive.pm:795 steps_interactive.pm:812
#, c-format
msgid "Sound card"
msgstr "Äänikortti"
-#: steps_interactive.pm:809
+#: steps_interactive.pm:815
#, c-format
msgid "Do you have an ISA sound card?"
msgstr "Onko sinulla ISA-väylään liitettävä äänikortti?"
-#: steps_interactive.pm:811
+#: steps_interactive.pm:817
#, c-format
msgid ""
"Run \"alsaconf\" or \"sndconfig\" after installation to configure your sound "
@@ -1276,79 +1181,79 @@ msgstr ""
"Suorita \"alsaconf\" tai \"sndconfig\" asennuksen jälkeen asettaaksesi "
"äänikorttisi."
-#: steps_interactive.pm:813
+#: steps_interactive.pm:819
#, c-format
msgid "No sound card detected. Try \"harddrake\" after installation"
msgstr ""
"Yhtäkään äänikorttia ei löydetty. Kokeile \"harddrake\" asennuksen jälkeen"
-#: steps_interactive.pm:822
+#: steps_interactive.pm:828
#, c-format
msgid "TV card"
msgstr "TV-kortti"
-#: steps_interactive.pm:833
+#: steps_interactive.pm:839
#, c-format
msgid "Graphical interface"
msgstr "Graafinen käyttöliittymä"
-#: steps_interactive.pm:839 steps_interactive.pm:850
+#: steps_interactive.pm:845 steps_interactive.pm:856
#, c-format
msgid "Network & Internet"
msgstr "Verkko & Internet"
-#: steps_interactive.pm:851
+#: steps_interactive.pm:857
#, c-format
msgid "Proxies"
msgstr "Välityspalvelimet"
-#: steps_interactive.pm:852
+#: steps_interactive.pm:858
#, c-format
msgid "configured"
msgstr "asetettu"
-#: steps_interactive.pm:862
+#: steps_interactive.pm:868
#, c-format
msgid "Security Level"
msgstr "Turvataso"
-#: steps_interactive.pm:876
+#: steps_interactive.pm:882
#, c-format
msgid "Firewall"
msgstr "Palomuuri"
-#: steps_interactive.pm:880
+#: steps_interactive.pm:886
#, c-format
msgid "activated"
msgstr "aktivoitu"
-#: steps_interactive.pm:880
+#: steps_interactive.pm:886
#, c-format
msgid "disabled"
msgstr "ei käytössä"
-#: steps_interactive.pm:891
+#: steps_interactive.pm:897
#, c-format
msgid "Boot"
msgstr "Käynnistys"
#. -PO: example: lilo-graphic on /dev/hda1
-#: steps_interactive.pm:895
+#: steps_interactive.pm:901
#, c-format
msgid "%s on %s"
msgstr "%s kohteessa %s"
-#: steps_interactive.pm:921
+#: steps_interactive.pm:927
#, c-format
msgid "You have not configured X. Are you sure you really want this?"
msgstr "Et ole asettanut X-palvelinta. Oletko varma että haluat tehdä tämän?"
-#: steps_interactive.pm:967
+#: steps_interactive.pm:973
#, c-format
msgid "Preparing bootloader..."
msgstr "Valmistelen käyttöjärjestelmän lataajaa..."
-#: steps_interactive.pm:977
+#: steps_interactive.pm:983
#, c-format
msgid ""
"You appear to have an OldWorld or Unknown machine, the yaboot bootloader "
@@ -1361,12 +1266,12 @@ msgstr ""
"käyttää BootX:ää koneesi käynnistämiseen. Ytimen paremetrit root "
"tiedostojärjestelmälle on: root=%s"
-#: steps_interactive.pm:983
+#: steps_interactive.pm:989
#, c-format
msgid "Do you want to use aboot?"
msgstr "Haluatko käyttää aboot:a?"
-#: steps_interactive.pm:986
+#: steps_interactive.pm:992
#, c-format
msgid ""
"Error installing aboot, \n"
@@ -1375,7 +1280,7 @@ msgstr ""
"Virhe asennettaessa aboot:a,\n"
"yritetäänkö pakkoasennusta vaikka se tuhoaa ensimmäisen osion?"
-#: steps_interactive.pm:1003
+#: steps_interactive.pm:1009
#, c-format
msgid ""
"In this security level, access to the files in the Windows partition is "
@@ -1385,17 +1290,17 @@ msgstr ""
"ylläpitäjälle."
# mat
-#: steps_interactive.pm:1032
+#: steps_interactive.pm:1038
#, c-format
msgid "Insert a blank floppy in drive %s"
msgstr "Aseta tyhjä levyke levykeasemaan %s"
-#: steps_interactive.pm:1034
+#: steps_interactive.pm:1040
#, c-format
msgid "Creating auto install floppy..."
msgstr "Valmistellaan automaattiasennuslevykettä..."
-#: steps_interactive.pm:1045
+#: steps_interactive.pm:1051
#, c-format
msgid ""
"Some steps are not completed.\n"
@@ -1406,22 +1311,22 @@ msgstr ""
"\n"
"Haluatko todella lopettaa?"
-#: steps_interactive.pm:1055
+#: steps_interactive.pm:1061
#, c-format
msgid "Congratulations"
msgstr "Onnittelut"
-#: steps_interactive.pm:1059
+#: steps_interactive.pm:1065
#, c-format
msgid "Reboot"
msgstr "Käynnistä uudelleen"
-#: steps_interactive.pm:1063 steps_interactive.pm:1064
+#: steps_interactive.pm:1069 steps_interactive.pm:1070
#, c-format
msgid "Generate auto install floppy"
msgstr "Luo automaattinen asennuslevyke"
-#: steps_interactive.pm:1065
+#: steps_interactive.pm:1071
#, c-format
msgid ""
"The auto install can be fully automated if wanted,\n"
@@ -1436,17 +1341,17 @@ msgstr ""
"\n"
"Ehkä haluat mieluummin toistaa asennuksen.\n"
-#: steps_interactive.pm:1070
+#: steps_interactive.pm:1076
#, c-format
msgid "Replay"
msgstr "Toista"
-#: steps_interactive.pm:1070
+#: steps_interactive.pm:1076
#, c-format
msgid "Automated"
msgstr "Automaattinen"
-#: steps_interactive.pm:1073
+#: steps_interactive.pm:1079
#, c-format
msgid "Save packages selection"
msgstr "Tallenna pakettien valinta"
@@ -1595,6 +1500,63 @@ msgid ""
"Exit"
msgstr "Poistu"
+#~ msgid "Arkeia"
+#~ msgstr "Arkeia"
+
+#~ msgid "Flatout"
+#~ msgstr "Flatout"
+
+#~ msgid "Gwenview"
+#~ msgstr "Gwenview"
+
+#~ msgid "3D"
+#~ msgstr "3D"
+
+#~ msgid "CMS"
+#~ msgstr "CMS"
+
+#~ msgid "CRM"
+#~ msgstr "CRM"
+
+#~ msgid "2007 product line"
+#~ msgstr "2007 tuotelinja"
+
+#~ msgid "Invictus Firewall"
+#~ msgstr "Invictus Palomuuri"
+
+#~ msgid "Discovery Live Mode"
+#~ msgstr "Discovery Live Tila"
+
+#~ msgid "How to register"
+#~ msgstr "Miten rekisteröityä"
+
+#~ msgid "Rpmdrake 2"
+#~ msgstr "Rpmdrake 2"
+
+#~ msgid "Mandriva Online Services"
+#~ msgstr "Mandriva Online Palvelut"
+
+#~ msgid "New Theme"
+#~ msgstr "Uusi teema"
+
+#~ msgid "Web 2.0"
+#~ msgstr "Web 2.0"
+
+#~ msgid "Kaspersky"
+#~ msgstr "Kaspersky"
+
+#~ msgid "LinDVD"
+#~ msgstr "LinDVD"
+
+#~ msgid "Skype"
+#~ msgstr "Skype"
+
+#~ msgid "Transgaming/Cedega"
+#~ msgstr "Transgaming/Cedega"
+
+#~ msgid "DrakVPN"
+#~ msgstr "DrakVPN"
+
#, fuzzy
#~ msgid "(%d package, %d MB)"
#~ msgid_plural "(%d packages, %d MB)"
"snd_rme9652" => [ "rme96xx" ], # pci "snd_sb16" => ["sscape", "sb"], "snd_sb8" => [ "sb" ], "snd_sbawe" => [ "awe_wave" ], "snd_sgalaxy" => [ "sgalaxy" ], # isa "snd_sonicvibes" => [ "sonicvibes" ], "snd_sscape" => [ "sscape" ], # isa "snd_trident" => [ "trident" ], "snd_usb_audio" => [ "audio" ], # usb "snd_usb_caiaq" => [ "unknown" ], "snd_usb_usx2y" => [ "unknown" ], "snd_via82xx" => [ "via82cxxx_audio" ], "snd_vx222" => [ "unknown" ], "snd_vxp440" => [ "unknown" ], # pcmcia "snd_vxpocket" => [ "unknown" ], # pcmcia "snd_wavefront" => [ "wavefront" ], # isa "snd_ymfpci" => [ "ymfpci" ], ); our %oss2alsa = ( if_(arch() =~ /ppc/, "dmasound_pmac" => [ "snd_powermac" ]), "ad1816" => [ "snd_ad1816a" ], "ad1848" => [ "snd_ad1848", "snd_cs4236" ], "ad1889" => [ "snd_ad1889" ], "ali5455" => [ "snd_intel8x0" ], "audigy" => [ "snd_emu10k1" ], "audio" => [ "snd_usb_audio" ], # usb "awe_wave" => [ "snd_sbawe" ], "btaudio" => [ "snd_bt87x" ], "cmpci" => [ "snd_cmipci" ], "cs4232" => [ "snd_cs4232" ], "cs4281" => [ "snd_cs4281" ], "cs46xx" => [ "snd_cs46xx" ], "emu10k1" => [ "snd_emu10k1" ], "es1370" => [ "snd_ens1370" ], "es1371" => [ "snd_ens1371" ], "esssolo1" => [ "snd_es1938" ], "forte" => [ "snd_fm801" ], "gus" => ["snd_interwave", "snd_gusclassic", "snd_gusmax", "snd_gusextreme"], "i810_audio" => [ "snd_intel8x0" ], "ice1712" => [ "snd_ice1712" ], "mad16" => [ "snd_opti93x" ], "maestro" => [ "snd_es1968" ], "maestro3" => [ "snd_maestro3" ], "mpu401" => [ "snd_mpu401" ], "msnd_pinnacle" => [ "unknown" ], "nm256_audio" => [ "snd_nm256" ], "nvaudio" => [ "snd_intel8x0" ], "opl3" => [ "snd_opl3sa2" ], "opl3sa" => [ "snd_opl3sa2" ], "opl3sa2" => [ "snd_opl3sa2" ], "pas2" => [ "unknown" ], "pss" => [ "snd_ad1848" ], "rme96xx" => [ "snd_rme96", "snd_rme9652" ], "sam9407" => [ "unknown" ], "sb" => [ "snd_als100", "snd_cmi8330", "snd_es1688", "snd_es18xx", "snd_es968", "snd_sb8", "snd_sb16" ], "sgalaxy" => [ "snd_sgalaxy" ], "sonicvibes" => [ "snd_sonicvibes" ], "sscape" => [ "snd_sb16", "snd_sscape" ], "trident" => [ "snd_ali5451", "snd_trident" ], "via82cxxx_audio" => [ "snd_via82xx" ], "wavefront" => [ "snd_wavefront" ], "ymfpci" => [ "snd_ymfpci" ], ); my @blacklist = qw(cs46xx cs4281); my $blacklisted = 0; sub is_pulseaudio_enabled() { my $soundprofile = common::read_alternative('soundprofile'); $soundprofile =~ /pulse$/; } sub set_pulseaudio { my ($val) = @_; my $alterative = '/etc/sound/profiles/' . ($val ? 'pulse' : 'alsa'); return if ! -d $alterative; common::symlinkf_update_alternatives('soundprofile', $alterative); # (cg) This config file will eventually be dropped, but it is still needed for now # as several packages/patches depend on it. my $config_file = "$::prefix/etc/sysconfig/pulseaudio"; $val = 'PULSE_SERVER_TYPE=' . ($val ? 'personal' : 'none') . "\n"; my $done; substInFile { if (/^PULSE_SERVER_TYPE=/) { $_ = $val; $done = 1; } } $config_file; append_to_file($config_file, $val) if !$done; } my $pa_startup_scriptfile = "$::prefix/etc/pulse/default.pa"; sub is_pulseaudio_glitchfree_enabled() { return -f $pa_startup_scriptfile && cat_($pa_startup_scriptfile) !~ /^load-module\s+module-(udev|hal)-detect\s+tsched=0/m; } sub set_pulseaudio_glitchfree { my ($val) = @_; return if ! -f $pa_startup_scriptfile; substInFile { if ($val) { s/^(load-module\s+module-(udev|hal)-detect)\s+tsched=0/$1/; } else { s/^(load-module\s+module-(udev|hal)-detect).*/$1 tsched=0/; } } $pa_startup_scriptfile; } my $pa_client_conffile = "$::prefix/etc/pulse/client.conf"; sub set_PA_autospan { my ($val) = @_; return if ! -f $pa_client_conffile; $val = 'autospawn = ' . bool2yesno($val) . "\n"; my $done; substInFile { if (/^autospawn\s*=/) { $_ = $val; $done = 1; } } $pa_client_conffile; append_to_file($pa_client_conffile, $val) if !$done; } sub rooted { run_program::rooted($::prefix, @_) } sub unload { modules::unload(@_) if $::isStandalone || $blacklisted } sub load { my ($modules_conf, $name) = @_; modules::load_and_configure($modules_conf, $name) if $::isStandalone || $blacklisted; } sub get_alternative { my ($driver) = @_; my $list = $alsa2oss{$driver} || $oss2alsa{$driver}; $list ? @$list : "unknown"; } sub do_switch { my ($in, $modules_conf, $old_driver, $new_driver, $index) = @_; return if $old_driver eq $new_driver; my $_wait = $in->wait_message(N("Please wait"), N("Please Wait... Applying the configuration")); log::explanations("removing old $old_driver\n"); if ($::isStandalone) { rooted("service sound stop") unless $blacklisted; rooted("service alsa stop") if $old_driver =~ /^snd_/ && !$blacklisted; unload($old_driver); # run_program("/sbin/modprobe -r $driver"); # just in case ... } $modules_conf->remove_module($old_driver); configure_one_sound_slot($modules_conf, $index, $new_driver); $modules_conf->write; if ($new_driver =~ /^snd_/) { # new driver is an alsa one $in->do_pkgs->ensure_binary_is_installed(qw(alsa-utils alsactl), 1); $in->do_pkgs->ensure_binary_is_installed(qw(aoss aoss), 1); rooted("service alsa start") if $::isStandalone && !$blacklisted; rooted("/sbin/chkconfig --add alsa") if $::isStandalone; load($modules_conf, $new_driver) if $::isStandalone; # service alsa is buggy } else { rooted("/sbin/chkconfig --del alsa") } log::explanations("loading new $new_driver\n"); rooted("/sbin/chkconfig --add sound"); # just in case ... rooted("service sound start") if $::isStandalone && !$blacklisted; } sub switch { my ($in, $modules_conf, $device) = @_; my $driver = $device->{current_driver} || $device->{driver}; foreach (@blacklist) { $blacklisted = 1 if $driver eq $_ } my @alternative = $driver ne 'unknown' ? get_alternative($driver) : (); unless ($driver eq $device->{driver} || member($device->{driver}, @alternative)) { push @alternative, get_alternative($device->{driver}), $device->{driver}; } if (@alternative) { my $new_driver = $driver; push @alternative, $driver; my %des = modules::category2modules_and_description('multimedia/sound'); my $is_pulseaudio_installed = (-f $pa_startup_scriptfile && -f $pa_client_conffile && -d '/etc/sound/profiles/pulse'); my $is_pulseaudio_enabled = is_pulseaudio_enabled(); my $is_pulseaudio_glitchfree_enabled = is_pulseaudio_glitchfree_enabled(); my $old_value = $is_pulseaudio_enabled; my $write_config = sub { return if !$is_pulseaudio_installed; set_pulseaudio($is_pulseaudio_enabled); set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled); set_PA_autospan($is_pulseaudio_enabled); if ($is_pulseaudio_enabled) { my $lib = (arch() =~ /x86_64/ ? 'lib64' : 'lib'); $in->do_pkgs->ensure_is_installed($lib . 'alsa-plugins-pulseaudio', '/usr/' . $lib . '/alsa-lib/libasound_module_pcm_pulse.so'); } if ($old_value ne $is_pulseaudio_enabled) { require any; any::ask_for_X_restart($in); } }; my @common = ( get_any_driver_entry($in, $modules_conf, $driver, $device), { text => N("Enable PulseAudio"), type => 'bool', val => \$is_pulseaudio_enabled, disabled => sub { !$is_pulseaudio_installed }, }, { text => N("Use Glitch-Free mode"), type => 'bool', val => \$is_pulseaudio_glitchfree_enabled, disabled => sub { !$is_pulseaudio_installed || !$is_pulseaudio_enabled }, }, { advanced => 1, val => N("Reset sound mixer to default values"), clicked => sub { run_program::run('reset_sound') } }, { advanced => 1, val => N("Troubleshooting"), disabled => sub {}, clicked => sub { &trouble($in) } }, ); if ($new_driver eq 'unknown') { if ($in->ask_from_({ title => N("No alternative driver"), messages => N("There's no known OSS/ALSA alternative driver for your sound card (%s) which currently uses \"%s\"", $device->{description}, $driver), }, \@common, )) { $write_config->(); } } elsif ($in->ask_from_({ title => N("Sound configuration"), messages => N("Here you can select an alternative driver (either OSS or ALSA) for your sound card (%s).", $device->{description}) . #-PO: here the first %s is either "OSS" or "ALSA", #-PO: the second %s is the name of the current driver #-PO: and the third %s is the name of the default driver N("\n\nYour card currently uses the %s\"%s\" driver (the default driver for your card is \"%s\")", ($driver =~ /^snd_/ ? "ALSA " : "OSS "), $driver, $device->{driver}), interactive_help => sub { N("OSS (Open Sound System) was the first sound API. It's an OS independent sound API (it's available on most UNIX(tm) systems) but it's a very basic and limited API. What's more, OSS drivers all reinvent the wheel. ALSA (Advanced Linux Sound Architecture) is a modularized architecture which supports quite a large range of ISA, USB and PCI cards.\n It also provides a much higher API than OSS.\n To use alsa, one can either use: - the old compatibility OSS API - the new ALSA API that provides many enhanced features but requires using the ALSA library. "); }, }, [ { label => N("Driver:"), val => \$new_driver, list => \@alternative, default => $new_driver, sort =>1, allow_empty_list => 1, format => sub { my ($drv) = @_; $drv eq 'unknown' ? $drv : sprintf(($des{$drv} ? "$des{$drv} (%s [%s])" : "%s [%s]"), $drv, $drv =~ /^snd_/ ? 'ALSA' : 'OSS'); } }, @common, ])) { $write_config->(); return if $new_driver eq $device->{current_driver}; log::explanations("switching audio driver from '" . $device->{current_driver} . "' to '$new_driver'\n"); $in->ask_warn(N("Warning"), N("The old \"%s\" driver is blacklisted.\n It has been reported to oops the kernel on unloading.\n The new \"%s\" driver will only be used on next bootstrap.", $device->{current_driver}, $new_driver)) if $blacklisted; do_switch($in, $modules_conf, $device->{current_driver}, $new_driver, $device->{sound_slot_index}); $device->{current_driver} = $new_driver; } } elsif ($driver =~ /^Bad:/) { $driver =~ s/^Bad://; $in->ask_warn(N("No open source driver"), N("There's no free driver for your sound card (%s), but there's a proprietary driver at \"%s\".", $device->{description}, $driver)); } elsif ($driver eq "unknown") { $in->ask_from(N("No known driver"), N("There's no known driver for your sound card (%s)", $device->{description}), [ get_any_driver_entry($in, $modules_conf, $driver, $device) ]); } end: } sub config { my ($in, $modules_conf, $device) = @_; switch($in, $modules_conf, $device); } sub trouble { my ($in) = @_; $in->ask_warn(N("Sound troubleshooting"), formatAlaTeX( #-PO: keep the double empty lines between sections, this is formatted a la LaTeX N("The classic bug sound tester is to run the following commands: - \"lspcidrake -v | fgrep -i AUDIO\" will tell you which driver your card uses by default - \"grep sound-slot /etc/modprobe.conf\" will tell you what driver it currently uses - \"/sbin/lsmod\" will enable you to check if its module (driver) is loaded or not - \"/sbin/chkconfig --list sound\" and \"/sbin/chkconfig --list alsa\" will tell you if sound and alsa services are configured to be run on initlevel 3 - \"aumix -q\" will tell you if the sound volume is muted or not - \"/sbin/fuser -v /dev/dsp\" will tell which program uses the sound card. "))); } sub get_any_driver_entry { my ($in, $modules_conf, $driver, $device) = @_; return () if $::isInstall; +{ advanced => 1, val => N("Let me pick any driver"), disabled => sub {}, clicked => sub { my $old_driver = $driver; if ($in->ask_from(N("Choosing an arbitrary driver"), formatAlaTeX( #-PO: keep the double empty lines between sections, this is formatted a la LaTeX N("If you really think that you know which driver is the right one for your card you can pick one from the above list. The current driver for your \"%s\" sound card is \"%s\" ", $device->{description}, $driver)), [ { label => N("Driver:"), val => \$driver, list => [ category2modules("multimedia/sound") ], type => 'combo', default => $driver, sort =>1, separator => '|' }, ] )) { do_switch($in, $modules_conf, $old_driver, $driver, $device->{sound_slot_index}); goto end; } } }; } sub configure_one_sound_slot { my ($modules_conf, $index, $driver) = @_; $modules_conf->set_sound_slot("sound-slot-$index", $driver); $modules_conf->set_options($driver, "xbox=1") if $driver eq "snd_intel8x0" && detect_devices::is_xbox(); $modules_conf->set_options('snd-ac97-codec', "power_save=1") if $driver =~ /^snd/ && detect_devices::isLaptop() && arch() !~ /mips/; } sub configure_sound_slots { my ($modules_conf) = @_; my $altered = 0; each_index { my $default_driver = $modules_conf->get_alias("sound-slot-$::i"); if (!member($default_driver, get_alternative($_->{driver}), $_->{driver})) { $altered ||= $default_driver; configure_one_sound_slot($modules_conf, $::i, $_->{driver}); } } detect_devices::getSoundDevices(); $modules_conf->write if $altered && $::isStandalone; } 1;