snd_hda(4): getting line-in to work

Garrett Cooper yanefbsd at gmail.com
Tue Jan 6 20:29:54 PST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hdac.log
Type: application/octet-stream
Size: 31863 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090107/3dbafb68/hdac-0001.obj


More information about the freebsd-current mailing list