1. 23 12月, 2010 1 次提交
  2. 21 12月, 2010 2 次提交
  3. 20 12月, 2010 1 次提交
  4. 17 12月, 2010 1 次提交
  5. 15 12月, 2010 2 次提交
  6. 09 12月, 2010 1 次提交
  7. 08 12月, 2010 3 次提交
    • A
      ALSA: hda - Reset sample sizes and max bitrates when reading ELD · 0bbaee3a
      Anssi Hannula 提交于
      When a new HDMI/DP device is plugged in, hdmi_update_short_audio_desc()
      is called for every SAD (Short Audio Descriptor) in the ELD data. For
      LPCM coding type SAD defines the supported sample sizes. For several
      other coding types (such as AC-3), a maximum bitrate is defined.
      
      The maximum bitrate and sample size fields are not always cleared.
      Therefore, if a device is unplugged and a different one is plugged in,
      and the coding types of some SAD positions differ between the devices,
      the old max_bitrate or sample_bits values will persist if the new SADs
      do not define those values.
      
      The leftover max_bitrate and sample_bits do not cause any issues other
      than wrongly showing up in eld#X.Y procfs file and kernel log.
      
      Fix that by always clearing sample_bits and max_bitrate when reading
      SADs.
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      0bbaee3a
    • A
      ALSA: hda - Always allow basic audio irrespective of ELD info · 3dc86429
      Anssi Hannula 提交于
      Commit bbbe3390 added functionality to restrict PCM parameters
      based on ELD info (derived from EDID data) of the audio sink.
      
      However, according to CEA-861-D no SAD is needed for basic audio
      (32/44.1/48kHz stereo 16-bit audio), which is instead indicated with a
      basic audio flag in the CEA EDID Extension.
      
      The flag is not present in ELD. However, as all audio capable sinks are
      required to support basic audio, we can assume it to be always
      available.
      
      Fix allowed audio formats with sinks that have SADs (Short Audio
      Descriptors) which do not completely overlap with the basic audio
      formats (there are no reports of affected devices so far) by always
      assuming that basic audio is supported.
      Reported-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Cc: stable@kernel.org
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3dc86429
    • A
      ALSA: hda - Do not wrongly restrict min_channels based on ELD · 4b0dbdb1
      Anssi Hannula 提交于
      Commit bbbe3390 added functionality to restrict PCM parameters
      based on ELD info (derived from EDID data) of the audio sink.
      
      However, it wrongly assumes that the bits 0-2 of the first byte of
      CEA Short Audio Descriptors mean a supported number of channels. In
      reality, they mean the maximum number of channels (as per CEA-861-D
      7.5.2). This means that the channel count can only be used to restrict
      max_channels, not min_channels.
      
      Restricting min_channels causes us to deny opening the device in stereo
      mode if the sink only has SADs that declare larger numbers of channels
      (like Primare SP32 AV Processor does).
      
      Fix that by not restricting min_channels based on ELD information.
      Signed-off-by: NAnssi Hannula <anssi.hannula@iki.fi>
      Reported-by: NJean-Yves Avenard <jyavenard@gmail.com>
      Tested-by: NJean-Yves Avenard <jyavenard@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4b0dbdb1
  8. 06 12月, 2010 1 次提交
  9. 04 12月, 2010 1 次提交
  10. 03 12月, 2010 2 次提交
  11. 02 12月, 2010 1 次提交
  12. 29 11月, 2010 1 次提交
  13. 27 11月, 2010 1 次提交
  14. 25 11月, 2010 1 次提交
  15. 24 11月, 2010 2 次提交
  16. 23 11月, 2010 4 次提交
  17. 22 11月, 2010 6 次提交
  18. 11 11月, 2010 3 次提交
    • J
      ALSA: sound/pci/ctxfi/ctpcm.c: Remove potential for use after free · fa2b30af
      Julia Lawall 提交于
      In each function, the value apcm is stored in the private_data field of
      runtime.  At the same time the function ct_atc_pcm_free_substream is stored
      in the private_free field of the same structure.  ct_atc_pcm_free_substream
      dereferences and ultimately frees the value in the private_data field.  But
      each function can exit in an error case with apcm having been freed, in
      which case a subsequent call to the private_free function would perform a
      dereference after free.  On the other hand, if the private_free field is
      not initialized, it is NULL, and not invoked (see snd_pcm_detach_substream
      in sound/core/pcm.c).  To avoid the introduction of a dangling pointer, the
      initializations of the private_data and private_free fields are moved to
      the end of the function, past any possible free of apcm.  This is safe
      because the previous calls to snd_pcm_hw_constraint_integer and
      snd_pcm_hw_constraint_minmax, which take runtime as an argument, do not
      refer to either of these fields.
      
      In each function, there is one error case where apcm needs to be freed, and
      a call to kfree is added.
      
      The sematic match that finds this problem is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression e,e1,e2,e3;
      identifier f,free1,free2;
      expression a;
      @@
      
      *e->f = a
      ... when != e->f = e1
          when any
      if (...) {
        ... when != free1(...,e,...)
            when != e->f = e2
      * kfree(a)
        ... when != free2(...,e,...)
            when != e->f = e3
      }
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      fa2b30af
    • F
      ALSA: sound/mixart: avoid redefining {readl,write}_{le,be} accessors · e9161512
      Florian Fainelli 提交于
      If the platform already provides a definition for these accessors
      do not redefine them. The warning was caught on MIPS.
      Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e9161512
    • D
      ALSA: HDA: Enable digital mic on IDT 92HD87B · 89feca1a
      David Henningsson 提交于
      BugLink: http://launchpad.net/bugs/673075
      
      According to the datasheet of 92HD87B, there is a digital mic
      at nid 0x11, so enable it in order to be able to use the mic.
      
      Cc: stable@kernel.org
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      89feca1a
  19. 03 11月, 2010 1 次提交
  20. 02 11月, 2010 1 次提交
  21. 01 11月, 2010 2 次提交
  22. 26 10月, 2010 1 次提交
  23. 25 10月, 2010 1 次提交