snd_hda, sound in both speaker and headphones

Ingeborg Hellemo Ingeborg.Hellemo at cc.uit.no
Thu Jan 18 11:44:55 UTC 2007


ariff at FreeBSD.org said:
> Did you grab the latest hdac.c and recompile? 

Yes. I have now done the following:

* Compiled with tuesdays hdac.c. Result: Sound in speaker, none in headphone. 
There is a minor difference inn dmesg:

Original hdac.c:
pcm0: HDA_DEBUG: OSS mixer initialization...
pcm0: HDA_DEBUG: Enabling Soft PCM volume

Tuesdays hdac.c:
pcm0: HDA_DEBUG: OSS mixer initialization...
pcm0: HDA_DEBUG: Pin sense: nid=21 res=0x7fffffff
pcm0: HDA_DEBUG: Enabling headphone/speaker audio routing switching:
pcm0: HDA_DEBUG:        index=4 nid=21 pci_subvendor=0x3013103c 
codec=0x10ec0260
pcm0: HDA_DEBUG: Enabling Soft PCM volume

I am not able to trigger any more "Pin sense"-lines if I plug/unplug the 
headphone. The "Pin sense"-line does not change if I load the module with or 
without the headphone plugged in.


* Compiled with todays hdac.c. Result: Sound in both speaker and headphone. 
dmesg says: 
pcm0: HDA_DEBUG: OSS mixer initialization...
pcm0: HDA_DEBUG: Enabling Soft PCM volume

~/>grep XW43 /usr/src/sys/dev/sound/pci/hda/hdac.c
#define HP_XW4300_SUBVENDOR     HDA_MODEL_CONSTRUCT(HP, 0x3013)
                if (subvendor == HP_XW4300_SUBVENDOR) {


/usr/sbin/mixer only recognise "vol, pcm, line, mic, cd, rec"


I recompile with "cd /usr/src/sys/modules/sound/; make clean cleandir; make && 
make install"

Thank you for spending time on this!


--Ingeborg



More information about the freebsd-multimedia mailing list