No sound from snd_hda

From: Damian Gerow <dgerow_at_afflictions.org>
Date: Mon, 22 Dec 2008 11:46:32 -0500
(I've been meaning to send this in for a while...)

I've got an Intel HDA device that is sort-of detected, but I get no sound
from it:

-----
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <HDA Conexant (Unknown) PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: <HDA Conexant (Unknown) PCM #1 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex)
-----

The same device looked almost exactly the same on a 7.1-BETA build, but I
actually had audio output.

I've checked the mixer device, tried muting and unmuting various channels,
all to no avail.  The audio devices are created, and every program I've
tried opens them successfully, but I get no actual sound.

I've tried searching around, but I haven't been able to turn anything up.
Is there something I'm missing?  Something I should be doing that I'm not?

-----
% ls -lat /dev | head
total 12
 30 crw-rw-rw-   1 root  wheel     -   0,  30 22 Dec 11:33 null
104 crw-rw-rw-   1 root  wheel     -   0, 104 22 Dec 11:33 dsp0.0
100 crw-rw-rw-   1 root  wheel     -   0, 100 22 Dec 11:25 midistat
102 crw-rw-rw-   1 root  wheel     -   0, 102 22 Dec 11:25 mixer0
103 crw-rw-rw-   1 root  wheel     -   0, 103 22 Dec 11:25 mixer1
 99 cr--r--r--   1 root  wheel     -   0,  99 22 Dec 11:25 sndstat
  6 crw-------   1 root  wheel     -   0,   6 22 Dec 11:25 console
 43 crw-------   1 root  tty       -   0,  43 22 Dec 01:01 ttyv0
101 dr-xr-xr-x   2 root  wheel     -      512 22 Dec 00:47 msdosfs
% ls -ld /dev/dsp /dev/mixer
107 crw-rw-rw-  1 root  wheel  -   0, 107 22 Dec 11:35 /dev/dsp
102 crw-rw-rw-  1 root  wheel  -   0, 102 22 Dec 11:25 /dev/mixer
%
-----

(I do find it curious that the dsp and mixer devices exist, but only if I
list them explicitly.)

-----
% mixer
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer rec      is currently set to   0:0
Recording source: mic
% mplayer -v test.mp3 
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     P8600  _at_ 2.40GHz (Family: 6, Model: 23,
Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
<snip>
==> Found audio stream: 0
demux_audio: seeking from 0x14F0F1 to start pos 0x0
demux_audio: audio data 0x0 - 0x14F16E  
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 2.0, Layer III, 22050 Hz 56 kbit Single-Channel, BPF: 183
Channels: 1, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 22050 Hz, 2 ch, s16le, 56.0 kbit/7.94% (ratio: 7000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 22050Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[dummy] Was reinitialized: 22050Hz/2ch/s16le
ao2: 22050 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 22050 Hz samplerate (requested: 22050)
audio_setup: frags:  32/32  (1024 bytes/frag)  free:  32768
AO: [oss] 22050Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[dummy] Was reinitialized: 22050Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
A:   0.8 (00.7) of 196.0 (03:16.0)  0.2% 
^C
MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: mp3lib
vo: x11 uninit called but X11 not inited..
% 
-----
Received on Mon Dec 22 2008 - 15:46:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC