Skip to content
  1. Jan 08, 2010
  2. Dec 28, 2009
  3. Dec 27, 2009
  4. Dec 26, 2009
  5. Dec 25, 2009
    • Wu Fengguang's avatar
      ALSA: hda - HDMI sticky stream tag support · ef18bede
      Wu Fengguang authored
      
      
      When we run the following commands in turn (with
      CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0),
      
      	speaker-test -Dhw:0,3 -c2 -twav  # HDMI
      	speaker-test -Dhw:0,0 -c2 -twav  # Analog
      
      The second command will produce sound in the analog lineout _as well as_
      HDMI sink. The root cause is, device 0 "reuses" the same stream tag that
      was used by device 3, and the "intelhdmi - sticky stream id" patch leaves
      the HDMI codec in a functional state. So the HDMI codec happily accepts
      the audio samples which reuse its stream tag.
      
      The proposed solution is to remember the last device each azx_dev was
      assigned to, and prefer to
      1) reuse the azx_dev (and hence the stream tag) the HDMI codec last used
      2) or assign a never-used azx_dev for HDMI
      
      With this patch and the above two speaker-test commands,
      HDMI codec will use stream tag 8 and Analog codec will use 5.
      
      The stream tag used by HDMI codec won't be reused by others, as long
      as we don't run out of the 4 playback azx_dev's. The legacy Analog
      codec will continue to use stream tag 5 because its device id is 0
      (this is a bit tricky).
      
      Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      ef18bede
  6. Dec 23, 2009
  7. Dec 22, 2009
  8. Dec 21, 2009
  9. Dec 20, 2009
  10. Dec 19, 2009
  11. Dec 18, 2009
  12. Dec 17, 2009
  13. Dec 15, 2009
    • André Goddard Rosa's avatar
      tree-wide: convert open calls to remove spaces to skip_spaces() lib function · e7d2860b
      André Goddard Rosa authored
      Makes use of skip_spaces() defined in lib/string.c for removing leading
      spaces from strings all over the tree.
      
      It decreases lib.a code size by 47 bytes and reuses the function tree-wide:
         text    data     bss     dec     hex filename
        64688     584     592   65864   10148 (TOTALS-BEFORE)
        64641     584     592   65817   10119 (TOTALS-AFTER)
      
      Also, while at it, if we see (*str && isspace(*str)), we can be sure to
      remove the first condition (*str) as the second one (isspace(*str)) also
      evaluates to 0 whenever *str == 0, making it redundant. In other words,
      "a char equals zero is never a space".
      
      Julia Lawall tried the semantic patch (http://coccinelle.lip6.fr
      
      ) below,
      and found occurrences of this pattern on 3 more files:
          drivers/leds/led-class.c
          drivers/leds/ledtrig-timer.c
          drivers/video/output.c
      
      @@
      expression str;
      @@
      
      ( // ignore skip_spaces cases
      while (*str &&  isspace(*str)) { \(str++;\|++str;\) }
      |
      - *str &&
      isspace(*str)
      )
      
      Signed-off-by: default avatarAndré Goddard Rosa <andre.goddard@gmail.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: David Howells <dhowells@redhat.com>
      Cc: <linux-ext4@vger.kernel.org>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Patrick McHardy <kaber@trash.net>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e7d2860b
    • Jaroslav Kysela's avatar
      ALSA: hda - simplify usage of HDA_SUBDEV_AMP_FLAG · 5e26dfd0
      Jaroslav Kysela authored
      
      
      The HDA_SUBDEV_NID_FLAG is duplicate for amplifier control elements. Move
      get_amp_nid_() call to the snd_hda_ctl_add() function.
      
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      5e26dfd0
    • Jaroslav Kysela's avatar
      ALSA: hda - introduce HDA_SUBDEV_AMP_FLAG (ControlAmp in proc) · 9e3fd871
      Jaroslav Kysela authored
      
      
      The purpose of this changeset is to show information about amplifier
      setting in the codec proc file. Something like:
      
        Control: name="Front Playback Volume", index=0, device=0
          ControlAmp: chs=3, dir=Out, idx=0, ofs=0
        Control: name="Front Playback Switch", index=0, device=0
          ControlAmp: chs=3, dir=In, idx=2, ofs=0
      
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      9e3fd871
    • Jaroslav Kysela's avatar
      ALSA: hda - add more NID->Control mapping · 5b0cb1d8
      Jaroslav Kysela authored
      
      
      This set of changes add missing NID values to some static control
      elemenents. Also, it handles all "Capture Source" or "Input Source"
      controls.
      
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      5b0cb1d8
  14. Dec 14, 2009
  15. Dec 12, 2009
    • Oleksij Rempel's avatar
      ALSA: hda - Overwrite pin config on intel DG45ID board. · 52dc4386
      Oleksij Rempel authored
      
      
      The pin config provided by BIOS have some problems:
      0x0221401f: [Jack] HP Out at Ext Front  <-- other association and sequence
      0x02a19020: [Jack] Mic at Ext Front     <-- other association
      0x01113014: [Jack] Speaker at Ext Rear  <-- line out (not speaker)
      0x01114010: [Jack] Speaker at Ext Rear  <-- line out
      0x01a19030: [Jack] Mic at Ext Rear      <-- other association
      0x01111012: [Jack] Speaker at Ext Rear  <-- line out
      0x01116011: [Jack] Speaker at Ext Rear  <-- line out
      0x40f000f0: [N/A] Other at Ext N/A
      0x40f000f0: [N/A] Other at Ext N/A
      0x40f000f0: [N/A] Other at Ext N/A
      0x40f000f0: [N/A] Other at Ext N/A
      0x40f000f0: [N/A] Other at Ext N/A
      0x01451140: [Jack] SPDIF Out at Ext Rear
      0x40f000f0: [N/A] Other at Ext N/A
      
      just overwrite it.
      
      Signed-off-by: default avatarAlexey Fisher <bug-track@fisher-privat.net>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      52dc4386
  16. Dec 11, 2009
Loading