{"id":1549,"date":"2006-12-29T15:47:00","date_gmt":"2006-12-29T15:47:00","guid":{"rendered":"http:\/\/gleamynode.net\/articles\/1549\/alsa-oss-emulation-with-multiple-sound-cards"},"modified":"2022-12-28T01:46:42","modified_gmt":"2022-12-27T16:46:42","slug":"alsa-oss-emulation-with-multiple-sound-cards","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1549\/alsa-oss-emulation-with-multiple-sound-cards\/","title":{"rendered":"ALSA OSS Emulation with Multiple Sound Cards"},"content":{"rendered":"
\uc0ac\uc6b4\ub4dc \uce74\ub4dc \uc5ec\ub7ec\uac1c\uc77c \ub54c\uc758 ALSA OSS \uc5d0\ubbac\ub808\uc774\uc158<\/p>\n
aoss<\/tt> is a useful command that forwards all OSS (Open Sound System)<\/a> requests to ALSA (Advanced Linux Sound Architecture)<\/a> device drivers transparently, but it’s sometimes not so easy to use when an executable is wrapped by a shell script like VMware<\/a>. The most easiest and clean solution for OSS emulation is loading snd-pcm-oss<\/tt> module by adding the following line in the \/etc\/modules<\/tt> file.<\/p>\n aoss<\/tt>\ub294 \ubaa8\ub4e0 OSS (Open Sound System)<\/a> \uc694\uccad\uc744 ALSA (Advanced Linux Sound Architecture)<\/a> \ub4dc\ub77c\uc774\ubc84\ub85c \ud22c\uba85\ud558\uac8c \uc804\ub2ec\ud574 \uc8fc\ub294 \uc720\uc6a9\ud55c \uba85\ub839\uc774\uc9c0\ub9cc, VMware<\/a>\ucc98\ub7fc \uc2e4\ud589 \ud30c\uc77c\uc774 \uc258 \uc2a4\ud06c\ub9bd\ud2b8\ub85c \ub458\ub7ec\uc2f8\uc5ec \uc788\uc73c\uba74 \uc0ac\uc6a9\ud558\uae30\uac00 \uc27d\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. OSS \uc5d0\ubbac\ub808\uc774\uc158\uc5d0 \ub300\ud574 \uac00\uc7a5 \uc27d\uace0 \uae54\ub054\ud55c \ubc29\ubc95\uc740 \/etc\/modules<\/tt> \ud30c\uc77c\uc5d0 \ub2e4\uc74c \ud589\uc744 \ucd94\uac00\ud574 snd-pcm-oss<\/tt> \ubaa8\ub4c8\uc744 \ub85c\ub4dc\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n \nIs that all? Not actually if you have more than one sound cards. You have to choose which one is your primary sound card, where the OSS requests should be forwarded to. In my case, my primary sound card is ESI Audiotechinik Juli@<\/a>, and the secondary one is built-in Intel i8x0 chip. You can set the order of these sound cards by adding kernel options to the \/boot\/grub\/menu.lst<\/tt> file like the following.<\/p>\n \uc774\uac8c \ub2e4\uc77c\uae4c\uc694? \uc0ac\uc6b4\ub4dc \uce74\ub4dc\uac00 \ud558\ub098 \uc774\uc0c1\uc774\ub77c\uba74 \ub2e4\uac00 \uc544\ub2d9\ub2c8\ub2e4. OSS \uc694\uccad\uc744 \ud3ec\uc6cc\ub529 \ubc1b\uc744 \uccab \ubc88\uc9f8 \uc0ac\uc6b4\ub4dc \uce74\ub4dc\ub97c \uc815\ud574 \uc8fc\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc800\uac19\uc740 \uacbd\uc6b0 \uccab \ubc88\uc9f8 \uce74\ub4dc\ub294 ESI Juli@<\/a>\uc774\uace0, \ub450 \ubc88\uc9f8 \uce74\ub4dc\ub294 \ub0b4\uc7a5\ub41c \uc778\ud154 i8x0 \uce69\uc785\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 \/boot\/grub\/menu.lst<\/tt> \ud30c\uc77c\uc5d0 \ucee4\ub110 \uc635\uc158\uc744 \ucd94\uac00\ud558\uc5ec \uc774\ub4e4 \uc0ac\uc6b4\ub4dc \uce74\ub4dc\uc758 \uc21c\uc11c\ub97c \uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n \nIf you are using a different sound card, you could replace the driver names above (snd-xxxx<\/tt>) with yours. If you are finished editing the menu.lst<\/tt> file, you have to run update-grub<\/tt> command to auto-generate other sections of the menu.lst<\/tt>.<\/p>\n \ub2e4\ub978 \uc0ac\uc6b4\ub4dc \uce74\ub4dc\ub97c \uc0ac\uc6a9\ud558\uace0 \uacc4\uc2e0\ub2e4\uba74 \uc704\uc758 \ub4dc\ub77c\uc774\ubc84 \uc774\ub984\ub4e4\uc744 (snd-xxxx<\/tt>) \uac16\uace0 \uacc4\uc2e0 \uc0ac\uc6b4\ub4dc \uce74\ub4dc\uc758 \ub4dc\ub77c\uc774\ubc84\ub85c \ubc14\uafb8\uba74 \ub429\ub2c8\ub2e4. menu.lst<\/tt> \ud30c\uc77c \uc218\uc815\uc744 \ub9c8\uce58\uba74, update-grub<\/tt> \uba85\ub839\uc744 \uc2e4\ud589\ud574 menu.lst<\/tt> \ud30c\uc77c\uc758 \ub2e4\ub978 \ubd80\ubd84\uc744 \uc790\ub3d9 \uc0dd\uc131\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n \uc0ac\uc6b4\ub4dc \uce74\ub4dc \uc5ec\ub7ec\uac1c\uc77c \ub54c\uc758 ALSA OSS \uc5d0\ubbac\ub808\uc774\uc158 aoss is a useful command that forwards all OSS (Open Sound System) requests to ALSA (Advanced Linux Sound Architecture) device drivers transparently, but it’s sometimes not so easy to use when an executable is wrapped by a shell script like VMware. The most easiest and clean solution for… Continue reading \n
snd-pcm-oss<\/pre>\n<\/blockquote>\n
\n
## additional options to use with the default boot option, but not with the
\n## alternatives
\n## e.g. defoptions=vga=791 resume=\/dev\/hda5
\n# defoptions=snd-ice17xx-ak4xxx.index=0 snd-intel8x0.index=1<\/pre>\n<\/blockquote>\n\n
trustin@primary:~$ sudo update-grub
\nPassword:
\nSearching for GRUB installation directory ... found: \/boot\/grub
\nTesting for an existing GRUB menu.list file ... found: \/boot\/grub\/menu.lst
\nSearching for splash image ... none found, skipping ...
\nFound kernel: \/vmlinuz-2.6.17-10-generic
\nFound kernel: \/vmlinuz-2.6.15-27-686
\nFound kernel: \/vmlinuz-2.6.15-26-686
\nFound kernel: \/vmlinuz-2.6.15-25-686
\nUpdating \/boot\/grub\/menu.lst ... done<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"