snd_hda(4): speaker DISABLED after update to 9-CURRENT

2011-02-26 Thread Matthias Apitz

Hello,

I've installed 9-CURRENT on a laptop which worked fine before with
7.0-REL, concerning the sound via snd_hda(4). Now there is only sound
coming out from the headphone jack and I don't see how to enable the
speaker again. Btw: Why is this now so different on the same hardware
with the same driver?

$ cat /dev/sndstat 
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0:  (play/rec) default
pcm1:  (rec)
pcm2:  (rec)

I'm attaching as well the grep'ed dmesg output for 'hdac' and 'pcm'.

Could someone please give me a hint how to get the speaker working again?
Thanks in advance

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
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:  at cad 1 nid 1 on hdac0
pcm0: +--+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:  Stream cap: 0x0001
pcm0:  PCM
pcm0: PCM cap: 0x000e0160
pcm0:  16 20 24 bits, 44 48 96 KHz
pcm0: DAC: 2 4 3 5 6
pcm0: 
pcm0: Record:
pcm0: 
pcm0:  Stream cap: 0x0005
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=20 [pin: Line-out (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: 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: 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 (ni

Re: snd_hda(4): speaker DISABLED after update to 9-CURRENT

2011-02-26 Thread Eitan Adler
On Sat, Feb 26, 2011 at 11:58 AM, Matthias Apitz  wrote:
> Could someone please give me a hint how to get the speaker working again?

Try changing sysctl hw.snd.default_unit=0/1/2



-- 
Eitan Adler
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: snd_hda(4): speaker DISABLED after update to 9-CURRENT

2011-02-27 Thread Matthias Apitz
El día Saturday, February 26, 2011 a las 01:52:02PM -0500, Eitan Adler escribió:

> On Sat, Feb 26, 2011 at 11:58 AM, Matthias Apitz  wrote:
> > Could someone please give me a hint how to get the speaker working again?
> 
> Try changing sysctl hw.snd.default_unit=0/1/2

Thanks, but this was my first check as well and does not help.

I started to play around with the device.hints(5) config and here is
what I figured out:

It took me some tine to realize that 'cad0' is the modem, while the real
audio is 'cad1'.

So I set in device.hints(5):

# kenv | fgrep hdac
hint.hdac.0.cad1.nid20.config="as=1 seq=15 device=Headphones"
hint.hdac.0.cad1.nid28.config="as=2 seq=0  device=Speaker"

which is to be seen in the verbose logging on boot as:

# dmesg | fgrep hdac | more
...
hdac0:  Found modem FG nid=1 startnode=2 endnode=38 total=36
hdac0: Probing codec #1...
hdac0: HDA Codec #1: Realtek ALC880
hdac0:  HDA Codec ID: 0x10ec0880
hdac0:Vendor: 0x10ec
hdac0:Device: 0x0880
hdac0:  Revision: 0x08
hdac0:  Stepping: 0x00
hdac0: PCI Subvendor: 0x107c1734
hdac0:  Found audio FG nid=1 startnode=2 endnode=34 total=32
hdac0: 
hdac0: Processing modem FG cad=0 nid=1...
hdac0: 
hdac0: Processing audio FG cad=1 nid=1...
hdac0: GPIO: 0x4002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0:  nid 20 0x01014010 as  1 seq  0  Line-out  Jack jack  1 loc 1 color  
 Green misc 0
hdac0: Patching pin config nid=20 0x01014010 -> 0x0121401f
...
hdac0:  nid 28 0x41f0 as 15 seq  0   Speaker  None jack  1 loc 1 color  
 Black misc 1
hdac0: Patching pin config nid=28 0x41f0 -> 0x4120

i.e. the above device.hints(5) are realized by snd_hda(4); but than it
says:

hdac0: Patched pins configuration:
hdac0:  nid 20 0x0121401f as  1 seq 15Headphones  Jack jack  1 loc 1 color  
 Green misc 0
...
hdac0:  nid 28 0x4120 as  2 seq  0   Speaker  None jack  1 loc 1 color  
 Black misc 1 [DISABLED]

why is 'nid 28' DISABLED?


in the user-land the situation is like this:

there are 3 mixer (/dev/mixer0..2) and of course I checked if they are
all fully up, with one exeption:

# mixer -f /dev/mixer2 
Recording source: monitor

i.e. the recording level can't be controlled, why?

there are the following /dev/dsp* devices:

# ls /dev/dsp*
/dev/dsp0.0 /dev/dsp0.1 /dev/dsp1.0 /dev/dsp2.0

and with Skype (or also just with dd(1)) recording can be done from the
device /dev/dsp2 and audio is coming out from /dev/dsp0 (but only
through the headphone Jack).

What can I do to make the Speaker of the laptop working? The Speaker
itself works, for example without any application it just echoes
back what from the internal microphone or from the headset micro is
coming.

Thanks in advance

mattias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"