Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Mar 2011 17:38:38 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-multimedia@freebsd.org
Subject:   9-CURRENT && snd_hda(4): very low recording level
Message-ID:  <20110326163837.GA8010@tinyCurrent>

next in thread | raw e-mail | index | archive | help

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hello,

I'm struggling since some weeks with the snd_hda(4) configuration in one
of my laptops; the snd_hda(4) gives me 3 pcm devices:

$ cat /dev/sndstat 
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA Realtek ALC880 PCM #0 Digital> (play/rec) default
pcm1: <HDA Realtek ALC880 PCM #1 Analog> (rec)
pcm2: <HDA Realtek ALC880 PCM #2 Analog> (rec)

and I can only do recording from the 3rd one, i.e. from /dev/dsp2 which
is the microfone jack; I have as well three /dev/mixer? devices and for
the 3rd it says only:

$ mixer -f /dev/mixer2          
Recording source: monitor
$ mixer -f /dev/mixer2 bla
mixer: unknown device: bla
usage: mixer [-f device] [-s | -S] [dev [+|-][voll[:[+|-]volr]] ...
       mixer [-f device] [-s | -S] recsrc ...
       mixer [-f device] [-s | -S] {^|+|-|=}rec rdev ...

 rec devices: monitor

I don't see how to higher the volume of recording after having tried all
the values in device.hints(5), like:

hint.hdac.0.cad1.nid20.config="as=1 seq=15 device=Headphones"
hint.hdac.0.cad1.nid28.config="as=2 seq=0 device=Speaker"
# default logs in messages:
# hdac0: FG config/quirks: gpio0 forcestereo ivref50 ivref80 ivref100
# tested:
# ivref, gpio1, ...
# hint.hdac.0.config="ivref100 ovref100"
# hint.hdac.0.config="gpio3 gpio4 gpio5 gpio6 gpio7"
# hint.hdac.0.config="softpcmvol"
# hint.hdac.0.config="senseinv"
# "senseinv" mutes the mic-Jack completely
hint.hdac.0.config="vref"

nothing of the above options helped. Any hints are higly welcome.
Thanks in advance

I'm attaching 'dmesg | fgrep pcm'

	matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pcm.txt"

hdac0:             OSS: pcm (pcm)
hdac0:             OSS: pcm (pcm)
hdac0:             OSS: pcm (pcm)
hdac0:             OSS: pcm (pcm)
hdac0:             OSS: pcm (pcm)
hdac0:             OSS: pcm, speaker, line, mic, monitor
hdac0:             OSS: pcm, speaker, line, mic, monitor
hdac0:             OSS: pcm, speaker, line, mic, monitor
hdac0:             OSS: pcm, speaker, line, mic, monitor
pcm0: <HDA Realtek ALC880 PCM #0 Digital> at cad 1 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: 0x000e0160
pcm0:                  16 20 24 bits, 44 48 96 KHz
pcm0:             DAC: 4 3 5 6 2
pcm0: 
pcm0: Record:
pcm0: 
pcm0:      Stream cap: 0x00000005
pcm0:                  AC3 PCM
pcm0:         PCM cap: 0x001e0160
pcm0:                  16 20 24 32 bits, 44 48 96 KHz
pcm0:             ADC: 10
pcm0: 
pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:     nid=22 [pin: Line-out (Orange Jack)]
pcm0:       |
pcm0:       + <- nid=14 [audio mixer] [src: pcm, speaker, line, mic, monitor]
pcm0:              |
pcm0:              + <- nid=4 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: speaker, line, mic, monitor]
pcm0:                     |
pcm0:                     + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm0:                     + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
pcm0:                     + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0:                     + <- nid=29 [beep widget] [src: speaker]
pcm0: 
pcm0:     nid=21 [pin: Line-out (Black Jack)]
pcm0:       |
pcm0:       + <- nid=13 [audio mixer] [src: pcm, speaker, line, mic, monitor]
pcm0:              |
pcm0:              + <- nid=3 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: speaker, line, mic, monitor]
pcm0:                     |
pcm0:                     + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm0:                     + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
pcm0:                     + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0:                     + <- nid=29 [beep widget] [src: speaker]
pcm0: 
pcm0:     nid=23 [pin: Line-out (Grey Jack)]
pcm0:       |
pcm0:       + <- nid=15 [audio mixer] [src: pcm, speaker, line, mic, monitor]
pcm0:              |
pcm0:              + <- nid=5 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: speaker, line, mic, monitor]
pcm0:                     |
pcm0:                     + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm0:                     + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
pcm0:                     + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0:                     + <- nid=29 [beep widget] [src: speaker]
pcm0: 
pcm0:     nid=30 [pin: SPDIF-out (Black Jack)]
pcm0:       |
pcm0:       + <- nid=6 [audio output] [src: pcm]
pcm0: 
pcm0:     nid=20 [pin: Headphones (Green Jack)]
pcm0:       |
pcm0:       + <- nid=12 [audio mixer] [src: pcm, speaker, line, mic, monitor]
pcm0:              |
pcm0:              + <- nid=2 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: speaker, line, mic, monitor]
pcm0:                     |
pcm0:                     + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm0:                     + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
pcm0:                     + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm0:                     + <- nid=29 [beep widget] [src: speaker]
pcm0: 
pcm0: Record:
pcm0: 
pcm0:     nid=10 [audio input]
pcm0:       |
pcm0:       + <- nid=31 [pin: SPDIF-in (Orange Jack)] [src: dig1]
pcm0: 
pcm0: +-------------------------+
pcm0: | DUMPING Volume Controls |
pcm0: +-------------------------+
pcm0: 
pcm0: Master Volume (OSS: vol)
pcm0:    |
pcm0:    +- ctl 12 (nid  12 out):    -64/0dB (65 steps)
pcm0:    +- ctl 13 (nid  12 in   0): mute
pcm0:    +- ctl 14 (nid  12 in   1): mute
pcm0:    +- ctl 15 (nid  13 out):    -64/0dB (65 steps)
pcm0:    +- ctl 16 (nid  13 in   0): mute
pcm0:    +- ctl 17 (nid  13 in   1): mute
pcm0:    +- ctl 18 (nid  14 out):    -64/0dB (65 steps)
pcm0:    +- ctl 19 (nid  14 in   0): mute
pcm0:    +- ctl 20 (nid  14 in   1): mute
pcm0:    +- ctl 21 (nid  15 out):    -64/0dB (65 steps)
pcm0:    +- ctl 22 (nid  15 in   0): mute
pcm0:    +- ctl 23 (nid  15 in   1): mute
pcm0:    +- ctl 24 (nid  20 in ):    mute
pcm0:    +- ctl 25 (nid  21 in ):    mute
pcm0:    +- ctl 26 (nid  22 in ):    mute
pcm0:    +- ctl 27 (nid  23 in ):    mute
pcm0: 
pcm0: PCM Volume (OSS: pcm)
pcm0:    |
pcm0:    +- ctl 13 (nid  12 in   0): mute
pcm0:    +- ctl 16 (nid  13 in   0): mute
pcm0:    +- ctl 19 (nid  14 in   0): mute
pcm0:    +- ctl 22 (nid  15 in   0): mute
pcm0: 
pcm0: Microphone Volume (OSS: mic)
pcm0:    |
pcm0:    +- ctl  4 (nid  11 in   0): -35/30dB (66 steps) + mute
pcm0: 
pcm0: Microphone2 Volume (OSS: monitor)
pcm0:    |
pcm0:    +- ctl  5 (nid  11 in   1): -35/30dB (66 steps) + mute
pcm0: 
pcm0: Line-in Volume (OSS: line)
pcm0:    |
pcm0:    +- ctl  6 (nid  11 in   2): -35/30dB (66 steps) + mute
pcm0: 
pcm0: Speaker/Beep Volume (OSS: speaker)
pcm0:    |
pcm0:    +- ctl  9 (nid  11 in   5): -35/30dB (66 steps) + mute
pcm0: 
pcm0: Input Monitoring Level (OSS: igain)
pcm0:    |
pcm0:    +- ctl 14 (nid  12 in   1): mute
pcm0:    +- ctl 17 (nid  13 in   1): mute
pcm0:    +- ctl 20 (nid  14 in   1): mute
pcm0:    +- ctl 23 (nid  15 in   1): mute
pcm0: 
pcm0: Enabling Soft PCM volume
pcm0: Mixer "vol":
pcm0: Mixer "pcm":
pcm0: Mixer "speaker":
pcm0: Mixer "line":
pcm0: Mixer "mic":
pcm0: Mixer "igain":
pcm0: Mixer "monitor":
pcm0: Soft PCM mixer ENABLED
pcm0: clone manager: deadline=750ms flags=0x8000001e
pcm0: sndbuf_setmap 3ec60000, 4000; 0xe46f6000 -> 3ec60000
pcm0: sndbuf_setmap 3ec70000, 4000; 0xe4706000 -> 3ec70000
pcm1: <HDA Realtek ALC880 PCM #1 Analog> at cad 1 nid 1 on hdac0
pcm1: +--------------------------------------+
pcm1: | DUMPING PCM Playback/Record Channels |
pcm1: +--------------------------------------+
pcm1: 
pcm1: Record:
pcm1: 
pcm1:      Stream cap: 0x00000001
pcm1:                  PCM
pcm1:         PCM cap: 0x00060160
pcm1:                  16 20 bits, 44 48 96 KHz
pcm1:             ADC: 7
pcm1: 
pcm1: +-------------------------------+
pcm1: | DUMPING Playback/Record Paths |
pcm1: +-------------------------------+
pcm1: 
pcm1: Record:
pcm1: 
pcm1:     nid=7 [audio input]
pcm1:       |
pcm1:       + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm1:       + <- nid=26 [pin: Line-in (Blue Jack)] [src: line]
pcm1: 
pcm1: +-------------------------+
pcm1: | DUMPING Volume Controls |
pcm1: +-------------------------+
pcm1: 
pcm1: Microphone Volume (OSS: mic)
pcm1:    |
pcm1:    +- ctl  1 (nid   7 in   0): 0/35dB (36 steps) + mute
pcm1: 
pcm1: Recording Level (OSS: rec)
pcm1:    |
pcm1:    +- ctl  1 (nid   7 in   0): 0/35dB (36 steps) + mute
pcm1: 
pcm1: Mixer "mic":
pcm1: Mixer "rec":
pcm1: clone manager: deadline=750ms flags=0x8000001e
pcm1: sndbuf_setmap 3ec80000, 4000; 0xe4716000 -> 3ec80000
pcm2: <HDA Realtek ALC880 PCM #2 Analog> at cad 1 nid 1 on hdac0
pcm2: +--------------------------------------+
pcm2: | DUMPING PCM Playback/Record Channels |
pcm2: +--------------------------------------+
pcm2: 
pcm2: Record:
pcm2: 
pcm2:      Stream cap: 0x00000001
pcm2:                  PCM
pcm2:         PCM cap: 0x00060160
pcm2:                  16 20 bits, 44 48 96 KHz
pcm2:             ADC: 8
pcm2: 
pcm2: +-------------------------------+
pcm2: | DUMPING Playback/Record Paths |
pcm2: +-------------------------------+
pcm2: 
pcm2: Record:
pcm2: 
pcm2:     nid=8 [audio input]
pcm2:       |
pcm2:       + <- nid=25 [pin: Mic (Pink Jack)] [src: monitor]
pcm2: 
pcm2: +-------------------------+
pcm2: | DUMPING Volume Controls |
pcm2: +-------------------------+
pcm2: 
pcm2: clone manager: deadline=750ms flags=0x8000001e
pcm2: sndbuf_setmap 3ec90000, 4000; 0xe4726000 -> 3ec90000

--huq684BweRXVnRxX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110326163837.GA8010>