1. 21 Jun, 2012 3 commits
  2. 20 Jun, 2012 4 commits
  3. 18 Jun, 2012 4 commits
  4. 15 Jun, 2012 6 commits
  5. 14 Jun, 2012 1 commit
    • David Henningsson's avatar
      ALSA: HDA: Create phantom jacks for fixed inputs and outputs · 80c8bfbe
      David Henningsson authored
      PulseAudio sometimes have difficulties knowing that there is a
      "Speaker" or "Internal Mic", if they have no individual volume
      controls or selectors. As a result, only e g "Headphone" might
      be created for a laptop, but no "Speaker".
      To help out, create phantom jacks (that are always present,
      at least for now) for "Speaker", "Internal Mic" etc, in case we
      detect them.
      The naming convention is e g "Speaker Phantom Jack".
      
      In order not to pollute the /dev/input namespace with even more
      devices, these are added to the kcontrols only, not the input devices.
      Signed-off-by: default avatarDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      80c8bfbe
  6. 13 Jun, 2012 1 commit
  7. 12 Jun, 2012 4 commits
  8. 11 Jun, 2012 10 commits
  9. 09 Jun, 2012 1 commit
  10. 08 Jun, 2012 6 commits
    • Steven Newbury's avatar
      ALSA: hda - HDMI Audio init all connectors when VGA-switcheroo is off · 8393ec4a
      Steven Newbury authored
      When VGA_SWITCHEROO support is enabled hda_intel initialises the HDMI
      audio device on the current VGA device.  When it's not enabled it only
      initialises the HDMI device on the default VGA adaptor, this means
      secondary cards get no audio support which is very unhelpful for
      multi-seat!
      
      With this patch, when SUPPORT_VGA_SWITCHEROO is disabled hda_intel
      initialises all HDMI audio devices, not just the default VGA.
      
      [minor optimizations by tiwai]
      Signed-off-by: default avatarSteven Newbury <steve@snewbury.org.uk>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      8393ec4a
    • Takashi Iwai's avatar
      vga_switcheroo: Fix error without CONFIG_VGA_SWITCHEROO · 505cff00
      Takashi Iwai authored
      Fix a typo that is built only when CONFIG_VGA_SWITCHEROO=n.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      505cff00
    • Takashi Iwai's avatar
      ALSA: hda - Fix uninitialized HDMI controllers with VGA-switcheroo · 12b78a7f
      Takashi Iwai authored
      When VGA-switcheroo is built in but unused on systems with multiple
      graphics cards, the initializations of non-default graphics cards are
      skipped and never enabled (because the switcheroo is activated only
      when the controller supports).  The current behavior is for avoiding
      the system lockup by accessing the disabled GPU, but due to the recent
      change in VGA-switcheroo, it determines the state simply by checking
      with the default VGA device.  This is the culprit.
      
      Now with the new vga_switcheroo_get_client_state(), we can know the
      initial state of the bound GPU, thus can determine the initial audio
      client state more correctly.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      12b78a7f
    • Takashi Iwai's avatar
      vga_switcheroo: Add a helper function to get the client state · c8e9cf7b
      Takashi Iwai authored
      Add vga_switcheroo_get_client_state() to get the current state of the
      client.  This is necessary to determine the proper initial state of
      audio clients in HD-audio driver.
      Acked-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      c8e9cf7b
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix substream assignments · 8260ef07
      Takashi Iwai authored
      In 3.5 kernel, the endpoint is assigned dynamically for the
      substreams, but the PCM assignment still checks the presence of the
      endpoint pointer.  This ended up in duplicated PCM substream creations
      at probing time, resulting in kernel warnings like:
      
      WARNING: at fs/proc/generic.c:586 proc_register+0x169/0x1a6()
      Pid: 1152, comm: modprobe Not tainted 3.5.0-rc1-00110-g71fae7e7 #2
      Call Trace:
       [<ffffffff8102a400>] warn_slowpath_common+0x83/0x9c
       [<ffffffff8102a4bc>] warn_slowpath_fmt+0x46/0x48
       [<ffffffff813829ad>] ? add_preempt_count+0x39/0x3b
       [<ffffffff811292f0>] proc_register+0x169/0x1a6
       [<ffffffff8112962e>] create_proc_entry+0x74/0x8c
       [<ffffffffa018eb63>] snd_info_register+0x3e/0xc3 [snd]
       [<ffffffffa01fde2e>] snd_pcm_new_stream+0xb1/0x404 [snd_pcm]
       [<ffffffffa024861f>] snd_usb_add_audio_stream+0xd2/0x230 [snd_usb_audio]
       [<ffffffffa0241d33>] ? snd_usb_parse_audio_format+0x252/0x34f [snd_usb_audio]
       [<ffffffff810d6b17>] ? kmem_cache_alloc_trace+0xab/0xbb
       [<ffffffffa0248c29>] snd_usb_parse_audio_interface+0x4ac/0x567 [snd_usb_audio]
       [<ffffffffa023f0ff>] snd_usb_create_stream+0xe9/0x125 [snd_usb_audio]
       [<ffffffffa023f9b1>] usb_audio_probe+0x62a/0x72c [snd_usb_audio]
       .....
      
      This patch fixes the regression by checking the fixed endpoint number
      for each substream instead of the endpoint pointer.
      Reported-and-tested-by: default avatarJamie Heilman <jamie@audible.transient.net>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      8260ef07
    • Wang Xingchao's avatar
      ALSA: hda - power setting error check · 09617ce4
      Wang Xingchao authored
      codec may reject power state transition requests(reporting PS-ERROR set),
      in that case we re-issue a power state setting and check error bit again.
      Signed-off-by: default avatarWang Xingchao <xingchao.wang@intel.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      09617ce4