1. 16 3月, 2019 1 次提交
  2. 14 3月, 2019 4 次提交
  3. 13 3月, 2019 4 次提交
  4. 22 2月, 2019 1 次提交
    • S
      ALSA: hda/tegra: sound card name from device tree · c0bde003
      Sameer Pujar 提交于
      A platform can have multiple sound cards for different audio paths.
      Following is the print seen duirng device boot for jetson-xavier,
        ALSA device list:
          #0: nvidia,p2972-0000 at 0x3518000 irq 17
      By looking at above, it is not very clear if the sound card is for
      HDA. It becomes confusing when platform has registered multiple cards,
      and platform model name is used for card.
      
      This patch uses "nvidia,model" property mentioned in hda device tree
      to get the card name. Since property is optional, legacy boards will
      continue to use "tegra-hda". Custom name can be passed wherever needed.
      This naming convention is conistent with the way sound cards are named
      in general.
      Signed-off-by: NSameer Pujar <spujar@nvidia.com>
      Reviewed-by: NJonathan Hunter <jonathanh@nvidia.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c0bde003
  5. 21 2月, 2019 1 次提交
  6. 20 2月, 2019 1 次提交
    • T
      ALSA: hda/realtek - Reduce click noise on Dell Precision 5820 headphone · c0ca5ece
      Takashi Iwai 提交于
      Dell Precision 5820 with ALC3234 codec (which is equivalent with
      ALC255) shows click noises at (runtime) PM resume on the headphone.
      The biggest source of the noise comes from the cleared headphone pin
      control at resume, which is done via the standard shutup procedure.
      
      Although we have an override of the standard shutup callback to
      replace with NOP, this would skip other needed stuff (e.g. the pull
      down of headset power).  So, instead, this "fixes" the behavior of
      alc_fixup_no_shutup() by introducing spec->no_shutup_pins flag.
      When this flag is set, Realtek codec won't call the standard
      snd_hda_shutup_pins() & co.  Now alc_fixup_no_shutup() just sets this
      flag instead of overriding spec->shutup callback itself.  This allows
      us to apply the similar fix for other entries easily if needed in
      future.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c0ca5ece
  7. 14 2月, 2019 2 次提交
    • H
      ALSA: hda/realtek: Disable PC beep in passthrough on alc285 · c8c6ee61
      Hui Wang 提交于
      It is reported that there's a constant background "hum/whitenoise"
      in the headset on the Lenovo X1 machines with the codec alc285, and it
      is confirmed that if we run the command below, the noise will stop.
       sudo hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0
      
      Then I consulted this issue with Kailang, he told me the pin 0x1d on
      this codec is used for PC beep in, the noise probably comes from this
      pin and we can also disable the PC beep in passthrough, then the PC
      beep in will not affect other sound playback.
      
      Fixes: c4cfcf6f ("ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops")
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1660581
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NKailang Yang <kailang@realtek.com>
      Signed-off-by: NHui Wang <hui.wang@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c8c6ee61
    • J
      ALSA: hda/realtek - Headset microphone and internal speaker support for System76 oryp5 · 7f665b1c
      Jeremy Soller 提交于
      On the System76 Oryx Pro (oryp5), there is a headset microphone input
      attached to 0x19 that does not have a jack detect. In order to get it
      working, the pin configuration needs to be set correctly, and the
      ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC fixup needs to be applied. This is
      similar to the MIC_NO_PRESENCE fixups for some Dell laptops, except we
      have a separate microphone jack that is already configured correctly.
      
      Since the ALC1220 does not have a fixup similar to
      ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC, I have exposed the fixup from the
      ALC269 in a way that it can be accessed from the
      alc1220_fixup_system76_oryp5 function. In addition, the
      alc1220_fixup_clevo_p950 needs to be applied to gain speaker output.
      Signed-off-by: NJeremy Soller <jeremy@system76.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7f665b1c
  8. 08 2月, 2019 1 次提交
  9. 07 2月, 2019 3 次提交
  10. 06 2月, 2019 2 次提交
  11. 01 2月, 2019 3 次提交
    • T
      ALSA: hda - Serialize codec registrations · 305a0ade
      Takashi Iwai 提交于
      In the current code, the codec registration may happen both at the
      codec bind time and the end of the controller probe time.  In a rare
      occasion, they race with each other, leading to Oops due to the still
      uninitialized card device.
      
      This patch introduces a simple flag to prevent the codec registration
      at the codec bind time as long as the controller probe is going on.
      The controller probe invokes snd_card_register() that does the whole
      registration task, and we don't need to register each piece
      beforehand.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      305a0ade
    • T
      ALSA: hda/realtek - Use a common helper for hp pin reference · 35a39f98
      Takashi Iwai 提交于
      Replace the open-codes in many places with a new common helper for
      performing the same thing: referring to the primary headphone pin.
      
      This eventually fixes the potentially missing headphone pin on some
      weird devices, too.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      35a39f98
    • K
      ALSA: hda/realtek - Fix lose hp_pins for disable auto mute · d561aa0a
      Kailang Yang 提交于
      When auto_mute = no or spec->suppress_auto_mute = 1, cfg->hp_pins will
      lose value.
      
      Add this patch to find hp_pins value.
      I add fixed for ALC282 ALC225 ALC256 ALC294 and alc_default_init()
      alc_default_shutup().
      Signed-off-by: NKailang Yang <kailang@realtek.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d561aa0a
  12. 31 1月, 2019 1 次提交
  13. 30 1月, 2019 3 次提交
    • T
      ALSA: hda - Use standard device registration for beep · 45571bb8
      Takashi Iwai 提交于
      Currently the registration and free of beep input device was done
      manually from the register and the disconnect callbacks of the
      assigned codec object.  This seems working in most cases, but this may
      be a cause of some races at probe.  Moreover, due to these manual
      calls, the total code became unnecessarily lengthy.
      
      This patch rewrites the beep registration code to follow the standard
      sound device object style.  This allows us reducing the code, in
      addition to avoiding the nested device registration calls.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      45571bb8
    • T
      ALSA: hda/realtek - Apply ALC294 hp init also for S4 resume · f6ef4e0e
      Takashi Iwai 提交于
      The init sequence for ALC294 headphone stuff is needed not only for
      the boot up time but also for the resume from hibernation, where the
      device is switched from the boot kernel without sound driver to the
      suspended image.  Since we record the PM event in the device
      power_state field, we can now recognize the call pattern and apply the
      sequence conditionally.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f6ef4e0e
    • T
      ALSA: hda - Record the current power state before suspend/resume calls · 98081ca6
      Takashi Iwai 提交于
      Currently we deal with single codec and suspend codec callbacks for
      all S3, S4 and runtime PM handling.  But it turned out that we want
      distinguish the call patterns sometimes, e.g. for applying some init
      sequence only at probing and restoring from hibernate.
      
      This patch slightly modifies the common PM callbacks for HD-audio
      codec and stores the currently processed PM event in power_state of
      the codec's device.power field, which is currently unused.  The codec
      callback can take a look at this event value and judges which purpose
      it's being called.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      98081ca6
  14. 29 1月, 2019 1 次提交
    • K
      ALSA: hda/realtek - Fixed hp_pin no value · 693abe11
      Kailang Yang 提交于
      Fix hp_pin always no value.
      
      [More notes on the changes:
      
       The hp_pin value that is referred in alc294_hp_init() is always zero
       at the moment the function gets called, hence this is actually
       useless as in the current code.
      
       And, this kind of init sequence should be called from the codec init
       callback, instead of the parser function.  So, the first fix in this
       patch to move the call call into its own init_hook.
      
       OTOH, this function is needed to be called only once after the boot,
       and it'd take too long for invoking at each resume (where the init
       callback gets called).  So we add a new flag and invoke this only
       once as an additional fix.
      
       The one case is still not covered, though: S4 resume.  But this
       change itself won't lead to any regression in that regard, so we
       leave S4 issue as is for now and fix it later.  -- tiwai ]
      
      Fixes: bde1a745 ("ALSA: hda/realtek - Fixed headphone issue for ALC700")
      Signed-off-by: NKailang Yang <kailang@realtek.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      693abe11
  15. 22 1月, 2019 6 次提交
  16. 21 1月, 2019 2 次提交
  17. 16 1月, 2019 2 次提交
  18. 15 1月, 2019 1 次提交
  19. 14 1月, 2019 1 次提交