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

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Thu, 19 Apr 2012 14:32:30 -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):

 With some search-engine help I've found this [http://cgit.haiku-
 os.org/haiku/commit/?id=02b3446666d04e12e8fe8caea11c6f2f0962fd8c
 multi_audio_test.cpp] sample file. It works with ioctl()s on the
 /dev/audio/hda..... pseudo-file. Great, I thought! But no cigar :-/..
 Here's my findings..

 {{{
 ~/Desktop/haiku_GIT/MULTIAUDIO_test> ./multi_audio_test
 /dev/audio/hmulti/hda/0
 multi_audio_test: Could not open "/dev/audio/hmulti/hda/0":
 Device/File/Resource busy
 }}}

 Ok so the media_server needs to be shutdown before accessing the driver..
 Is that a bug, i.e. something to report in this ticket (or another one) ?
 If that's a "feature" then it's definitely a show-stopper for us...

 Then I did...

 {{{
 ~/Desktop/haiku_GIT/MULTIAUDIO_test> hey media_server quit
 (....)
 ~/Desktop/haiku_GIT/MULTIAUDIO_test> ./multi_audio_test
 /dev/audio/hmulti/hda/0
 > desc
 friendly name:                  HD Audio
 vendor:                         Haiku

 output rates:                   0x2900 (max 0)
 input rates:                    0x900 (max 0)
 max cont. var. sample rate:     0
 min cont. var. sample rate:     0
 output formats:                 0x150
 input formats:                  0x150
 lock sources:                   0x1
 timecode sources:               0x0
 interface flags:                0x3
 control panel string:

 channels:
   2 outputs, 2 inputs
   2 out busses, 2 in busses

   ID    kind       designations connectors
    0    out        0x2000001    0x0
    1    out        0x2000002    0x0
    2    in         0x2000001    0x0
    3    in         0x2000002    0x0
 > channels
 4 channels:
   xxxx
 > play
 format 32bit (0x1000)
 sample rate 48000 (0x100)
 playback: buffer count 2, channels 2, buffer size 2048
 record: buffer count 2, channels 2, buffer size 2048
 }}}

 but did not hear anything coming from the speakers...

 (yep it works fine otherwise: I'm listening to music right now, after
 restarting media_server).

 Will leave interpretation to somebody knowledgeable..! Much appreciated in
 advance thanks :-)

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

Other related posts: