Re: snd_hda(4): getting line-in to work

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Tue, 6 Jan 2009 20:29:51 -0800
On Tue, Jan 6, 2009 at 12:53 PM, Alexander Motin <mav_at_freebsd.org> wrote:
> Garrett Cooper wrote:
>>
>>    I'm not sure if it's user error or not, but my snd_hda(4) enabled
>> chipset doesn't have line-in support enabled. I was wondering if there
>> were a special set of instructions I need to follow to get this
>> working.
>
> The main instruction is to boot system with verbose messages. snd_hda writes
> all information needed to answer most questions. Read it yourself and if it
> does not help - send it to me.
>
>> [gcooper_at_orangebox /scratch/ltp]$ cat /dev/sndstat
>> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
>> Installed devices:
>> pcm0: <HDA Analog Devices AD1988B PCM #0 Analog> at cad 0 nid 1 on
>> hdac0  [MPSAFE] (1p:1v/1r:1v channels duplex default)
>
> All I can see here is that you have some recording device. You can browse
> and select specific recording source with `mixer =rec` command. For
> additional details look verbose output and read new snd_hda man page.
>
>> pcm1: <HDA Analog Devices AD1988B PCM #1 Analog> at cad 0 nid 1 on
>> hdac0  [MPSAFE] (1p:1v/0r:0v channels)
>> pcm2: <HDA Analog Devices AD1988B PCM #2 Digital> at cad 0 nid 1 on
>> hdac0  [MPSAFE] (1p:1v/0r:0v channels)
>
> --
> Alexander Motin

Trying with the instructions on the manpage actually disabled my
sound... then again I probably screwed up the settings (I believe it
was noted as pcm2 before??).

Here're the device.hints entries and I attached the -v boot log
snippet for the card:

hint.hdac.0.cad0.nid17.config="as=1seq=0 device=Headphones"
hint.hdac.0.cad0.nid18.config="as=2seq=0 device=Line-out"
hint.hdac.0.cad0.nid19.config="as=3seq=0 device=Speaker"
hint.hdac.0.cad0.nid20.config="as=4seq=0 device=Mic"
hint.hdac.0.cad0.nid21.config="as=5seq=0 device=Line-in"
hint.hdac.0.cad0.nid22.config="as=6seq=0 device=Line-out"
hint.hdac.0.cad0.nid23.config="as=6seq=0 device=Mic"
hint.hdac.0.cad0.nid24.config="as=6seq=0 device=CD"
hint.hdac.0.cad0.nid36.config="as=5seq=0 device=Line-out"
hint.hdac.0.cad0.nid37.config="as=6seq=0 device=Line-out"

Thanks!
-Garrett

Received on Wed Jan 07 2009 - 03:29:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:40 UTC