[haiku-bugs] Re: [Haiku] #8476: Spare HDA jacks available - how can we address them?

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Mon, 20 Aug 2012 21:35:54 -0000

#8476: Spare HDA jacks available - how can we address them?
---------------------------------+----------------------------
   Reporter:  dsuden             |      Owner:  korli
       Type:  enhancement        |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  Drivers/Audio/HDA  |    Version:  R1/Development
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+----------------------------

Comment (by ttcoder):

 In a few days I'll try the "2 streams with 2 channels each" approach.
 Today I tried the "1x4" (1 output stream with 4 channels) approach but it
 does not seem to work:

 - Modified hda_multi_audio.cpp so that get_description() returns 4
 outChannels of type B_MULTI_OUTPUT_CHANNEL and so that
 get_enabled_channels() enables them.
 - Toyed with hda_controller.cpp (see below).

 Things looked good initially: the media preflet drop-down box does list 2
 items instead of one now (output 0 and output 1).

 I then tried to select "output 1" (instead of 0) in the media Preflet and
 restarted media a couple times, but apparently there is a bug in the
 media_server: when running Cortex I see that the main Mixer is still
 connected to HDA's first input, not to the second. Or maybe the bug is in
 the driver, maybe it needs to expose something else publicly so the
 media_server will instruct it to aim channels #2 and #3 at the output
 instead of channels #0 and #1... Did not find any reference to that in the
 source though, except for the [http://cgit.haiku-os.org/haiku/tree/src
 /add-ons/kernel/drivers/audio/hda/hda_controller.cpp#n724 hda_controller]
 one I toyed with a bit. I can include a screenshot of Cortex if that
 helps, the mixer is still connected in the same way no matter which
 "output" is selected in the preflet.

 Lastly I tried to force a connection to that second output from TTCC, and
 then from the "ToneProducer" addon but still to no avail. This is likely
 not a user error on my side, because connecting TTCC or ToneProducer works
 fine when I do that to the first output...

 Had I been able to select one or the other that would be promising, and
 the next test would have been to send the compiled driver to Dane for him
 to try simultaneous playback of two different audio playbacks to two
 outputs (my HDA here only has one output)... But if the basics won't work
 here it won't work for him in a more complex setup either. So next I'll
 turn my attention to the "twin streams" tactic I think, though that will
 be a tougher nut to crack.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8476#comment:13>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: