Changes between Version 1 and Version 2 of Ticket #14242, comment 15


Ignore:
Timestamp:
Nov 16, 2018, 2:19:47 PM (6 years ago)
Author:
ttcoder

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14242, comment 15

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