5 | | Anyway, even though the above is only 4 HDA verbs, that gave more enough to work with for a couple days, to "retool". Confirmed that implementing just those 4 in haiku is not enough to get audio working. Now I'm ready for the full thing :-) |
| 5 | Anyway, even though the above is only 4 HDA verbs, that gave more enough to work with for a couple days, to "retool". Confirmed that implementing just those 4 verbs in haiku is not enough to get audio working. Now I'm ready for the full thing :-) |
| 6 | |
| 7 | In other words, |
| 8 | |
| 9 | You should type both those lines in terminal: |
| 10 | |
| 11 | {{{ |
| 12 | echo 1 > /sys/kernel/debug/tracing/events/hda/enable |
| 13 | echo 1 > /sys/class/sound/hwC0D0/reconfig |
| 14 | }}} |
| 15 | |
| 16 | That will trigger a (second) reconfiguration *after* tracing-logging is enabled, so that the log will contain the whole initialization sequence. |
| 17 | |
| 18 | The log should then contain many more than four verbs, it should be a flood comparable to this (partial) Haiku listing: |
| 19 | |
| 20 | {{{ |
| 21 | |
| 22 | Welcome to the Haiku shell. |
| 23 | |
| 24 | /boot/system/var/log> grep hda-verb syslog |
| 25 | KERN: hda: widgets: KERN: hda-verb <0x010a0000>: [0] nid 0x10 (16) : pload 0x0 vid 0xa0000 (VID_GET_CONVERTER_FORMAT) |
| 26 | KERN: hda-verb <0x01420811>: [0] nid 0x14 (20) : pload 0x811 vid 0x20000 (VID_SET_CONVERTER_FORMAT) |
| 27 | KERN: hda-verb <0x01470620>: [0] nid 0x14 (20) : pload 0x20 vid 0x70600 (VID_SET_CONVERTER_STREAM_CHANNEL) |
| 28 | KERN: 20 hda-verb <0x010a0000>: [0] nid 0x10 (16) : pload 0x0 vid 0xa0000 (VID_GET_CONVERTER_FORMAT) |
| 29 | KERN: hda-verb <0x01520811>: [0] nid 0x15 (21) : pload 0x811 vid 0x20000 (VID_SET_CONVERTER_FORMAT) |
| 30 | KERN: hda-verb <0x01570620>: [0] nid 0x15 (21) : pload 0x20 vid 0x70600 (VID_SET_CONVERTER_STREAM_CHANNEL) |
| 31 | KERN: hda: widgets: KERN: hda-verb <0x010a0000>: [0] nid 0x10 (16) : pload 0x0 vid 0xa0000 (VID_GET_CONVERTER_FORMAT) |
| 32 | KERN: hda-verb <0x01024011>: [0] nid 0x10 (16) : pload 0x4011 vid 0x20000 (VID_SET_CONVERTER_FORMAT) |
| 33 | KERN: hda-verb <0x01070610>: [0] nid 0x10 (16) : pload 0x10 vid 0x70600 (VID_SET_CONVERTER_STREAM_CHANNEL) |
| 34 | KERN: hda: widgets: KERN: hda-verb <0x010a0000>: [0] nid 0x10 (16) : pload 0x0 vid 0xa0000 (VID_GET_CONVERTER_FORMAT) |
| 35 | KERN: hda-verb <0x01420811>: [0] nid 0x14 (20) : pload 0x811 vid 0x20000 (VID_SET_CONVERTER_FORMAT) |
| 36 | KERN: hda-verb <0x01470620>: [0] nid 0x14 (20) : pload 0x20 vid 0x70600 (VID_SET_CONVERTER_STREAM_CHANNEL) |
| 37 | KERN: 20 hda-verb <0x010a0000>: [0] nid 0x10 (16) : pload 0x0 vid 0xa0000 (VID_GET_CONVERTER_FORMAT) |
| 38 | KERN: hda-verb <0x01520811>: [0] nid 0x15 (21) : pload 0x811 vid 0x20000 (VID_SET_CONVERTER_FORMAT) |
| 39 | KERN: hda-verb <0x01570620>: [0] nid 0x15 (21) : pload 0x20 vid 0x70600 (VID_SET_CONVERTER_STREAM_CHANNEL) |
| 40 | KERN: hda-verb <0x010ba000>: [0] nid 0x10 (16) : pload 0xa000 vid 0xb0000 (VID_GET_AMPLIFIER_GAIN_MUTE) |
| 41 | KERN: hda-verb <0x010b8000>: [0] nid 0x10 (16) : pload 0x8000 vid 0xb0000 (VID_GET_AMPLIFIER_GAIN_MUTE) |
| 42 | KERN: hda-verb <0x0103a04a>: [0] nid 0x10 (16) : pload 0xa04a vid 0x30000 (VID_SET_AMPLIFIER_GAIN_MUTE) |
| 43 | KERN: hda-verb <0x0103904a>: [0] nid 0x10 (16) : pload 0x904a vid 0x30000 (VID_SET_AMPLIFIER_GAIN_MUTE) |
| 44 | KERN: hda-verb <0x010ba000>: [0] nid 0x10 (16) : pload 0xa000 vid 0xb0000 (VID_GET_AMPLIFIER_GAIN_MUTE) |
| 45 | }}} |
| 46 | |
| 47 | Then I'll ruthlessly adapt my code to match your log line-for-line. Thanks! |