1. 22 11月, 2008 1 次提交
  2. 21 11月, 2008 1 次提交
    • T
      ALSA: hda - Fix double free of jack instances · b94d3539
      Takashi Iwai 提交于
      The jack instances created in patch_sigmatel.c may be double-freed.
      The device management code checks the invalid element, and thus there
      is no real breakage, but it spews annoying warning messages.
      But, we can't simply remove the release calls of these jack instances
      because they have to be freed when the codec is re-configured.
      
      Now, a new flag, bus->shutdown is introduced to indicate that the bus
      is really being unloaded, i.e. the objects managed by the device
      manager will be automatically deleted.  We release these objects only
      when this flag isn't set.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b94d3539
  3. 10 11月, 2008 1 次提交
  4. 07 11月, 2008 3 次提交
  5. 06 11月, 2008 1 次提交
  6. 05 11月, 2008 2 次提交
  7. 04 11月, 2008 1 次提交
  8. 28 10月, 2008 1 次提交
  9. 27 10月, 2008 1 次提交
  10. 13 10月, 2008 8 次提交
  11. 10 10月, 2008 5 次提交
  12. 23 9月, 2008 2 次提交
  13. 09 9月, 2008 1 次提交
  14. 14 8月, 2008 1 次提交
  15. 13 8月, 2008 2 次提交
  16. 27 5月, 2008 1 次提交
  17. 24 4月, 2008 7 次提交
    • F
      [ALSA] hda-codec - Fix unbalanced mutex · eaa9985b
      Frederik Deweerdt 提交于
      On Wed, Apr 02, 2008 at 08:19:29AM -0400, Miles Lane wrote:
      > [   48.765906] [ BUG: bad unlock balance detected! ]
      > [   48.765912] -------------------------------------
      > [   48.765918] pulseaudio/4277 is trying to release lock
      > (&codec->spdif_mutex) at:
      > [   48.765930] [<c03031b7>] mutex_unlock+0x8/0xa
      > [   48.765945] but there are no more locks to release!
      > [   48.765950]
      > [   48.765952] other info that might help us debug this:
      > [   48.765959] 2 locks held by pulseaudio/4277:
      > [   48.765965]  #0:  (&pcm->open_mutex){--..}, at: [<f89f134b>]
      > snd_pcm_open+0xc1/0x1ba [snd_pcm]
      > [   48.766003]  #1:  (&chip->open_mutex){--..}, at: [<f8b4f13d>]
      > azx_pcm_open+0x36/0x184 [snd_hda_intel]
      > [   48.766057]
      > [   48.766059] stack backtrace:
      > [   48.766066] Pid: 4277, comm: pulseaudio Not tainted 2.6.25-rc8-mm1 #12
      > [   48.766086]  [<c013afc6>] print_unlock_inbalance_bug+0xce/0xd8
      > [   48.766107]  [<c0109e1c>] ? save_stack_trace+0x1d/0x3b
      > [   48.766130]  [<c012f54e>] ? __kernel_text_address+0x1b/0x27
      > [   48.766146]  [<c0104533>] ? dump_trace+0xcd/0xd9
      > [   48.766160]  [<c0109d9e>] ? save_stack_address+0x0/0x2c
      > [   48.766176]  [<c013b80a>] ? find_usage_backwards+0xa4/0xc3
      > [   48.766193]  [<c013cfb5>] lock_release_non_nested+0x84/0x120
      > [   48.766209]  [<c03031b7>] ? mutex_unlock+0x8/0xa
      > [   48.766222]  [<c013d1bb>] lock_release+0x16a/0x199
      > [   48.766238]  [<c0303137>] __mutex_unlock_slowpath+0xa9/0x121
      > [   48.766252]  [<c03031b7>] mutex_unlock+0x8/0xa
      > [   48.766263]  [<f8b4ffd8>] snd_hda_multi_out_analog_open+0xd3/0xef
      > [snd_hda_intel]
      
      The following patch should fix it.
      
      Cc: "Miles Lane" <miles.lane@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      eaa9985b
    • T
      [ALSA] hda-codec - keep the format verb at closing PCM streams · 888afa15
      Takashi Iwai 提交于
      Keep the format verb at closing PCM streams.
      Introduced snd_hda_codec_cleanup_stream() for the parcicular purpose.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      888afa15
    • H
      [ALSA] sound: hda: missing includes of hda_patch.h · 3c9a3203
      Harvey Harrison 提交于
      Move the array declaration to hda_codec.c where it is used and add includes
      where the individual presets are declared.
      
      Fixes the following sparse warnings:
      sound/pci/hda/patch_realtek.c:13744:25: warning: symbol 'snd_hda_preset_realtek' was not declared. Should it be static?
      sound/pci/hda/patch_cmedia.c:729:25: warning: symbol 'snd_hda_preset_cmedia' was not declared. Should it be static?
      sound/pci/hda/patch_analog.c:3656:25: warning: symbol 'snd_hda_preset_analog' was not declared. Should it be static?
      sound/pci/hda/patch_sigmatel.c:3995:25: warning: symbol 'snd_hda_preset_sigmatel' was not declared. Should it be static?
      sound/pci/hda/patch_si3054.c:286:25: warning: symbol 'snd_hda_preset_si3054' was not declared. Should it be static?
      sound/pci/hda/patch_atihdmi.c:156:25: warning: symbol 'snd_hda_preset_atihdmi' was not declared. Should it be static?
      sound/pci/hda/patch_conexant.c:1721:25: warning: symbol 'snd_hda_preset_conexant' was not declared. Should it be static?
      sound/pci/hda/patch_via.c:1962:25: warning: symbol 'snd_hda_preset_via' was not declared. Should it be static?
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3c9a3203
    • T
      [ALSA] hda-codec - Add more names to vendor list · c8cd1281
      Takashi Iwai 提交于
      Added more known names to the vendor id list.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c8cd1281
    • T
      [ALSA] hda-codec - Add "IEC958 Default PCM" switch · 9a08160b
      Takashi Iwai 提交于
      Added a new mixer switch to enable/disable the sharing of the default
      PCM stream with analog and SPDIF outputs.  When "IEC958 Default PCM"
      switch is on, the PCM stream is routed both to analog and SPDIF outputs.
      This is the behavior in the earlier version.
      
      Turning this switch off has a merit for some codecs, though.  Some codec
      chips don't support 24bit formats for SPDIF but only for analog outputs.
      In this case, you can use 24bit format by disabling this switch.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9a08160b
    • T
      [ALSA] hda-codec - More fix-up for auto-configuration · 5832fcf8
      Takashi Iwai 提交于
      In some cases, the BIOS sets up only the HP pins with different assoc
      and sequence numbers, e.g. on FSC Esprimo with ALC262.
      
      This patch adds a fix-up for such a case.  When multiple HPs are defined
      and no line-outs is found, the configurator tries to re-assign some pins
      from HP list to line-out, judging from the sequence number.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5832fcf8
    • T
      [ALSA] hda-codec - Allow multiple SPDIF devices · 09f99701
      Takashi Iwai 提交于
      The current code doesn't allow multiple SPDIF devices, and causes
      errors when multiple SPDIF devices are found (e.g. SPDIF out and HDMI).
      This patch allows multiple SPDIF devices by incrementing the index
      automatically.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      09f99701
  18. 23 2月, 2008 1 次提交