snd_hda peculiarities

2009-12-30 Thread Richard L. Mace
I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and most 
things are working. However, a minor annoyance is that I only get sound if I 
manually load snd_hda via:

# kldload snd_hda

i.e., after booting. If I place the following in /boot/loader.conf

snd_hda_load=YES

I get no sound, even though the driver seems to load and cat /dev/sndstat 
gives
--
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at cad 0 nid 1 on hdac0 kld 
snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at cad 0 nid 1 on hdac0 kld 
snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)


Googling, I found this page: 

http://lists.freebsd.org/pipermail/freebsd-bugs/2009-June/035677.html

Which reports precisely the behaviour I am experiencing. No fix or workaround 
is suggested.

Has anyone with similar hardware managed to get this driver working? Any 
workarounds to my problem? My audio hardware is...

$pciconf -lv 
stuff omitted
hd...@pci0:0:27:0:  class=0x040300 card=0x30c5103c chip=0x284b8086 
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'

device = 'Intel audio controller embedded with the 82801H chipset ( 
ICH8 chipset ) (82801H)'

class  = multimedia 

subclass   = HDA 

And I am using
$ uname -a
FreeBSD belenos 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 
2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Many thanks
-Richard


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


Re: snd_hda peculiarities

2009-12-30 Thread Mark


--- On Wed, 12/30/09, Richard L. Mace mac...@telkomsa.net wrote:

 From: Richard L. Mace mac...@telkomsa.net
 Subject: snd_hda peculiarities
 To: freebsd-questions@freebsd.org
 Date: Wednesday, December 30, 2009, 8:45 AM
 I recently installed FreeBSD 8.0
 (amd64) on my laptop (HP 8510w) and most 
 things are working. However, a minor annoyance is that I
 only get sound if I 
 manually load snd_hda via:
 
 # kldload snd_hda
 
 i.e., after booting. If I place the following in
 /boot/loader.conf
 
 snd_hda_load=YES
 
 I get no sound, even though the driver seems to load and
 cat /dev/sndstat 
 gives
 --
 FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
 Installed devices:
 pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at
 cad 0 nid 1 on hdac0 kld 
 snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
 pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at
 cad 0 nid 1 on hdac0 kld 
 snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
 
 
 Googling, I found this page: 
 
 http://lists.freebsd.org/pipermail/freebsd-bugs/2009-June/035677.html
 
 Which reports precisely the behaviour I am experiencing. No
 fix or workaround 
 is suggested.
 
 Has anyone with similar hardware managed to get this driver
 working? Any 
 workarounds to my problem? My audio hardware is...
 
 $pciconf -lv 
 stuff omitted
 hd...@pci0:0:27:0:      class=0x040300
 card=0x30c5103c chip=0x284b8086 
 rev=0x03 hdr=0x00        
     vendor     = 'Intel
 Corporation'             
                
                
               
     device     = 'Intel audio
 controller embedded with the 82801H chipset ( 
 ICH8 chipset ) (82801H)'         
                
                
                
                
                
   
     class      = multimedia 
                
                
                
                
    
     subclass   = HDA 
 
 And I am using
 $ uname -a
 FreeBSD belenos 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
 21 15:02:08 UTC 
 2009     r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
 amd64
 
 Many thanks
 -Richard
 

Try adding sound_load=YES to the loader.conf HTH

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


Re: snd_hda peculiarities

2009-12-30 Thread Richard L. Mace
On Wednesday 30 December 2009 17:12:35 Mark wrote:
 --- On Wed, 12/30/09, Richard L. Mace mac...@telkomsa.net wrote:
  From: Richard L. Mace mac...@telkomsa.net
  Subject: snd_hda peculiarities
  To: freebsd-questions@freebsd.org
  Date: Wednesday, December 30, 2009, 8:45 AM
  I recently installed FreeBSD 8.0
  (amd64) on my laptop (HP 8510w) and most
  things are working. However, a minor annoyance is that I
  only get sound if I
  manually load snd_hda via:
 
  # kldload snd_hda
 
  i.e., after booting. If I place the following in
  /boot/loader.conf
 
  snd_hda_load=YES
 
  I get no sound, even though the driver seems to load and
  cat /dev/sndstat
  gives
  -
 - FreeBSD Audio Driver
  (newpcm: 64bit 2009061500/amd64)
  Installed devices:
  pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at
  cad 0 nid 1 on hdac0 kld
  snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
  pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at
  cad 0 nid 1 on hdac0 kld
  snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
  -
 ---
 
  Googling, I found this page:
 
  http://lists.freebsd.org/pipermail/freebsd-bugs/2009-June/035677.html
 
  Which reports precisely the behaviour I am experiencing. No
  fix or workaround
  is suggested.
 
  Has anyone with similar hardware managed to get this driver
  working? Any
  workarounds to my problem? My audio hardware is...
 
  $pciconf -lv
  stuff omitted
  hd...@pci0:0:27:0:  class=0x040300
  card=0x30c5103c chip=0x284b8086
  rev=0x03 hdr=0x00   
  vendor = 'Intel
  Corporation' 
 
 
   
  device = 'Intel audio
  controller embedded with the 82801H chipset (
  ICH8 chipset ) (82801H)' 
 
 
 
 
 
   
  class  = multimedia 
 
 
 
 
 
  subclass   = HDA
 
  And I am using
  $ uname -a
  FreeBSD belenos 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
  21 15:02:08 UTC
  2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
  amd64
 
  Many thanks
  -Richard
 
 Try adding sound_load=YES to the loader.conf HTH
 

Thanks, but unfortunately result still the same -- no sound.
-Richard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda peculiarities

2009-12-30 Thread Mark Moellering

Richard L. Mace wrote:
I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and most 
things are working. However, a minor annoyance is that I only get sound if I 
manually load snd_hda via:


# kldload snd_hda

i.e., after booting. If I place the following in /boot/loader.conf

snd_hda_load=YES

I get no sound, even though the driver seems to load and cat /dev/sndstat 
gives

--
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at cad 0 nid 1 on hdac0 kld 
snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at cad 0 nid 1 on hdac0 kld 
snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)



Googling, I found this page: 


http://lists.freebsd.org/pipermail/freebsd-bugs/2009-June/035677.html

Which reports precisely the behaviour I am experiencing. No fix or workaround 
is suggested.


Has anyone with similar hardware managed to get this driver working? Any 
workarounds to my problem? My audio hardware is...


$pciconf -lv 
stuff omitted
hd...@pci0:0:27:0:  class=0x040300 card=0x30c5103c chip=0x284b8086 
rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel audio controller embedded with the 82801H chipset ( 
ICH8 chipset ) (82801H)'
class  = multimedia 
subclass   = HDA 


And I am using
$ uname -a
FreeBSD belenos 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 
2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


Many thanks
-Richard

  
I had the same problem.  Unfortunately, I am not at home to look at the 
exact solution but I know it involves setting the sound channel in 
sysctl.conf  I think if you look in some of the relevant man apges, it 
might give you a hint.  something like snd.channel = 1 or something 
similar.  When I get home I will try and post the solution.


Mark
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda peculiarities

2009-12-30 Thread Richard L. Mace
On Wednesday 30 December 2009 17:43:04 you wrote:
 Richard L. Mace:
  On Wednesday 30 December 2009 17:12:35 Mark wrote:
  manually load snd_hda via:
 
  # kldload snd_hda
 
  Googling, I found this page:
 
  http://lists.freebsd.org/pipermail/freebsd-bugs/2009-June/035677.html
 
  Which reports precisely the behaviour I am experiencing. No
  fix or workaround
  is suggested.
 
  Has anyone with similar hardware managed to get this driver
  working? Any
  workarounds to my problem?
  And I am using
  $ uname -a
  FreeBSD belenos 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
  21 15:02:08 UTC
  2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
  amd64
 
  Many thanks
  -Richard
 
  Try adding sound_load=YES to the loader.conf HTH
 
  Thanks, but unfortunately result still the same -- no sound.
  -Richard
 
 This works for ME. Put this in rc.local;
 
 kldload snd_hda
 

Thanks, Bernt. That seemed like a good workaround, but strangely still did not 
work. Driver loaded, but still no sound. 

However, if I start KDE 4.3, open a konsole and do the kldload snd_hda, I get 
sound.

--Richard
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda peculiarities

2009-12-30 Thread Pieter de Goeje
On Wednesday 30 December 2009 15:45:50 Richard L. Mace wrote:
 I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and most
 things are working. However, a minor annoyance is that I only get sound if
  I manually load snd_hda via:
 
 # kldload snd_hda
 
 i.e., after booting. If I place the following in /boot/loader.conf
 
 snd_hda_load=YES
 
 I get no sound, even though the driver seems to load and cat /dev/sndstat
 gives

Try setting hw.snd.default_unit=1 in sysctl.conf. Most likely the order of the 
devices has changed.

 ---
 --- FreeBSD Audio Driver (newpcm:
  64bit 2009061500/amd64)
 Installed devices:
 pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at cad 0 nid 1 on hdac0
  kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
 pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at cad 0 nid 1 on hdac0
  kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
 ---
 -

This looks like the output from the working configuration. Note that the first 
device is the analog output, the second is a digital output. When you load 
snd_hda using loader.conf, the order is likely different on your machine and 
the digital output is listed first. hw.snd.default_unit=1 would then direct the 
sound to the proper (analog) output.

- Pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda peculiarities

2009-12-30 Thread Mark Moellering

Pieter de Goeje wrote:

On Wednesday 30 December 2009 15:45:50 Richard L. Mace wrote:
  

I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and most
things are working. However, a minor annoyance is that I only get sound if
 I manually load snd_hda via:

# kldload snd_hda

i.e., after booting. If I place the following in /boot/loader.conf

snd_hda_load=YES

I get no sound, even though the driver seems to load and cat /dev/sndstat
gives



Try setting hw.snd.default_unit=1 in sysctl.conf. Most likely the order of the 
devices has changed.


  

---
--- FreeBSD Audio Driver (newpcm:
 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at cad 0 nid 1 on hdac0
 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at cad 0 nid 1 on hdac0
 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
---
-



This looks like the output from the working configuration. Note that the first 
device is the analog output, the second is a digital output. When you load 
snd_hda using loader.conf, the order is likely different on your machine and 
the digital output is listed first. hw.snd.default_unit=1 would then direct the 
sound to the proper (analog) output.


- Pieter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


  

Richard,
  I am sure that this is what I did to my machine to get snd_hda to 
work.


Mark
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: snd_hda peculiarities [SOLVED]

2009-12-30 Thread Richard L. Mace
On Wednesday 30 December 2009 18:36:30 Mark Moellering wrote:
 Pieter de Goeje wrote:
  On Wednesday 30 December 2009 15:45:50 Richard L. Mace wrote:
  I recently installed FreeBSD 8.0 (amd64) on my laptop (HP 8510w) and
  most things are working. However, a minor annoyance is that I only get
  sound if I manually load snd_hda via:
 
  # kldload snd_hda
 
  i.e., after booting. If I place the following in /boot/loader.conf
 
  snd_hda_load=YES
 
  I get no sound, even though the driver seems to load and cat
  /dev/sndstat gives
 
  Try setting hw.snd.default_unit=1 in sysctl.conf. Most likely the order
  of the devices has changed.
 
  
 --- --- FreeBSD Audio Driver
  (newpcm: 64bit 2009061500/amd64)
  Installed devices:
  pcm0: HDA Analog Devices AD1981HD PCM #0 Analog at cad 0 nid 1 on
  hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
  pcm1: HDA Analog Devices AD1981HD PCM #1 Digital at cad 0 nid 1 on
  hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
  
 --- -
 
  This looks like the output from the working configuration. Note that the
  first device is the analog output, the second is a digital output. When
  you load snd_hda using loader.conf, the order is likely different on your
  machine and the digital output is listed first. hw.snd.default_unit=1
  would then direct the sound to the proper (analog) output.
 
  - Pieter
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  freebsd-questions-unsubscr...@freebsd.org
 
 Richard,
I am sure that this is what I did to my machine to get snd_hda to
 work.
 .
 Mark
 

Thanks to all for your valuable suggestions. It turns out that the problem was 
much simpler than I thought.

When I kldload snd_hda I get two panes in Kmix, each called OSS Audio Mixer. 
One contains a whole bunch of channels, the other only two: Front and PCM.
It turns out that the simpler pane (front and pcm) controls the volume when 
you issue a:

# kldload snd_hda

 and this was naturally the pane that I was paying attention to, even when 
loading via /boot/loader.conf. When all suggestions failed, I turned my 
attention to the other pane and noticed that OGain was muted. I unmuted the 
OGain channel and now I have sound even when I load snd_hda via 
/boot/loader.conf (with hw.snd.default_unit=0, i.e. its default setting). 
However, in contrast to what happens when I do a kldload, when loading via 
/boot/loader.conf the other more detailed pane (containing the OGain control) 
now controls the volume.

Thanks again to all and my apologies for not looking for the simplest solution 
first.

-Richard 

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