Re: Can't get soundcard to work

2008-10-09 Thread Aniruddha
On Thu, 2008-10-09 at 01:16 +0200, Bernt Hansson wrote:
> Aniruddha skrev:
> > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook
> > unfortunately I can't get my Intel HDA card to work. Any ideas would be
> > appreciated! Here's some relevant output:
> > 
> 
> If you load the driver manually, can you play a tune then?
> For me snd_hda_load="YES" does not load the driver. I have to do it with
> kldload snd_hda.
> 

Thanks a lot, this did the trick! :) Here's what I did:

1) I ran 'kldunload snd_hda'. It gave an error: 'device busy'
2) I stopped the Gnome mixer applet
3) I ran 'kldunload snd_hda'
4) Finally I entered 'kldload snd_hda', et voila sound was working.

Is there a way to automate this, or do I have to do this after each
boot?



-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-09 Thread Alexander Motin

Frank Shute wrote:

On Thu, Oct 09, 2008 at 09:12:28AM +0200, Aniruddha wrote:

On Wed, 2008-10-08 at 23:31 +0100, Frank Shute wrote:

ls /dev/d
da0  da2  dconsdevstat  dsp0.0   dsp1.0   
da1  da3  devctl   dgdb dsp0.1   dumpdev 

On my machine:

$ ls /dev | grep dsp
dsp0.0
dsp0.1

i.e no dsp1.0


It will be created on demand when sound application will try to open it 
directly. Also it may be set as default with hw.snd.default_unit sysctl 
described in man sound.



What does:

$ cat /dev/sndstat

give you?

sndstat:

FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0:  at memory

0xff9ec000 irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only)

pcm1:  at memory

0xffafc000 irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v
channels duplex)


The driver is binding to both.


Indeed. First one is HDMI on video and second on motherboard. The old 
snd_hda driver you have surely unable to manage first one. Second looks 
better, but also should be tested. Updated driver in 8-CURRENT should 
work better. It could be ported to 7-STABLE without any modifications.


--
Alexander Motin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-09 Thread Frank Shute
On Thu, Oct 09, 2008 at 09:12:28AM +0200, Aniruddha wrote:
>
> On Wed, 2008-10-08 at 23:31 +0100, Frank Shute wrote:
> > > ls /dev/d
> > > da0  da2  dconsdevstat  dsp0.0   dsp1.0   
> > > da1  da3  devctl   dgdb dsp0.1   dumpdev 
> > 
> > On my machine:
> > 
> > $ ls /dev | grep dsp
> > dsp0.0
> > dsp0.1
> > 
> > i.e no dsp1.0
> > 
> > Could be that the 2 cards are confusing it, as you suggested previously
> > (they both use the same driver). Can you disable one in the BIOS? 
> 
> I am afraid not :( my ATI radeon 3850 comes with HDMI support which I
> can't disable.

:( 

What about the onboard Intel chip? Can you disable that?

> 
> > What does:
> > 
> > $ cat /dev/sndstat
> > 
> > give you?
> 
> sndstat:
> > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
> > Installed devices:
> > pcm0:  at memory
> 0xff9ec000 irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only)
> > pcm1:  at memory
> 0xffafc000 irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v
> channels duplex)

The driver is binding to both.

> 
> > I'm not surprised it freaks out - it's probably struggling to figure
> > out which card to use.
> > 
> > I feel pretty sure you'll have better luck disabling one. I have had 2
> > cards in the same machine before but they used different drivers.
> 
> Can this problem be solved with buying an new soundcard? Or wil I run
> into the same mess? 

I'm no expert on the sound subsystem, so I can't tell you.

You can probably get what you've got to work but I don't know the
appropriate magic.

I think you're probably best off posting to:

[EMAIL PROTECTED]

Explain that you've got 2 sound chips with the snd_hda driver binding
to both & ask whether it's possible to get sound out of that
configuration without disabling one.

> 
> -- 
> Regards,
> 
> Aniruddha
> 

Sorry, I couldn't be more help.

BTW, hope you don't mind but I've cc'd this to multimedia@

For those on that list, the thread starts here:

http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/183904.html


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-09 Thread Aniruddha
On Thu, 2008-10-09 at 01:16 +0200, Bernt Hansson wrote:
> Aniruddha skrev:
> > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook
> > unfortunately I can't get my Intel HDA card to work. Any ideas would be
> > appreciated! Here's some relevant output:
> > 
> 
> If you load the driver manually, can you play a tune then?
> For me snd_hda_load="YES" does not load the driver. I have to do it with
> kldload snd_hda.
> 

I'll try this and post the results. Afaik I got a message "driver
already loaded"


-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-09 Thread Aniruddha
On Wed, 2008-10-08 at 23:31 +0100, Frank Shute wrote:
> > ls /dev/d
> > da0  da2  dconsdevstat  dsp0.0   dsp1.0   
> > da1  da3  devctl   dgdb dsp0.1   dumpdev 
> 
> On my machine:
> 
> $ ls /dev | grep dsp
> dsp0.0
> dsp0.1
> 
> i.e no dsp1.0
> 
> Could be that the 2 cards are confusing it, as you suggested previously
> (they both use the same driver). Can you disable one in the BIOS? 

I am afraid not :( my ATI radeon 3850 comes with HDMI support which I
can't disable.

> What does:
> 
> $ cat /dev/sndstat
> 
> give you?

sndstat:
> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
> Installed devices:
> pcm0:  at memory
0xff9ec000 irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only)
> pcm1:  at memory
0xffafc000 irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v
channels duplex)

> I'm not surprised it freaks out - it's probably struggling to figure
> out which card to use.
> 
> I feel pretty sure you'll have better luck disabling one. I have had 2
> cards in the same machine before but they used different drivers.

Can this problem be solved with buying an new soundcard? Or wil I run
into the same mess? 

-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-08 Thread Frank Shute
On Wed, Oct 08, 2008 at 11:41:31PM +0200, Aniruddha wrote:
>
> Thanks for the help! Here are the answers:
> 
> > > > > cat dmesg > /dev/dsp
> > > > >> su: /dev/dsp: Operation not supported
> > 
> > This is a weird error message. Don't know whether /dev/dsp exists or
> > not - worth checking.
> 
> ls /dev/d
> da0  da2  dconsdevstat  dsp0.0   dsp1.0   
> da1  da3  devctl   dgdb dsp0.1   dumpdev 

On my machine:

$ ls /dev | grep dsp
dsp0.0
dsp0.1

i.e no dsp1.0

Could be that the 2 cards are confusing it, as you suggested previously
(they both use the same driver). Can you disable one in the BIOS? 

> 
> > I don't know why you seem to have 2 sound cards but I'd have a look at
> > getting the Intel sound card going. Put:
> > 
> > snd_hda_load="YES"
> > 
> > in /boot/loader.conf
> Done
> 
> > Reboot & then see what kldstat(8) and mixer(8) tell you. 
> 
> # kldstat 
> Id Refs AddressSize Name
>  16 0xc040 97c8a8   kernel
>  21 0xc0d7d000 15524snd_hda.ko
>  32 0xc0d93000 4a62csound.ko
>  41 0xc0dde000 6a2c4acpi.ko
>  51 0xc68ea000 1ext2fs.ko

Looks OK.

> 
> 
> # mixer
> Mixer vol  is currently set to 100:100
> Mixer pcm  is currently set to  75:75

What does:

$ cat /dev/sndstat

give you?

> 
> > If that looks reasonable have a go at playing an mp3 or wav with
> > mplayer. Mplayer might give you some debugging output if it doesn't
> > work.
> 
> The output from mplayer 
> [AO OSS] audio_setup: Can't open audio device /dev/dsp: Operation not
> supported
> 

I'm not surprised it freaks out - it's probably struggling to figure
out which card to use.

I feel pretty sure you'll have better luck disabling one. I have had 2
cards in the same machine before but they used different drivers.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-08 Thread Aniruddha
Thanks for the help! Here are the answers:

> > > > cat dmesg > /dev/dsp
> > > >> su: /dev/dsp: Operation not supported
> 
> This is a weird error message. Don't know whether /dev/dsp exists or
> not - worth checking.

ls /dev/d
da0  da2  dconsdevstat  dsp0.0   dsp1.0   
da1  da3  devctl   dgdb dsp0.1   dumpdev 

> I don't know why you seem to have 2 sound cards but I'd have a look at
> getting the Intel sound card going. Put:
> 
> snd_hda_load="YES"
> 
> in /boot/loader.conf
Done

> Reboot & then see what kldstat(8) and mixer(8) tell you. 

# kldstat 
Id Refs AddressSize Name
 16 0xc040 97c8a8   kernel
 21 0xc0d7d000 15524snd_hda.ko
 32 0xc0d93000 4a62csound.ko
 41 0xc0dde000 6a2c4acpi.ko
 51 0xc68ea000 1ext2fs.ko


# mixer
Mixer vol  is currently set to 100:100
Mixer pcm  is currently set to  75:75

> If that looks reasonable have a go at playing an mp3 or wav with
> mplayer. Mplayer might give you some debugging output if it doesn't
> work.

The output from mplayer 
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Operation not
supported



-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-08 Thread Frank Shute
On Wed, Oct 08, 2008 at 08:21:12PM +0200, Aniruddha wrote:
>
> On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote:
> > Aniruddha <[EMAIL PROTECTED]> writes:
> > > cat dmesg > /dev/dsp
> > >> su: /dev/dsp: Operation not supported

This is a weird error message. Don't know whether /dev/dsp exists or
not - worth checking.

> > >
> > > from pciconf:
> > >> [EMAIL PROTECTED]:0:27:0:class=0x040300 card=0x81d81043 
> > >> chip=0x27d88086 rev=0x01 hdr=0x00
> > >> vendor = 'Intel Corporation'
> > >> device = '82801G (ICH7 Family) High Definition Audio'
> > >> class  = multimedia
> > >
> > >> [EMAIL PROTECTED]:5:0:0: class=0x03 card=0xe630174b chip=0x95051002 
> > >> rev=0x00 hdr=0x00
> > >> vendor = 'ATI Technologies Inc'
> > >> class  = display
> > >> subclass   = VGA
> > >> [EMAIL PROTECTED]:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 
> > >> rev=0x00 hdr=0x00
> > >> vendor = 'ATI Technologies Inc'
> > >> class  = multimedia
> > 
> > I think you will need a somewhat recent FreeBSD to support that
> > controller.  What version are you running?
> > 
> > What drivers have you loaded?  snd_driver?
> > 
> 
> Maybe it's related to my HDMI capable ATI card. Could this interfere? I
> also tried adding snd_driver_load="YES" to /boot/loader.conf but this
> didn't help either :(
> 

I don't know why you seem to have 2 sound cards but I'd have a look at
getting the Intel sound card going. Put:

snd_hda_load="YES"

in /boot/loader.conf

Reboot & then see what kldstat(8) and mixer(8) tell you. e.g: on my machine:

$ kldstat
Id Refs AddressSize Name
 14 0x8010 6f8750   kernel
 21 0x807f9000 1a6e8snd_hda.ko
 32 0x80814000 66408sound.ko
 41 0x8087b000 1b70 coretemp.ko

$ mixer
Mixer vol  is currently set to  30:30
Mixer pcm  is currently set to  60:60
Mixer line 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

I lowered the volume with:

$ mixer vol 30:30

If that looks reasonable have a go at playing an mp3 or wav with
mplayer. Mplayer might give you some debugging output if it doesn't
work.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-08 Thread Aniruddha
On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote:
> Aniruddha <[EMAIL PROTECTED]> writes:
> > cat dmesg > /dev/dsp
> >> su: /dev/dsp: Operation not supported
> >
> > from pciconf:
> >> [EMAIL PROTECTED]:0:27:0:  class=0x040300 card=0x81d81043 chip=0x27d88086 
> >> rev=0x01 hdr=0x00
> >> vendor = 'Intel Corporation'
> >> device = '82801G (ICH7 Family) High Definition Audio'
> >> class  = multimedia
> >
> >> [EMAIL PROTECTED]:5:0:0:   class=0x03 card=0xe630174b chip=0x95051002 
> >> rev=0x00 hdr=0x00
> >> vendor = 'ATI Technologies Inc'
> >> class  = display
> >> subclass   = VGA
> >> [EMAIL PROTECTED]:5:0:1:   class=0x040300 card=0xaa18174b chip=0xaa181002 
> >> rev=0x00 hdr=0x00
> >> vendor = 'ATI Technologies Inc'
> >> class  = multimedia
> 
> I think you will need a somewhat recent FreeBSD to support that
> controller.  What version are you running?
> 
> What drivers have you loaded?  snd_driver?
> 

Maybe it's related to my HDMI capable ATI card. Could this interfere? I
also tried adding snd_driver_load="YES" to /boot/loader.conf but this
didn't help either :(


-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-07 Thread Aniruddha
On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote:
> Aniruddha <[EMAIL PROTECTED]> writes:
> 
> > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook
> > unfortunately I can't get my Intel HDA card to work. Any ideas would be
> > appreciated! Here's some relevant output:

...

> I think you will need a somewhat recent FreeBSD to support that
> controller.  What version are you running?
> 
> What drivers have you loaded?  snd_driver?

Thanks for the help. I'm running FreeBSD 7-1 BETA. From what I can tell
my card should be supported. "cat dmesg > /dev/dsp" did give me sound
the first time. Any thoughts on how to troubleshoot this would be
welcome.


-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't get soundcard to work

2008-10-07 Thread Lowell Gilbert
Aniruddha <[EMAIL PROTECTED]> writes:

> I've read the "Setting Up the Sound Card" part in the FreeBSD handbook
> unfortunately I can't get my Intel HDA card to work. Any ideas would be
> appreciated! Here's some relevant output:
>
> sndstat:
>> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
>> Installed devices:
>> pcm0:  at memory 0xff9ec000 
>> irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only)
>> pcm1:  at memory 0xffafc000 
>> irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex)
>
> from dmesg:
>> pcm1:  mem 
>> 0xffafc000-0xffaf irq 19 at device 27.0 on pci0
>> pcm1: [ITHREAD]
>> pcib2:  irq 16 at device 28.0 on pci0
>> pci4:  on pcib2
>> pcib3:  irq 19 at device 28.3 on pci0
>> pci3:  on pcib3
>
> cat dmesg > /dev/dsp
>> su: /dev/dsp: Operation not supported
>
> from pciconf:
>> [EMAIL PROTECTED]:0:27:0:class=0x040300 card=0x81d81043 chip=0x27d88086 
>> rev=0x01 hdr=0x00
>> vendor = 'Intel Corporation'
>> device = '82801G (ICH7 Family) High Definition Audio'
>> class  = multimedia
>
>> [EMAIL PROTECTED]:5:0:0: class=0x03 card=0xe630174b chip=0x95051002 
>> rev=0x00 hdr=0x00
>> vendor = 'ATI Technologies Inc'
>> class  = display
>> subclass   = VGA
>> [EMAIL PROTECTED]:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 
>> rev=0x00 hdr=0x00
>> vendor = 'ATI Technologies Inc'
>> class  = multimedia

I think you will need a somewhat recent FreeBSD to support that
controller.  What version are you running?

What drivers have you loaded?  snd_driver?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can't get soundcard to work

2008-10-07 Thread Aniruddha
I've read the "Setting Up the Sound Card" part in the FreeBSD handbook
unfortunately I can't get my Intel HDA card to work. Any ideas would be
appreciated! Here's some relevant output:

sndstat:
> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
> Installed devices:
> pcm0:  at memory 0xff9ec000 
> irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only)
> pcm1:  at memory 0xffafc000 
> irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex)

from dmesg:
> pcm1:  mem 
> 0xffafc000-0xffaf irq 19 at device 27.0 on pci0
> pcm1: [ITHREAD]
> pcib2:  irq 16 at device 28.0 on pci0
> pci4:  on pcib2
> pcib3:  irq 19 at device 28.3 on pci0
> pci3:  on pcib3

cat dmesg > /dev/dsp
> su: /dev/dsp: Operation not supported

from pciconf:
> [EMAIL PROTECTED]:0:27:0: class=0x040300 card=0x81d81043 chip=0x27d88086 
> rev=0x01 hdr=0x00
> vendor = 'Intel Corporation'
> device = '82801G (ICH7 Family) High Definition Audio'
> class  = multimedia

> [EMAIL PROTECTED]:5:0:0:  class=0x03 card=0xe630174b chip=0x95051002 
> rev=0x00 hdr=0x00
> vendor = 'ATI Technologies Inc'
> class  = display
> subclass   = VGA
> [EMAIL PROTECTED]:5:0:1:  class=0x040300 card=0xaa18174b chip=0xaa181002 
> rev=0x00 hdr=0x00
> vendor = 'ATI Technologies Inc'
> class  = multimedia





-- 
Regards,

Aniruddha




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"