Hello

I am trying to get sound output from the built-in speaker of
a hdaudio system. The jack outputs sound, but so far I had
no success with the speaker;

Here is the relevant dmesg output for a -current kernel from last week:

hdaudio0 at pci0 dev 31 function 3: HD Audio Controller
hdaudio0: interrupting at msi1 vec 0
hdafg0 at hdaudio0: vendor 10ec product 0255
hdafg0: DAC00 2ch: Speaker [Jack]
hdafg0: 2ch/0ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: full duplex, playback, capture, mmap, independent
hdafg0: Virtual format configured - Format SLINEAR, precision 16, channels 2, 
frequency 48000
hdafg0: Latency: 128 milliseconds
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
hdafg1 at hdaudio0: vendor 8086 product 280b
hdafg1: DP00 8ch: Digital Out [Jack]
hdafg1: 8ch/0ch 48000Hz PCM16*

I understand hdafg1 is audio over HDMI, and is what I am looking for 
is hdafg0/audio0. Its mixer says:
outputs.master=174,174
outputs.master2=0,0
outputs.master2.mute=off
outputs.master3=0,0
outputs.master3.mute=off
outputs.dacsel=DAC00

The machins has two jacks and a built-in speaker. Using audioplay on 
an .au file, I get sound out of one of the jack (I assume the other
is for a microphone), but nothing from the built-in speaker.

Setting outputs.master2 or outputs.master3 to non zero values does 
not change anything. How I am supposed to enable it?

Other releant informaton:

# hdaudioctl list
codecid 0x00 nid 0x01 vendor 0x10EC product 0x0255 subsystem 0x085B1028 device 
hdafg0
codecid 0x02 nid 0x01 vendor 0x8086 product 0x280B subsystem 0x085B1028 device 
hdafg1

# hdaudioctl get 0 1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple. com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
        <dict>
                <key>config</key>
                <integer>0x40100000</integer>
                <key>nid</key>
                <integer>18</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x90170150</integer>
                <key>nid</key>
                <integer>20</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x411111f0</integer>
                <key>nid</key>
                <integer>23</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x411111f0</integer>
                <key>nid</key>
                <integer>24</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x411111f0</integer>
                <key>nid</key>
                <integer>25</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x411111f0</integer>
                <key>nid</key>
                <integer>26</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x2111020</integer>
                <key>nid</key>
                <integer>27</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x4054c029</integer>
                <key>nid</key>
                <integer>29</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x411111f0</integer>
                <key>nid</key>
                <integer>30</integer>
        </dict>
        <dict>
                <key>config</key>
                <integer>0x221105f</integer>
                <key>nid</key>
                <integer>33</integer>
        </dict>
</array>
</plist>






-- 
Emmanuel Dreyfus
m...@netbsd.org

Reply via email to