[haiku-bugs] Re: [Haiku] #8270: [HDA] very quiet on Lenovo laptop (due to hda mixer?)

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Thu, 05 Jan 2012 21:51:04 -0000

#8270: [HDA] very quiet on Lenovo laptop (due to hda mixer?)
---------------------------------+----------------------------
   Reporter:  ttcoder            |      Owner:  korli
       Type:  bug                |     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):

 listdev:
 {{{
 device Multimedia controller (Audio device) [4|3|0]
   vendor 8086: Intel Corporation
   device 284b: 82801H (ICH8 Family) HD Audio Controller
 }}}

 And it so happens that I waited until '''finding (a) culprit''', before
 filing this ticket. As of tonight, after a few weeks of fiddling with the
 HDA driver, I now have FULL volume in Haiku. Here's the diff I applied:

 {{{
 ~/Desktop/haiku_GIT/hda> diff hda_codec_ORIGINAL.cpp hda_codec.cpp
 1040c1041,1042
 <       if (!hda_audio_group_build_output_tree(audioGroup, true)) {
 ---
 > //    if (!hda_audio_group_build_output_tree(audioGroup, true))
 >       {
 }}}

 This of course cannot be commited as-is to the source-tree, but hopefully
 it will help find the root cause.. :-)

 Looking at the syslog, I see that the hda-mixer has a 'offset' that
 differs' from its 'number of steps' (20 vs. 43).. noticed that this is
 atypical of the other entries listed in the syslog, though dunno if it's
 significant for sure..:

 {{{
 KERN: 23: Audio mixer
 KERN:   Supported power states: D0 D1 D2 D3
 KERN:   [Power] [Conn. list] [Amplifier override] [In amplifier] [Stereo]
 KERN:   In Amp: supports mute, step size: 1.5 dB, # steps: 43, offset to 0
 dB: 20 (0x80052B14)
 KERN:   Inputs: 25 20 18 17 21
 }}}

 I'm available for questions, tests ..etc that could help fix this for
 good.

 Thanks.

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

Other related posts: