1. 08 5月, 2012 4 次提交
  2. 07 5月, 2012 5 次提交
    • H
      hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes · 847c25d0
      Hans de Goede 提交于
      The Linux AC97 driver tests this bit to decide wether or not to show
      an External amplifier toggle control.
      
      This patch was also tested with a Windows XP guest without any issues.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      847c25d0
    • H
      hw/ac97: Mask out unused bits of volume controls · 7873bfb8
      Hans de Goede 提交于
      The Linux ac97 drivers does a number of register read/write tests to
      see how much resolution a volume control actually has.
      
      This patch takes this into account by masking out any bits written to
      a volume control reg which should not be there according to the spec.
      
      After this the Linux ac97 driver correctly uses a range of 0 - 0x1f for
      the PCM out volume, as stated in the spec, and we can fix the FIXME
      in update_combined_volume_out().
      
      This patch was also tested with a Windows XP guest without any issues.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      7873bfb8
    • H
      hw/ac97: Use AC97_Record_Gain_Mute not AC97_Line_In_Volume_Mute · f94e9b9b
      Hans de Goede 提交于
      After commit 19677a38:
      "hw/ac97: add support for volume control"
      
      We are (correctly) using AC97_Record_Gain_Mute and not AC97_Line_In_Volume_Mute
      for recording volume, but various places in hw/ac97 were still assumimg that
      we are using AC97_Line_In_Volume_Mute for record volume control, this patch
      fixes this.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      f94e9b9b
    • H
      hw/ac97: Make a bunch of mixer registers read only · d044be37
      Hans de Goede 提交于
      The Linux ac97 driver tries to see if optional things like video input
      volume control are available in 2 ways:
      1) See if the mute bit is set after reset, if it is no further tests are done
      2) If the mute bit is not set it does a write/read test of the mute bit
      
      This patch changes our ac97 to conform to what the Linux driver expects, it
      initializes registers for things which we don't emulate to 0 (so the mute bit
      is not set) and makes them read only.
      
      This causes Linux to now longer show the following (functionless)
      controls in alsamixer:
      
      Master Mono vol + mute
      3d Control toggle
      PCM out pre / post 3d select
      Surround toggle
      CD vol + mute
      Mic vol + mute
      Mic boost toggle
      Mic mic1 / mic2 select
      Video vol + mute
      Phone vol + mute
      Beep mono vol + mute
      Aux vol + mute
      Mono "output mic" / "mix" select
      Sigmatel 4 speaker stereo toggle
      Sigmatel ADC 6Db att toggle
      Sigmatel DAC 6Db att toggle
      
      This patch was also tested with a Windows XP guest and there it also makes
      a number of functionless mixer controls go away.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      d044be37
    • H
      hw/ac97: Fix log message in mixer_load · a4e652eb
      Hans de Goede 提交于
      Fix a small copy and paste error in logging.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      a4e652eb
  3. 04 5月, 2012 1 次提交
  4. 03 5月, 2012 12 次提交
  5. 02 5月, 2012 18 次提交