へぇ~今はそういうことになってるんだ、と、いまさら知ったことです。
先日、そこそこ新しいパソコンでFreeBSD 7.2-STABLEな環境を構築したのですが、ふと気がつけば、音がなってません。
こんな感じで、認識されています。
% cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <HDA Realtek ALC262 PCM #0 Analog> at cad 2 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:3v/1r:3v channels duplex default)
pcm1: <HDA Realtek ALC262 PCM #1 Analog> at cad 2 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex)
認識されていて、音を鳴らそうとすると、とくに何もエラーも出ないのですが、まったく音が聞こえてきません。
man snd_hdaしてみると、device.hints(5)がどうのこうのと書いてあって、うーん、くらくらしてきました。
・・・ふと気になって、パソコンの裏側をのぞいてみました。
ヘッドフォンを挿す穴が・・・あっ、パソコンの後ろ側にもある。
出ました、音が ~♪
音が出ないときは、パソコンの正面側にある穴に、ヘッドフォンを挿していたのでした。
後と前って、別物だったんですね。最近、メーカー製のパソコンを使ったことがなかったので、そんなことになっていたとは知りませんでした。
よく見たら、端子の色が、正面側が黒、裏側が緑と、違っていました。なるほど。
☆
kernelのログメッセージを見ると、こんなのが出ています。verboseのときしか表示されないかな?
pcm0: <HDA Realtek ALC262 PCM #0 Analog> at cad 2 nid 1 on hdac0
pcm0: +--------------------------------------+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--------------------------------------+
pcm0:
pcm0: Playback:
pcm0:
pcm0: Stream cap: 0x00000001
pcm0: PCM
pcm0: PCM cap: 0x000e0560
pcm0: 16 20 24 bits, 44 48 96 192 KHz
pcm0: DAC: 2
pcm0:
pcm0: Record:
pcm0:
pcm0: Stream cap: 0x00000001
pcm0: PCM
pcm0: PCM cap: 0x00060160
pcm0: 16 20 bits, 44 48 96 KHz
pcm0: ADC: 7
pcm0:
pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0:
pcm0: Playback:
pcm0:
pcm0: nid=21 [pin: Line-out (Green Jack)]
pcm0: |
pcm0: + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0: |
pcm0: + <- nid=2 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: Record:
pcm0:
pcm0: nid=7 [audio input]
pcm0: |
pcm0: + <- nid=36 [audio mixer] [src: speaker, line, mix]
pcm0: |
pcm0: + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0: + <- nid=29 [beep widget] [src: speaker]
pcm0: + <- nid=11 [audio mixer] [src: mix]
pcm0:
pcm0: Input Mix:
pcm0:
pcm0: nid=11 [audio mixer]
pcm0: |
pcm0: + <- nid=25 [pin: Mic (Pink Jack)] [src: mic]
pcm0: + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0: + <- nid=29 [beep widget] [src: speaker]
pcm0:
pcm0: +-------------------------+
pcm0: | DUMPING Volume Controls |
pcm0: +-------------------------+
pcm0:
pcm0: Master Volume (OSS: vol)
pcm0: |
pcm0: +- ctl 12 (nid 12 out): -46/0dB (32 steps)
pcm0: +- ctl 13 (nid 12 in 0): mute
pcm0: +- ctl 14 (nid 12 in 1): mute
pcm0: +- ctl 23 (nid 21 in ): mute
pcm0:
pcm0: PCM Volume (OSS: pcm)
pcm0: |
pcm0: +- ctl 13 (nid 12 in 0): mute
pcm0:
pcm0: Line-in Volume (OSS: line)
pcm0: |
pcm0: +- ctl 31 (nid 26 out): 0/30dB (4 steps)
pcm0: +- ctl 45 (nid 36 in 2): mute
pcm0:
pcm0: Speaker/Beep Volume (OSS: speaker)
pcm0: |
pcm0: +- ctl 9 (nid 11 in 5): -34/12dB (32 steps) + mute
pcm0: +- ctl 48 (nid 36 in 5): mute
pcm0:
pcm0: Recording Level (OSS: rec)
pcm0: |
pcm0: +- ctl 1 (nid 7 in 0): -12/34dB (32 steps) + mute
pcm0: +- ctl 45 (nid 36 in 2): mute
pcm0: +- ctl 48 (nid 36 in 5): mute
pcm0: +- ctl 51 (nid 36 in 8): mute
pcm0:
pcm0: Input Mix Level (OSS: mix)
pcm0: |
pcm0: +- ctl 5 (nid 11 in 1): -34/12dB (32 steps) + mute
pcm0: +- ctl 6 (nid 11 in 2): -34/12dB (32 steps) + mute
pcm0: +- ctl 9 (nid 11 in 5): -34/12dB (32 steps) + mute
pcm0: +- ctl 14 (nid 12 in 1): mute
pcm0: +- ctl 51 (nid 36 in 8): mute
pcm0:
pcm0: Enabling Soft PCM volume
pcm0: Mixer "vol":
pcm0: Mixer "pcm":
pcm0: Mixer "speaker":
pcm0: Mixer "line":
pcm0: Mixer "mix":
pcm0: Mixer "rec":
pcm0: Soft PCM mixer ENABLED
pcm0: clone manager: deadline=750ms flags=0x8000001e
pcm0: sndbuf_setmap 1310000, 4000; 0xe5967000 -> 1310000
pcm0: sndbuf_setmap 1320000, 4000; 0xe5977000 -> 1320000
pcm1: <HDA Realtek ALC262 PCM #1 Analog> at cad 2 nid 1 on hdac0
pcm1: +--------------------------------------+
pcm1: | DUMPING PCM Playback/Record Channels |
pcm1: +--------------------------------------+
pcm1:
pcm1: Playback:
pcm1:
pcm1: Stream cap: 0x00000001
pcm1: PCM
pcm1: PCM cap: 0x000e0560
pcm1: 16 20 24 bits, 44 48 96 192 KHz
pcm1: DAC: 3
pcm1:
pcm1: Record:
pcm1:
pcm1: Stream cap: 0x00000001
pcm1: PCM
pcm1: PCM cap: 0x00060160
pcm1: 16 20 bits, 44 48 96 KHz
pcm1: ADC: 8
pcm1:
pcm1: +-------------------------------+
pcm1: | DUMPING Playback/Record Paths |
pcm1: +-------------------------------+
pcm1:
pcm1: Playback:
pcm1:
pcm1: nid=27 [pin: Headphones (Black Jack)]
pcm1: |
pcm1: + <- nid=13 [audio mixer] [src: pcm, mix]
pcm1: |
pcm1: + <- nid=3 [audio output] [src: pcm]
pcm1: + <- nid=11 [audio mixer] [src: mix]
pcm1:
pcm1: Record:
pcm1:
pcm1: nid=8 [audio input]
pcm1: |
pcm1: + <- nid=35 [audio mixer] [src: speaker, mic, mix]
pcm1: |
pcm1: + <- nid=25 [pin: Mic (Pink Jack)] [src: mic]
pcm1: + <- nid=29 [beep widget] [src: speaker]
pcm1: + <- nid=11 [audio mixer] [src: mix]
pcm1:
pcm1: +-------------------------+
pcm1: | DUMPING Volume Controls |
pcm1: +-------------------------+
pcm1:
pcm1: Master Volume (OSS: vol)
pcm1: |
pcm1: +- ctl 15 (nid 13 out): -46/0dB (32 steps)
pcm1: +- ctl 16 (nid 13 in 0): mute
pcm1: +- ctl 17 (nid 13 in 1): mute
pcm1: +- ctl 32 (nid 27 in ): mute
pcm1:
pcm1: PCM Volume (OSS: pcm)
pcm1: |
pcm1: +- ctl 16 (nid 13 in 0): mute
pcm1:
pcm1: Microphone Volume (OSS: mic)
pcm1: |
pcm1: +- ctl 29 (nid 25 out): 0/30dB (4 steps)
pcm1: +- ctl 35 (nid 35 in 1): mute
pcm1:
pcm1: Speaker/Beep Volume (OSS: speaker)
pcm1: |
pcm1: +- ctl 39 (nid 35 in 5): mute
pcm1:
pcm1: Recording Level (OSS: rec)
pcm1: |
pcm1: +- ctl 2 (nid 8 in 0): -12/34dB (32 steps) + mute
pcm1: +- ctl 35 (nid 35 in 1): mute
pcm1: +- ctl 39 (nid 35 in 5): mute
pcm1: +- ctl 42 (nid 35 in 8): mute
pcm1:
pcm1: Input Mix Level (OSS: mix)
pcm1: |
pcm1: +- ctl 17 (nid 13 in 1): mute
pcm1: +- ctl 42 (nid 35 in 8): mute
pcm1:
pcm1: Enabling Soft PCM volume
pcm1: Mixer "vol":
pcm1: Mixer "pcm":
pcm1: Mixer "speaker":
pcm1: Mixer "mic":
pcm1: Mixer "mix":
pcm1: Mixer "rec":
pcm1: Soft PCM mixer ENABLED
pcm1: clone manager: deadline=750ms flags=0x8000001e
pcm1: sndbuf_setmap 1330000, 4000; 0xe5987000 -> 1330000
pcm1: sndbuf_setmap 1340000, 4000; 0xe5997000 -> 1340000
よーく見ると、こんなことが書かれています。
pcm0: Playback:
pcm0:
pcm0: nid=21 [pin: Line-out (Green Jack)]pcm1: Playback:
pcm1:
pcm1: nid=27 [pin: Headphones (Black Jack)]
なるほど、そういうこと?
0 件のコメント:
コメントを投稿