Re: FBSD 8.2R does not probe sound card

2011-03-22 Thread Gua Chung Lim
Hi JR,

  guacl@bsdhost:~% tail -n 1 /etc/sysctl.conf
  hw.snd.default_unit=0
 
 This is fine, but 0 is the default value, so you don't actually
 need this.  You only need it for value of 1, 2, 3...
Alright so I can now forget this file.

 /boot/loader.conf and /boot/loader.conf.local are used together.
 I suggest you leave loader.conf as installed by the system, and place
 all your config in loader.conf.local, although that is not so important.
Sorry, /boot/loader.conf was blank right after installation.
But it doesn't matter anyway.

 You need to get the programming so that it shows:
 pcm0: HDA Realtek ALC662 PCM #0 Analog (play/rec) default
 or perhaps like mine:
 pcm0: HDA Realtek ALC268 PCM #0 Analog at cad 3 nid 1 on hdac0 kld 
 snd_hda (1p:6v/1r:1v) default
 in this one, 1p=1play, 6v=6voices=6channels (5.1 sound); 1r=1rec with
 1channel.

   hint.hdac.0.cad0.nid21.config=as=1 seq=0  # pcm0 out
   hint.hdac.0.cad0.nid22.config=as=2 seq=0  # pcm1 out
   hint.hdac.0.cad0.nid28.config=as=3 seq=0  # pcm2 out
   hint.hdac.0.cad0.nid30.config=as=4 seq=0  # pcm3 out
   hint.hdac.0.cad0.nid24.config=as=5 seq=0  # \
   hint.hdac.0.cad0.nid25.config=as=5 seq=1  #  pcm0 in
   hint.hdac.0.cad0.nid26.config=as=5 seq=15 # /
 Then you can play with output to /dev/dsp0.X etc to see if any work.
I have already put them in /boot/loader.conf.local.
guacl@bsdhost:~% mixer
Mixer vol  is currently set to  75:75
Mixer pcm  is currently set to  75:75
Mixer line is currently set to  75:75
Mixer mic  is currently set to   0:0
Mixer mix  is currently set to   0:0
Mixer rec  is currently set to  75:75
Mixer igainis currently set to   0:0
Mixer ogainis currently set to  50:50
Mixer monitor  is currently set to  75:75
Recording source: mic
guacl@bsdhost:~% cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: HDA Realtek ALC662 PCM #0 Analog (play/rec) default
pcm1: HDA ATI R6xx HDMI PCM #0 HDMI (play)

Yes, pcm0 is now what we are expecting.
Now I can hear sound from the speakers via /dev/dsp0.X
using C code fprintf(dsp, %c%c%c, 7, 7, 7);
(I'm only on console.)
But how can I hear the sound without redirecting to /dev/dsp?
This area is VERY FAR from my knowledge.
I think I must completely read sound(4) and snd_hda(4).

Thank you very much again.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FBSD 8.2R does not probe sound card

2011-03-20 Thread Gua Chung Lim
Hi,

 So you need to reprogram your HDAC.  You have four speaker possibilities,
 nids 21, 22, 28 and 30.  I can't tell which one is the one you want, so
 you'll need to try all four until you find it.  Use config in your
 /boot/loader.conf.local like this:

 Correction...
 
 Your output association is as=1.  So you want:
 
 hint.hdac.0.cad0.nid21.config=as=1 seq=0
 hint.hdac.0.cad0.nid27.config=as=1 seq=15
# cat /boot/loader.conf.local
hint.hdac.0.cad0.nid30.config=as=1 seq=0 device=Speaker conn=Fixed
hint.hdac.0.cad0.nid27.config=as=1 seq=15

I have tried with and without ``device=Speaker conn=Fixed'',
for all nid21, 22, 28 and 30 (reboot 8 times).
And each time mixer(8) does not mute the speaker.
But the speakers are still quiet.

Please do not suspect my speakers, they work well on win7
on the other partition/slice.

Thank you very much.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FBSD 8.2R does not probe sound card

2011-03-20 Thread Gua Chung Lim
Hi,

Thank you very much for your kind response.

 The reprogramming I gave you was for pcm0.  Your pcm1 is showing
 with the HDMI digital chip pins.
 
 Make sure that your cat /dev/sndstat is showing pcm0 as default.
 (Use the sysctl hw.snd.default_unit to set it.)
Previously my sysctl hw.snd.default_unit was 1.
So its default was set to pcm1.
Therefore I change it to 0.
By the way my configuration files got changed from time to time for
each suggestion I received.
So I would summarize my current config as follows.

guacl@bsdhost:~% tail -n 1 /etc/sysctl.conf
hw.snd.default_unit=0
guacl@bsdhost:~% cat /boot/loader.conf
atapicam_load=YES
snd_hda_load=YES
guacl@bsdhost:~% cat /boot/loader.conf.local
hint.hdac.0.cad0.nid30.config=as=1 seq=0 device=Speaker conn=Fixed
hint.hdac.0.cad0.nid27.config=as=1 seq=15

(I have tried nid21, 22, 28 and 30.)
From my current configurations, my speakers are still quiet.
mixer(8) does not even show speaker or volume
guacl@bsdhost:~% mixer
Mixer line is currently set to  75:75
Mixer mic  is currently set to   0:0
Mixer rec  is currently set to  75:75
Mixer monitor  is currently set to  75:75
Recording source: mic

Anythings divert from your suggestion, please tell me.

 Also, I am guessing from your verbose info that pcm0 also shows
 Analog and play too?  You need these for the speaker output.
 If you, in fact, have pcm0, pcm1 on Analog and then a pcm2 on HDMI,
 we will need to try other settings.  Or if pcm0 does not show play
 by it.  Perhaps send me the /dev/sndstat info if it is not
 pcm0: Analog...play and pcm1: HDMI.
guacl@bsdhost:~% cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: HDA Realtek ALC662 PCM #0 Analog (rec) default
pcm1: HDA ATI R6xx HDMI PCM #0 HDMI (play)

No, pcm0 shows Analog but pcm1 shows play.

 You might also want to try explicitly adding statements to program
 your input device.  I notice that in your verbose info, your output
 devices are listed on the input association.  Try this:
 
   hint.hdac.0.cad0.nidXX.config=as=1 seq=0
   hint.hdac.0.cad0.nid27.config=as=1 seq=15
   hint.hdac.0.cad0.nid24.config=as=3 seq=0
   hint.hdac.0.cad0.nid25.config=as=3 seq=1
   hint.hdac.0.cad0.nid26.config=as=3 seq=15
Shall I fix pcm first, then try this later?
I think that I tried reboot 30 times for the last couple days. :-(

Thank you very much.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FBSD 8.2R does not probe sound card

2011-03-19 Thread Gua Chung Lim
Thanks for responses from you all.

 suggestion here is to play with the sysctl hw.snd.default_unit:
 $ sysctl -d hw.snd.default_unit
 hw.snd.default_unit: default sound device
 It defaults to 0, try 1-5 and see if there is any improvement, as you 
 have multiple sound output devices.

 Because you're not thinking about the order of operation correctly.
 
 1) The system boots up, with no knowledge of snd_driver
 2) It tries to set hw.snd.default_unit=1, which fails (changes
nothing) because that's a sysctl registered with snd_driver
which isn't loaded yet
 3) You manually kldload snd_driver, which pulls in the driver-level
sysctl default of 0 for hw.snd.default_unit.
 4) You then wonder why hw.snd.default_unit isn't 1.

 Please add snd_hda_load=YES in /boot/loader.conf, you won't need to 
 kldload manually.
So my current procedure is as follows.

/boot/loader.conf
snd_hda_load=YES

/etc/sysctl.conf
hw.snd.default_unit=1
# shutdown -r now

(after reboot)
# sysctl -d hw.snd.default_unit
hw.snd.default_unit: default sound device
# sysctl hw.snd.default_unit
hw.snd.default_unit: 1

I can only set it to 1. But the speakers are still quiet.
If I set it to 2+, it says.
/etc/rc: WARNING: unable to set hw.snd.default_unit=[2+]
miibus0: mii_mediachg: can't handle non-zero PHY instance 31
miibus0: mii_mediachg: can't handle non-zero PHY instance 30
miibus0: mii_mediachg: can't handle non-zero PHY instance 29
...
miibus0: mii_mediachg: can't handle non-zero PHY instance 1

 Since you have an HDAC audio controller, which is a programmable
 controller, my guess is that your computer's default programming
 is not to the proper speakers.  I've had this problem in the past.
 The solution involves booting in verbose mode which will provide you
 a dump of the HDAC mapping in your syslog.  You can use that info
 to see what the pin mappings are.  You will need to add a bunch of
 lines like:
   hint.hdac.0.cad3.nid20.config=as=1 seq=0
 to your /boot/loader.conf.local in order to remap things the way
It seems likely.

 they should be.  You'll probably need at least two such mappings,
 maybe four to remap the mic input, too.  Details are in snd_hda(4).
snd_hda(4) is big.
I'm sorry. I have no idea, which one related to my sound card.

 If you believe this is the trouble, but you are stuck with the
 syntax, send me the verbose boot output section that looks like this:
 
 # Processing audio FG cad=3 nid=1...
 # GPIO: 0x4004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 
Please see the attached verbose.txt.

Thank you very much.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC662
hdac0:  HDA Codec ID: 0x10ec0662
hdac0:Vendor: 0x10ec
hdac0:Device: 0x0662
hdac0:  Revision: 0x01
hdac0:  Stepping: 0x01
hdac0: PCI Subvendor: 0x2a99103c
hdac0:  Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0: 
hdac0: Processing audio FG cad=0 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:  nid 21 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1
hdac0:  nid 22 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1
hdac0:  nid 24 0x01a19830 as  3 seq  0   Mic  Jack jack  1 loc  1 color 
   Pink misc 8
hdac0:  nid 25 0x02a19831 as  3 seq  1   Mic  Jack jack  1 loc  2 color 
   Pink misc 8
hdac0:  nid 26 0x0181303f as  3 seq 15   Line-in  Jack jack  1 loc  1 color 
   Blue misc 0
hdac0:  nid 27 0x0221401f as  1 seq 15Headphones  Jack jack  1 loc  2 color 
  Green misc 0
hdac0:  nid 28 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1
hdac0:  nid 29 0x4004c601 as  0 seq  1  Line-out  None jack  4 loc  0 color 
  Res.C misc 6
hdac0:  nid 30 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1
hdac0: Patched pins configuration:
hdac0:  nid 20 0x01014010 as  1 seq  0  Line-out  Jack jack  1 loc  1 color 
  Green misc 0
hdac0:  nid 21 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1 [DISABLED]
hdac0:  nid 22 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1 [DISABLED]
hdac0:  nid 24 0x01a19830 as  3 seq  0   Mic  Jack jack  1 loc  1 color 
   Pink misc 8
hdac0:  nid 25 0x02a19831 as  3 seq  1   Mic  Jack jack  1 loc  2 color 
   Pink misc 8
hdac0:  nid 26 0x0181303f as  3 seq 15   Line-in  Jack jack  1 loc  1 color 
   Blue misc 0
hdac0:  nid 27 0x0221401f as  1 seq 15Headphones  Jack jack  1 loc  2 color 
  Green misc 0
hdac0:  nid 28 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 color 
  Black misc 1 [DISABLED]
hdac0:  nid 29 0x4004c601 as  0 seq  1  Line-out  None jack  4 loc  0 color 
  Res.C 

Re: FBSD 8.2R does not probe sound card

2011-03-19 Thread J.R. Oldroyd
Hi,

The info you attached below shows your problem.

First, read the association list at the bottom.  You have two associations,
0 for output and 1 for input.  Look at the output association 0.  It shows
the output is mapped to nid 20 seq 0 and then nid 27 seq 15.  The seq
tells you what it will use.  It will start at seq=0 then seq=1 then seq=2
etc, but seq=15 is special which means to use that if there's something
connected to the jack.  So yours will use nid 20 normally or nid 27 if
there's something connected to the jack.

Now look at the nids in the main list, AFTER where it says Patched.
You see nid 20 is Line-out and nid 27 is Headphones.

So, nid 27 is OK (you want it to use the headphones if they are connected
to the jack), but nid 20 is not - nid 20 is your Line-out and you want
to use Speakers.  But all the Speaker nids are [DISABLED].

So you need to reprogram your HDAC.  You have four speaker possibilities,
nids 21, 22, 28 and 30.  I can't tell which one is the one you want, so
you'll need to try all four until you find it.  Use config in your
/boot/loader.conf.local like this:

hint.hdac.0.cad0.nid21.config=as=0 seq=0
hint.hdac.0.cad0.nid27.config=as=0 seq=15

Reboot and see if that works.  If not, replace the 21 with each
of 22, 28 and 30 and try again.  If you use verbose boot again, you
will see the Patched nid list and you can verify that the speaker
nid is not [DISABLED].

One thing puzzles me about your list.  All your speakers have a location
of None.  Normally, you'd expect one to have location of Fixed and
that would be the built-in speaker.  Since you can't tell here which is
your built-in speaker, try all four and hope you find it.  If none of
the four work, you could try again explicitly setting the location:

hint.hdac.0.cad0.nid21.config=as=0 seq=0 device=Speaker conn=Fixed

to see if that helps.

Note that if there is already configuration in either loader.conf.local
or loader.conf for hint.hdac you should comment that out first.

Also, be sure to run mixer each time to make sure that both the vol
and the pcm are turned up when you test.  Otherwise you won't hear
anything.

Your input side, association 1, is set to nid 24, 25 or 26 which are all
Mic and Line-in, so probably OK.  But if the mic doesn't work as expected,
you can try changing these around, too.

-jr


On Sat, 19 Mar 2011 21:41:53 +0700, Gua Chung Lim gua.chung...@gmail.com 
wrote:

 hdac0: Processing audio FG cad=0 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:  nid 21 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1
 hdac0:  nid 22 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1
 hdac0:  nid 24 0x01a19830 as  3 seq  0   Mic  Jack jack  1 loc  1 
 colorPink misc 8
 hdac0:  nid 25 0x02a19831 as  3 seq  1   Mic  Jack jack  1 loc  2 
 colorPink misc 8
 hdac0:  nid 26 0x0181303f as  3 seq 15   Line-in  Jack jack  1 loc  1 
 colorBlue misc 0
 hdac0:  nid 27 0x0221401f as  1 seq 15Headphones  Jack jack  1 loc  2 
 color   Green misc 0
 hdac0:  nid 28 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1
 hdac0:  nid 29 0x4004c601 as  0 seq  1  Line-out  None jack  4 loc  0 
 color   Res.C misc 6
 hdac0:  nid 30 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1
 hdac0: Patched pins configuration:
 hdac0:  nid 20 0x01014010 as  1 seq  0  Line-out  Jack jack  1 loc  1 
 color   Green misc 0
 hdac0:  nid 21 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1 [DISABLED]
 hdac0:  nid 22 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1 [DISABLED]
 hdac0:  nid 24 0x01a19830 as  3 seq  0   Mic  Jack jack  1 loc  1 
 colorPink misc 8
 hdac0:  nid 25 0x02a19831 as  3 seq  1   Mic  Jack jack  1 loc  2 
 colorPink misc 8
 hdac0:  nid 26 0x0181303f as  3 seq 15   Line-in  Jack jack  1 loc  1 
 colorBlue misc 0
 hdac0:  nid 27 0x0221401f as  1 seq 15Headphones  Jack jack  1 loc  2 
 color   Green misc 0
 hdac0:  nid 28 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1 [DISABLED]
 hdac0:  nid 29 0x4004c601 as  0 seq  1  Line-out  None jack  4 loc  0 
 color   Res.C misc 6 [DISABLED]
 hdac0:  nid 30 0x41f0 as 15 seq  0   Speaker  None jack  1 loc  1 
 color   Black misc 1 [DISABLED]
 hdac0: 2 associations found:
 hdac0: Association 0 (1) out:
 hdac0:  Pin nid=20 seq=0
 hdac0:  Pin nid=27 seq=15
 hdac0: Association 1 (3) in:
 hdac0:  Pin nid=24 seq=0
 hdac0:  Pin nid=25 seq=1
 hdac0:  Pin nid=26 seq=15


signature.asc
Description: PGP signature


Re: FBSD 8.2R does not probe sound card

2011-03-18 Thread Gua Chung Lim
Thank you for your kind responses.
Though I don't understand much what you said,
I shall give you further info.

 pcm1 device is the HDMI audio output on your graphics card.  My only 
 suggestion here is to play with the sysctl hw.snd.default_unit:
# tail -n 1 /etc/sysctl.conf
hw.snd.default_unit=1
(I left /boot/loader.conf untouched.)
# shutdown -r now

after reboot
# kldload snd_driver
# sysctl -d hw.snd.default_unit
hw.snd.default_unit: default sound device
# sysctl hw.snd.default_unit
hw.snd.default_unit: 0

The speakers are still quiet.
I wonder why it is still 0, even if /etc/sysctl.conf set it to 1.

 What programs are you using to test the sound output?
Just repeat backspaces at the blank command prompt.
guacl@bsdhost:~% BSBSBS...
If sound driver is functioning, the speakers should echo.
Note that the internal speaker (inside the case) does echo, for sure.

Thank you.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FBSD 8.2R does not probe sound card

2011-03-18 Thread Jeremy Chadwick
On Fri, Mar 18, 2011 at 11:45:49PM +0700, Gua Chung Lim wrote:
 Thank you for your kind responses.
 Though I don't understand much what you said,
 I shall give you further info.
 
  pcm1 device is the HDMI audio output on your graphics card.  My only 
  suggestion here is to play with the sysctl hw.snd.default_unit:
 # tail -n 1 /etc/sysctl.conf
 hw.snd.default_unit=1
 (I left /boot/loader.conf untouched.)
 # shutdown -r now
 
 after reboot
 # kldload snd_driver
 # sysctl -d hw.snd.default_unit
 hw.snd.default_unit: default sound device
 # sysctl hw.snd.default_unit
 hw.snd.default_unit: 0
 
 The speakers are still quiet.
 I wonder why it is still 0, even if /etc/sysctl.conf set it to 1.

Because you're not thinking about the order of operation correctly.

1) The system boots up, with no knowledge of snd_driver
2) It tries to set hw.snd.default_unit=1, which fails (changes
   nothing) because that's a sysctl registered with snd_driver
   which isn't loaded yet
3) You manually kldload snd_driver, which pulls in the driver-level
   sysctl default of 0 for hw.snd.default_unit.
4) You then wonder why hw.snd.default_unit isn't 1.

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.   PGP 4BD6C0CB |

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


Re: FBSD 8.2R does not probe sound card

2011-03-18 Thread David Demelier

On 18/03/2011 17:45, Gua Chung Lim wrote:

Thank you for your kind responses.
Though I don't understand much what you said,
I shall give you further info.


pcm1 device is the HDMI audio output on your graphics card.  My only
suggestion here is to play with the sysctl hw.snd.default_unit:

# tail -n 1 /etc/sysctl.conf
hw.snd.default_unit=1
(I left /boot/loader.conf untouched.)
# shutdown -r now

after reboot
# kldload snd_driver
# sysctl -d hw.snd.default_unit
hw.snd.default_unit: default sound device
# sysctl hw.snd.default_unit
hw.snd.default_unit: 0

The speakers are still quiet.
I wonder why it is still 0, even if /etc/sysctl.conf set it to 1.


What programs are you using to test the sound output?

Just repeat backspaces at the blank command prompt.
guacl@bsdhost:~%BSBSBS...
If sound driver is functioning, the speakers should echo.
Note that the internal speaker (inside the case) does echo, for sure.

Thank you.



Please add snd_hda_load=YES in /boot/loader.conf, you won't need to 
kldload manually.


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


FBSD 8.2R does not probe sound card

2011-03-17 Thread Gua Chung Lim
Hi all,

I have been using FBSD since mid 2005 without any problems.
Recently, I installed 8.2R from DVD on my new machine.
(HP Pavilion p6276l Home PC)
FBSD 8.2R does not probe my sound card.

# kldload snd_driver
ppc0: parallel port not found.
ppc0: parallel port not found.
ppc0: parallel port not found.
ppc0: parallel port not found.
hdac0: NVidia MCP61 High Definition Audio Controller mem 
0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Realtek ALC662
hdac1: ATI RV730 High Definition Audio Controller mem 0xfbeec000-0xfbee 
irq 17 at device 0.1 on pci2
hdac1: HDA Driver Revision: 20100226_0142
hdac1: [ITHREAD]
hdac1: HDA Codec #0: ATI R6xx HDMI
pcm0: HDA Realtek ALC662 PCM #0 Analog at cad 0 nid 1 on hdac0
pcm1: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac1
ppc0: parallel port not found.
ppc0: parallel port not found.

I check sound card properties with Win7 (on another partition/slice).
It says ``High Definition Audio Device'' and nothing else.
So I try again.

# kldload snd_hda
hdac0: NVidia MCP61 High Definition Audio Controller mem 
0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Realtek ALC662
hdac1: ATI RV730 High Definition Audio Controller mem 0xfbeec000-0xfbee 
irq 17 at device 0.1 on pci2
hdac1: HDA Driver Revision: 20100226_0142
hdac1: [ITHREAD]
hdac1: HDA Codec #0: ATI R6xx HDMI
pcm0: HDA Realtek ALC662 PCM #0 Analog at cad 0 nid 1 on hdac0
pcm1: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac1

Both cases the speakers are still quiet.
Anyone who has a clue or experieces this problem, please point me out.

Thank you in advance.

-- 
Gua Chung Lim
 
Please help donate to Japan.
-- for earthquake, tsunami and nuclear radiation reliefs (2011)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: FBSD 8.2R does not probe sound card

2011-03-17 Thread Sergey V. Dyatko
On Thu, 17 Mar 2011 21:25:59 +0700
Gua Chung Lim gua.chung...@gmail.com wrote:

 Hi all,
 
 I have been using FBSD since mid 2005 without any problems.
 Recently, I installed 8.2R from DVD on my new machine.
 (HP Pavilion p6276l Home PC)
 FBSD 8.2R does not probe my sound card.
 
 # kldload snd_driver
 ppc0: parallel port not found.
 ppc0: parallel port not found.
 ppc0: parallel port not found.
 ppc0: parallel port not found.
 hdac0: NVidia MCP61 High Definition Audio Controller mem
 0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0 hdac0: HDA Driver
 Revision: 20100226_0142 hdac0: [ITHREAD]
 hdac0: HDA Codec #0: Realtek ALC662
 hdac1: ATI RV730 High Definition Audio Controller mem
 0xfbeec000-0xfbee irq 17 at device 0.1 on pci2 hdac1: HDA Driver
 Revision: 20100226_0142 hdac1: [ITHREAD]
 hdac1: HDA Codec #0: ATI R6xx HDMI
 pcm0: HDA Realtek ALC662 PCM #0 Analog at cad 0 nid 1 on hdac0
 pcm1: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac1
 ppc0: parallel port not found.
 ppc0: parallel port not found.
 
 I check sound card properties with Win7 (on another partition/slice).
 It says ``High Definition Audio Device'' and nothing else.
 So I try again.
 
 # kldload snd_hda
 hdac0: NVidia MCP61 High Definition Audio Controller mem
 0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0 hdac0: HDA Driver
 Revision: 20100226_0142 hdac0: [ITHREAD]
 hdac0: HDA Codec #0: Realtek ALC662
 hdac1: ATI RV730 High Definition Audio Controller mem
 0xfbeec000-0xfbee irq 17 at device 0.1 on pci2 hdac1: HDA Driver
 Revision: 20100226_0142 hdac1: [ITHREAD]
 hdac1: HDA Codec #0: ATI R6xx HDMI
 pcm0: HDA Realtek ALC662 PCM #0 Analog at cad 0 nid 1 on hdac0
 pcm1: HDA ATI R6xx HDMI PCM #0 HDMI at cad 0 nid 1 on hdac1
 
 Both cases the speakers are still quiet.
 Anyone who has a clue or experieces this problem, please point me out.
 
 Thank you in advance.
 

Plays with hw.snd.default_unit sysctl doesn't help  ?

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


Re: FBSD 8.2R does not probe sound card

2011-03-17 Thread Steve Polyack

On 03/17/11 10:25, Gua Chung Lim wrote:

Hi all,

I have been using FBSD since mid 2005 without any problems.
Recently, I installed 8.2R from DVD on my new machine.
(HP Pavilion p6276l Home PC)
FBSD 8.2R does not probe my sound card.

# kldload snd_driver
ppc0: parallel port not found.
ppc0: parallel port not found.
ppc0: parallel port not found.
ppc0: parallel port not found.
hdac0:NVidia MCP61 High Definition Audio Controller  mem 
0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Realtek ALC662
hdac1:ATI RV730 High Definition Audio Controller  mem 0xfbeec000-0xfbee 
irq 17 at device 0.1 on pci2
hdac1: HDA Driver Revision: 20100226_0142
hdac1: [ITHREAD]
hdac1: HDA Codec #0: ATI R6xx HDMI
pcm0:HDA Realtek ALC662 PCM #0 Analog  at cad 0 nid 1 on hdac0
pcm1:HDA ATI R6xx HDMI PCM #0 HDMI  at cad 0 nid 1 on hdac1
ppc0: parallel port not found.
ppc0: parallel port not found.

I check sound card properties with Win7 (on another partition/slice).
It says ``High Definition Audio Device'' and nothing else.
So I try again.

# kldload snd_hda
hdac0:NVidia MCP61 High Definition Audio Controller  mem 
0xfbdf8000-0xfbdfbfff irq 23 at device 5.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Realtek ALC662
hdac1:ATI RV730 High Definition Audio Controller  mem 0xfbeec000-0xfbee 
irq 17 at device 0.1 on pci2
hdac1: HDA Driver Revision: 20100226_0142
hdac1: [ITHREAD]
hdac1: HDA Codec #0: ATI R6xx HDMI
pcm0:HDA Realtek ALC662 PCM #0 Analog  at cad 0 nid 1 on hdac0
pcm1:HDA ATI R6xx HDMI PCM #0 HDMI  at cad 0 nid 1 on hdac1

Both cases the speakers are still quiet.
Anyone who has a clue or experieces this problem, please point me out.


It looks like your card is getting probed in both cases, unless you have 
an additional device that is not being listed.  The pcm0 device above 
looks to be from onboard sound on your nvidia motherboard, while the 
pcm1 device is the HDMI audio output on your graphics card.  My only 
suggestion here is to play with the sysctl hw.snd.default_unit:

$ sysctl -d hw.snd.default_unit
hw.snd.default_unit: default sound device

It defaults to 0, try 1-5 and see if there is any improvement, as you 
have multiple sound output devices.


What programs are you using to test the sound output?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org