1. 04 4月, 2013 1 次提交
  2. 03 4月, 2013 1 次提交
    • T
      ALSA: usb: Work around CM6631 sample rate change bug · 690a863f
      Torstein Hegge 提交于
      The C-Media CM6631 USB receiver doesn't respond to changes in sample rate
      while the interface is active. The same behavior is observed in other UAC2
      hardware like the VIA VT1731.
      
      Reset the interface after setting the sampling frequency on sample rate
      changes, to ensure that the sample rate set by snd_usb_init_sample_rate() is
      used. Otherwise, the device will try to use the sample rate of the previous
      stream, causing distorted sound on sample rate changes.
      
      The reset is performed for all UAC2 devices, as it should not affect a
      standards compliant device, but it is only necessary for C-Media CM6631,
      VIA VT1731 and possibly others.
      
      Failure to read sample rate from the device is not handled as an error in
      set_sample_rate_v2(), as (permanent or intermittent) failure to read sample
      rate isn't essential for a successful sample rate set.
      Signed-off-by: NTorstein Hegge <hegge@resisty.net>
      Acked-by: NClemens Ladisch <clemens@ladisch.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      690a863f
  3. 02 4月, 2013 5 次提交
  4. 22 3月, 2013 7 次提交
    • T
      ALSA: hda - VIA prefers side surrounds over HP · 4abdbd1c
      Takashi Iwai 提交于
      The recent fix for the independent HP reduced the availability of the
      side surround output, because there are only 4 DACs for 7.1 and a HP
      outputs.  Adjust the badness tables for VIA so that 7.1 outputs are
      activated for the cost of missing independent HP.
      
      Once when we implement the dynamic DAC switching to multiple outputs,
      this conflicts will be eased in future...
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4abdbd1c
    • T
      ALSA: hda - Lower the badness for independent HP penalty · bec8e680
      Takashi Iwai 提交于
      The lack of independent HP mode shouldn't be too bad, but currently
      its badness is set a bit too high.  Let's lower it.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      bec8e680
    • T
      ALSA: hda - Allow codec drivers to give own badness tables · 98bd1115
      Takashi Iwai 提交于
      The standard badness values don't seem to fit to all preferences.
      Some configuration prefer the side output over the headphone, some
      want the speaker over the surround, etc.
      
      This patch moves the badness table pointers into hda_gen_spec, so that
      the codec driver can override them.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      98bd1115
    • L
      ASoC: dma-sh7760: Fix compile error · 417a1178
      Lars-Peter Clausen 提交于
      The dma-sh7760 currently fails with the following compile error:
      	sound/soc/sh/dma-sh7760.c:346:2: error: unknown field 'pcm_ops' specified in initializer
      	sound/soc/sh/dma-sh7760.c:346:2: warning: initialization from incompatible pointer type
      	sound/soc/sh/dma-sh7760.c:347:2: error: unknown field 'pcm_new' specified in initializer
      	sound/soc/sh/dma-sh7760.c:347:2: warning: initialization makes integer from pointer without a cast
      	sound/soc/sh/dma-sh7760.c:348:2: error: unknown field 'pcm_free' specified in initializer
      	sound/soc/sh/dma-sh7760.c:348:2: warning: initialization from incompatible pointer type
      	sound/soc/sh/dma-sh7760.c: In function 'sh7760_soc_platform_probe':
      	sound/soc/sh/dma-sh7760.c:353:2: warning: passing argument 2 of 'snd_soc_register_platform' from incompatible pointer type
      	include/sound/soc.h:368:5: note: expected 'struct snd_soc_platform_driver *' but argument is of type 'struct snd_soc_platform *'
      
      This is due the misnaming of the snd_soc_platform_driver type name and 'ops'
      field. The issue was introduced in commit f0fba2ad("ASoC: multi-component - ASoC
      Multi-Component Support").
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: stable@vger.kernel.org
      417a1178
    • T
      ALSA: hda - Fix DAC assignment for independent HP · 55a63d4d
      Takashi Iwai 提交于
      The generic parser should evaluate the availability of the independent
      HP when specified.  Otherwise a DAC without the direct connection to
      the corresponding pin may be assigned for the HP, but the driver
      doesn't check it at all.  The problem was actually seen on some
      machines with VT1708s or equivalent codec, where DAC0 is assigned to
      HP although it can be connected only via aamix.
      
      This patch adds the badness evaluation for the independent HP to make
      it working properly.
      Reported-by: NLydia Wang <LydiaWang@viatech.com.cn>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      55a63d4d
    • D
      ALSA: hda - Enable "Headset Mic" name for some Dell Latitude devices · f390dad4
      David Henningsson 提交于
      Now that we have a "Headset Mic" name, let's use it for some devices
      we know for sure has a headset mic jack.
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f390dad4
    • D
      ALSA: hda - Introduce "Headset Mic" name · a385d97b
      David Henningsson 提交于
      Headset mic jacks, i e TRRS style jacks with Headphone Left,
      Headphone Right, Mic and GND signals, are becoming increasingly
      common and are now being shipped by several manufacturers.
      
      Unfortunately, the HDA specification does not give us any hint
      of whether a Mic pin belongs to such a jack or not, but it would
      still be helpful for the user to know (especially if there is one
      TRS Mic jack and one TRRS headset jack).
      
      This new fixup causes the first (non-dock, non-internal) mic to
      be a headset mic jack. The algorithm can be later refined if needed.
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a385d97b
  5. 21 3月, 2013 1 次提交
    • T
      ALSA: hda - Fix abuse of snd_hda_lock_devices() for DSP loader · eb49faa6
      Takashi Iwai 提交于
      The current DSP loader code abuses snd_hda_lock_devices() for ensuring
      the DSP loader not conflicting with the other normal operations.  But
      this trick obviously doesn't work for the PM resume since the streams
      are kept opened there where snd_hda_lock_devices() returns -EBUSY.
      That means we need another lock mechanism instead of abuse.
      
      This patch provides the new lock state to azx_dev.  Theoretically it's
      possible that the DSP loader conflicts with the stream that has been
      already assigned for another PCM.  If it's running, the DSP loader
      should simply fail.  If not -- it's the case for PM resume --, we
      should assign this stream temporarily to the DSP loader, and take it
      back to the PCM after finishing DSP loading.  If the PCM is operated
      during the DSP loading, it should get an error, too.
      Reported-and-tested-by: NDylan Reid <dgreid@chromium.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      eb49faa6
  6. 20 3月, 2013 7 次提交
  7. 18 3月, 2013 12 次提交
  8. 15 3月, 2013 6 次提交