1. 05 Nov, 2014 1 commit
  2. 04 Nov, 2014 7 commits
    • Takashi Iwai's avatar
      ae366c20
    • Takashi Iwai's avatar
      ALSA: usb-audio: Pass direct struct pointer instead of list_head · a6cece9d
      Takashi Iwai authored
      Some functions in mixer.c and endpoint.c receive list_head instead of
      the object itself.  This is not obvious and rather error-prone.  Let's
      pass the proper object directly instead.
      
      The functions in midi.c still receive list_head and this can't be
      changed since the object definition isn't exposed to the outside of
      midi.c, so left as is.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a6cece9d
    • Takashi Iwai's avatar
      ALSA: usb-audio: Flatten probe and disconnect functions · 4c8c3a4f
      Takashi Iwai authored
      The usb-audio probe and disconnect functions have been split just for
      adapting the (new!) API at 2.5 kernel time.  We left them until now,
      partly because we wanted to build with the pretty old kernels in the
      external alsa-driver tree.  But the support of such old kernels has
      been longly stopped, so it's good time to clean up this mess.
      
      One good point by this cleanup is that now the probe function returns
      a proper error code instead of only -EIO.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      4c8c3a4f
    • Takashi Iwai's avatar
      ALSA: pcm: Add xrun_injection proc entry · 2b30d411
      Takashi Iwai authored
      This patch adds a new proc entry for PCM substreams to inject an
      XRUN.  When a PCM substream is running and any value is written to its
      xrun_injection proc file, the driver triggers XRUN.  This is a useful
      feature for debugging XRUN and error handling code paths.
      
      Note that this entry is enabled only when CONFIG_SND_PCM_XRUN_DEBUG is
      set.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2b30d411
    • Takashi Iwai's avatar
      ALSA: pcm: Replace PCM hwptr tracking with tracepoints · f5914908
      Takashi Iwai authored
      ALSA PCM core has a mechanism tracking the PCM hwptr updates for
      analyzing XRUNs.  But its log is limited (up to 10) and its log output
      is a kernel message, which is hard to handle.
      
      In this patch, the hwptr logging is moved to the tracing
      infrastructure instead of its own.  Not only the hwptr updates but
      also XRUN and hwptr errors are recorded on the trace log, so that user
      can see such events at the exact timing.
      
      The new "snd_pcm" entry will appear in the tracing events:
        # ls -F /sys/kernel/debug/tracing/events/snd_pcm
        enable  filter  hw_ptr_error/  hwptr/  xrun/
      
      The hwptr is for the regular hwptr update events.  An event trace
      looks like:
      
        aplay-26187 [004] d..3  4012.834761: hwptr: pcmC0D0p/sub0: POS: pos=488, old=0, base=0, period=1024, buf=16384
      
      "POS" shows the hwptr update by the explicit position update call and
      "IRQ" means the hwptr update by the interrupt,
      i.e. snd_pcm_period_elapsed() call.  The "pos" is the passed
      ring-buffer offset by the caller, "old" is the previous hwptr, "base"
      is the hwptr base position, "period" and "buf" are period- and
      buffer-size of the target PCM substream.
      (Note that the hwptr position displayed here isn't the ring-buffer
       offset.  It increments up to the PCM position boundary.)
      
      The XRUN event appears similarly, but without "pos" field.
      The hwptr error events appear with the PCM identifier and its reason
      string, such as "Lost interrupt?".
      
      The XRUN and hwptr error reports on kernel message are still left, can
      be turned on/off via xrun_debug proc like before.  But the bit 3, 4, 5
      and 6 bits of xrun_debug proc are dropped by this patch.  Also, along
      with the change, the message strings have been reformatted to be a bit
      more consistent.
      
      Last but not least, the hwptr reporting is enabled only when
      CONFIG_SND_PCM_XRUN_DEBUG is set.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      f5914908
    • Takashi Iwai's avatar
      ALSA: pcm: Correct PCM BUG error message · d507941b
      Takashi Iwai authored
      While converting to dev_*(), the message showing the invalid PCM
      position was wrongly tagged as if an XRUN although it's actually a
      BUG.  This patch corrects the message again.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      d507941b
    • Ondrej Zary's avatar
      ALSA: es18xx: Add GPO controls · 2603fe21
      Ondrej Zary authored
      Add GPO0 and GPO1 (General Purpose Outputs) controls to mixer.
      These can be used on some cards to control amplifier mute (seen in ES1868
      datasheet) or additional onboard chips such as QX2130 QXpander processor.
      
      These GPOs are present on ES1868, ES1869, ES1887 and ES1888 chips.
      
      Tested on ES1868 with QX2130.
      Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2603fe21
  3. 03 Nov, 2014 3 commits
  4. 31 Oct, 2014 3 commits
  5. 30 Oct, 2014 10 commits
  6. 29 Oct, 2014 6 commits
  7. 28 Oct, 2014 7 commits
  8. 27 Oct, 2014 3 commits