2010年10月2日土曜日

デフォルトのサウンドカードを変える

サウンドデバイスはこんな感じ。snd_emu10k1xがPCI接続のサウンドカード
snd_usb_audioが、Webcamのマイク多分。
デフォルトがWebcamになるから、スピーカーから音が出なくなる。
デフォルトをサウンドカードに変更する。
ls -l /sys/module/snd/holders/
合計 0
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_ac97_codec -> ../../snd_ac97_codec
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_emu10k1x -> ../../snd_emu10k1x
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_hwdep -> ../../snd_hwdep
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_mixer_oss -> ../../snd_mixer_oss
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_pcm -> ../../snd_pcm
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_pcm_oss -> ../../snd_pcm_oss
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_rawmidi -> ../../snd_rawmidi
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_seq -> ../../snd_seq
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_seq_device -> ../../snd_seq_device
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_seq_oss -> ../../snd_seq_oss
lrwxrwxrwx 1 root root 0 2010-10-02 20:48 snd_timer -> ../../snd_timer
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_usb_audio -> ../../snd_usb_audio
lrwxrwxrwx 1 root root 0 2010-10-02 21:15 snd_usbmidi_lib -> ../../snd_usbmidi_lib

%cat /etc/modprobe.d/modprobe.conf
#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#

options snd-emu10k1x index=0
options snd_usb_audio index=1

こんな感じで、どうでしょう。再起動すれば変更されるー多分