On Thu, 21 Aug 2014 20:50:52 -0300 Giancarlo Razzolini <[email protected]> wrote:
> I've never tried on OpenBSD. But from someone that had experience > from both type of graphic cards, the ones that have their own internal > mixer and the ones that only have a S/PDIF input, both of them can be > tricky to get sound over HDMI. Without knowing the specific card > model, it's hard to even begin to answer your question. Laptop model is: http://www.bhphotovideo.com/c/product/1014784-REG/lenovo_20b6005rus_t440_i5_4300u_4gb_500gb_windows_7_windows_8.html Graphics card is Intel HD Graphics 4400. Here's relevant pcidump output: 0:2:0: Intel HD Graphics 0x0000: Vendor ID: 8086 Product ID: 0a16 0x0004: Command: 0007 Status: 0090 0x0008: Class: 03 Subclass: 00 Interface: 00 Revision: 0b 0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00 0x0010: BAR mem 64bit addr: 0x00000000f0000000/0x00400000 0x0018: BAR mem prefetchable 64bit addr: 0x00000000e0000000/0x10000000 0x0020: BAR io addr: 0x00003000/0x0040 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 17aa Product ID: 220c 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00 0x0090: Capability 0x05: Message Signaled Interrupts (MSI) 0x00d0: Capability 0x01: Power Management 0x00a4: Capability 0x13: PCI Advanced Features 0:3:0: Intel Core 4G HD Audio 0x0000: Vendor ID: 8086 Product ID: 0a0c 0x0004: Command: 0006 Status: 0010 0x0008: Class: 04 Subclass: 03 Interface: 00 Revision: 0b 0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 10 0x0010: BAR mem 64bit addr: 0x00000000f0530000/0x00004000 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 17aa Product ID: 220c 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00 0x0050: Capability 0x01: Power Management 0x0060: Capability 0x05: Message Signaled Interrupts (MSI) 0x0070: Capability 0x10: PCI Express dmesg says no codecs on azalia0, which I think correspond to HDMI audio: azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x0b: msi azalia0: No codecs found "Intel 8 Series xHCI" rev 0x04 at pci0 dev 20 function 0 not configured "Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured em0 at pci0 dev 25 function 0 "Intel I218-LM" rev 0x04: msi, address 28:d2:44:3f:e8:63 azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi azalia1: codecs: Realtek ALC292 audio0 at azalia1 > I believe > that a card with S/PDIF should work. There is no configuration/driver > relation, it's just a hardware connection from your > motherboard/soundcard S/PDIF output, to the graphic card S/PDIF > input. But with a card with the internal mixer, things gets > complicated. Although I am using OpenBSD for firewalls for more than a decade, I have just installed it onto my laptop for the first time. I've been using FreeBSD on laptops for years, and I have switched because FreeBSD does not support this video adapter (haswell) at all. So please excuse me if I sound a bit noobish, as I don't have experience with _using_ audio and video peripherals on OpenBSD, much less writing code for them. On FreeBSD I had multiple /dev/dspX devices. /dev/dsp4 was playing to internal speakers, and /dev/dsp1 to HDMI. I needed to change device manually in applications (VLC for video and clementine for audio). On OpenBSD, i have multiple /dev/audioX devices: pacija@efreet:/dev $ ls | grep audio audio audio0 audio1 audio2 audioctl audioctl0 audioctl1 audioctl2 I thought I would be able to output sound to HDMI (actually it is micro display port here) by setting different device in application, but it did not work. > A little off topic, but on a related issue, I've always wanted to > migrated my HTPC solution to OpenBSD. But there are lots of hiccups, > and honestly, I don't even know if I have the knowledge to code what > needs to be coded. Sorry, but I did not understand which is the final verdict. Does OpenBSD 5.5 has general ability to play sound over HDMI? If so, how can I check if my video adapter has the ability? And finaly, if it does, how do I instruct applications to play sound over HDMI instead to speakers? Thank you in advance, -- Marko Cupać

