1. 21 11月, 2014 4 次提交
    • T
      ALSA: usb-audio: Add audigy2nx resume support · 9cf3689b
      Takashi Iwai 提交于
      Rewrite the code to handle LEDs on audigy2nx and co for supporting the
      proper resume.  A new internal helper function
      add_single_ctl_with_resume() is introduced to manage the
      usb_mixer_elem_list more easily.
      
      Also while we're at it, move audigy2nx_leds[] in usb_mixer_interface
      struct into the private_value of each kctl, too.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9cf3689b
    • T
      ALSA: usb-audio: Allow quirks to handle own resume and proc dump · 3360b84b
      Takashi Iwai 提交于
      So far, we blindly assumed that the all usb-audio mixer elements
      follow the standard and apply the standard resume method for the
      registered elements in the id_elems[] list.  However, some quirks
      really need the own resume and it's incomplete for now.
      
      This patch enhances the resume handling in two folds:
      - split some fields in struct usb_mixer_elem_info into a smaller
        header struct (usb_mixer_elem_list) for keeping the minimal
        information in the linked-list; the usb_mixer_elem_info embeds this
        header struct instead
      - add resume and dump callbacks to usb_mixer_elem_list struct to allow
        quirks providing the own methods
      
      For the standard mixer elements, these new callbacks are set to the
      standard ones as default, thus there is no functional change by this
      patch yet.
      
      The dump and resume callbacks are typedef'ed for ease of later patches
      using arrays of such function pointers.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3360b84b
    • T
      ALSA: usb-audio: Refactor ignore_ctl_error checks · 5aeee342
      Takashi Iwai 提交于
      Introduce an internal helper macro for avoiding many open codes.
      
      The only slight behavior change is in a couple of get ballcks where
      the value is reset at error no matter whether ignore_ctl_error is set
      or not.  Actually this is even safer than before.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5aeee342
    • T
      ALSA: usb-audio: Use snd_usb_ctl_msg() for Native Instruments quirk · 01cb156e
      Takashi Iwai 提交于
      snd_nativeinstruments_control_get() uses a stack as a buffer for
      usb_control_msg(), but it's basically not allowed.  Replace the call
      with a safer helper, snd_usb_ctl_msg(), instead.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      01cb156e
  2. 20 11月, 2014 1 次提交
  3. 19 11月, 2014 1 次提交
  4. 18 11月, 2014 2 次提交
  5. 17 11月, 2014 7 次提交
  6. 16 11月, 2014 1 次提交
    • J
      ALSA: usb-audio: Add ctrl message delay quirk for Marantz/Denon devices · 6e84a8d7
      Jurgen Kramer 提交于
      This patch adds a USB control message delay quirk for a few specific Marantz/Denon
      devices. Without the delay the DACs will not work properly and produces the
      following type of messages:
      
      Nov 15 10:09:21 orwell kernel: [   91.342880] usb 3-13: clock source 41 is not valid, cannot use
      Nov 15 10:09:21 orwell kernel: [   91.343775] usb 3-13: clock source 41 is not valid, cannot use
      
      There are likely other Marantz/Denon devices using the same USB module which exhibit the
      same problems. But as this cannot be verified I limited the patch to the devices
      I could test.
      
      The following two devices are covered by this path:
      - Marantz SA-14S1
      - Marantz HD-DAC1
      Signed-off-by: NJurgen Kramer <gtmkramer@xs4all.nl>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      6e84a8d7
  7. 14 11月, 2014 5 次提交
  8. 13 11月, 2014 5 次提交
  9. 12 11月, 2014 3 次提交
    • T
      ASoC: cs42l51: re-hook of_match_table pointer · 2cb1e025
      Thomas Petazzoni 提交于
      In commit a1253ef6 ("ASoC: cs42l51: split i2c from codec driver"),
      the I2C part of the CS42L51 was moved to a separate file, but the
      definition of the of_device_id array was left in the driver file
      itself, no longer connected to the platform_driver structure using the
      .of_match_table pointer.
      
      This commit exports the of_device_id array in cs42l51, and uses it as
      .of_match_able in cs42l51-i2c.c. This solution was suggested by Brian
      Austin.
      
      Fixes: a1253ef6 ("ASoC: cs42l51: split i2c from codec driver")
      Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Acked-by: NBrian Austin <brian.austin@cirrus.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Cc: <stable@vger.kernel.org>
      2cb1e025
    • K
      ALSA: hda/realtek - Change EAPD to verb control · 394c97f8
      Kailang Yang 提交于
      This will fix no sound in Linux system after reboot from windows.
      
      Change log:
      - alc662_fill_coef() is replaced with alc_fill_eapd_coef_idx()
        and move into alc_auto_init_amp().
      - For ALC262, ALC267, ALC268, ALC269, ALC233, ALC255, ALC280, ALC282,
        ALC283, ALC284, ALC285, ALC286, ALC288, ALC290, ALC292, ALC293, ALC294,
        ALC668, ALC888VC, ALC888VD, ALC891, ALC892, ALC898 and ALC1150, add update
        COEF control for EAPD setting.
      - Remove alc269_fill_coef() for update EAPD control line.
      
      ADDITIONAL NOTE:
      Many Realtek cdoecs have a COEF bit to switch the master amp control
      between COEF and EAPD.  Windows drivers seem using COEF while we use
      EAPD, which is more standard.  As a result, some system suffer from
      the silent output when booting after Windows.  This patch sets the
      COEF bits on the relevant codecs properly to switch to EAPD control.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=87771Signed-off-by: NKailang Yang <kailang@realtek.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      394c97f8
    • T
      ALSA: usb-audio: Fix memory leak in FTU quirk · 1a290581
      Takashi Iwai 提交于
      M-audio FastTrack Ultra quirk doesn't release the kzalloc'ed memory.
      This patch adds the private_free callback to release it properly.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      1a290581
  10. 11 11月, 2014 6 次提交
  11. 10 11月, 2014 4 次提交
  12. 09 11月, 2014 1 次提交