1. 21 4月, 2017 1 次提交
    • T
      ALSA: hda - Support Gigabyte Gaming board with dual Realtek codecs · 7beb3a6e
      Takashi Iwai 提交于
      This patch adds some workarounds to make Gigabyte GA-AX370 Gaming 5
      board working without the conflicts of kctls, etc.  In general, the
      dual codec configs result in the conflicts of the following stuff:
      - Master controls
      - Capture controls
      - Analog loopback controls
      In addition, the auto-mute and the auto-mic can't work well among
      multiple codecs.
      
      The current "solution" is to disable all these features, and use UCM
      for a better PulseAudio management.  For a dedicated UCM profile, the
      patch overrides the card longname so that the system an get a unique
      profile path.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195305Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7beb3a6e
  2. 10 4月, 2017 2 次提交
  3. 07 4月, 2017 1 次提交
  4. 03 4月, 2017 2 次提交
  5. 01 4月, 2017 1 次提交
  6. 31 3月, 2017 1 次提交
    • H
      ALSA: hda - fix a problem for lineout on a Dell AIO machine · 2f726aec
      Hui Wang 提交于
      On this Dell AIO machine, the lineout jack does not work.
      
      We found the pin 0x1a is assigned to lineout on this machine, and in
      the past, we applied ALC298_FIXUP_DELL1_MIC_NO_PRESENCE to fix the
      heaset-set mic problem for this machine, this fixup will redefine
      the pin 0x1a to headphone-mic, as a result the lineout doesn't
      work anymore.
      
      After consulting with Dell, they told us this machine doesn't support
      microphone via headset jack, so we add a new fixup which only defines
      the pin 0x18 as the headset-mic.
      
      [rearranged the fixup insertion position by tiwai in order to make the
       merge with other branches easier -- tiwai]
      
      Fixes: 59ec4b57 ("ALSA: hda - Fix headset mic detection problem for two dell machines")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NHui Wang <hui.wang@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2f726aec
  7. 30 3月, 2017 1 次提交
  8. 24 3月, 2017 1 次提交
    • A
      ALSA: au88x0: avoid theoretical uninitialized access · 13f99ebd
      Arnd Bergmann 提交于
      The latest gcc-7.0.1 snapshot points out that we if nr_ch is zero, we never
      initialize some variables:
      
      sound/pci/au88x0/au88x0_core.c: In function 'vortex_adb_allocroute':
      sound/pci/au88x0/au88x0_core.c:2304:68: error: 'mix[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      sound/pci/au88x0/au88x0_core.c:2305:58: error: 'src[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      I assume this can never happen in practice, but adding a check here doesn't
      hurt either and avoids the warning. The code has been unchanged since
      the start of git history.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      13f99ebd
  9. 23 3月, 2017 1 次提交
  10. 20 3月, 2017 4 次提交
  11. 01 3月, 2017 7 次提交
  12. 28 2月, 2017 6 次提交
  13. 27 2月, 2017 1 次提交
  14. 25 2月, 2017 1 次提交
  15. 22 2月, 2017 1 次提交
    • B
      ALSA: pci: constify snd_kcontrol_new structures · f3b827e0
      Bhumika Goyal 提交于
      Declare snd_kcontrol_new structures as const as they are only passed as
      an argument to the function snd_ctl_new1. This argument is of type
      const, so snd_kcontrol_new structures having the same property can be
      made const too.
      Done using Coccinelle:
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct snd_kcontrol_new i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      expression e1;
      @@
      snd_ctl_new1(&i@p,e1)
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct snd_kcontrol_new i;
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f3b827e0
  16. 20 2月, 2017 1 次提交
  17. 16 2月, 2017 3 次提交
  18. 14 2月, 2017 1 次提交
  19. 09 2月, 2017 1 次提交
  20. 27 1月, 2017 1 次提交
    • B
      ALSA: cs46xx: constify snd_pcm_ops structures · a6f9dec2
      Bhumika Goyal 提交于
      Declare snd_pcm_ops structures as const as they are either stored in the
      ops field of a snd_pcm_substream structure or passed as an argument to
      the function snd_pcm_set_ops. The function argument and the ops field
      are of type const, so snd_pcm_ops structures having this property
      can be made const too.
      
      File size before: sound/pci/cs46xx/cs46xx_lib.o
         text	   data	    bss	    dec	    hex	filename
        26047	   5304	     16	  31367	   7a87	sound/pci/cs46xx/cs46xx_lib.o
      
      File size after: sound/pci/cs46xx/cs46xx_lib.o
         text	   data	    bss	    dec	    hex	filename
        27335	   4036	     16	  31387	   7a9b	sound/pci/cs46xx/cs46xx_lib.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a6f9dec2
  21. 18 1月, 2017 1 次提交
  22. 16 1月, 2017 1 次提交