1. 25 2月, 2014 9 次提交
    • T
      ALSA: hda - Create own device struct for each codec · 13aeaf68
      Takashi Iwai 提交于
      As the HD-audio is treated individually in each codec driver, it's
      more convenient to assign an own struct device to each codec object.
      Then we'll be able to use dev_err() more easily for each codec, for
      example.
      
      For achieving it, this patch just creates an object "hdaudioCxDy".
      It belongs to sound class instead of creating a new bus, just for
      simplicity, at this stage.  No pm ops is implemented in the device
      struct level but currently it's merely a container.  The PCM and hwdep
      devices are now children of this codec device.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      13aeaf68
    • T
      ALSA: hda - Manage each codec instance individually · 2565c899
      Takashi Iwai 提交于
      Now each snd_hda_codec instance is managed via the device chain, the
      registration and release are done by its callback instead of calling
      from bus.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2565c899
    • T
      ALSA: Clean up snd_device_*() codes · 72620d60
      Takashi Iwai 提交于
      A few code cleanups and optimizations.  In addition, drop
      snd_device_disconnect() that isn't used at all, and drop the return
      values from snd_device_free*().
      
      Another slight difference by this change is that now the device state
      will become always SNDRV_DEV_REGISTERED no matter whether dev_register
      ops is present or not.  It's for better consistency.  There should be
      no impact for the current tree, as the state isn't checked.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      72620d60
    • T
      ALSA: Use priority list for managing device list · 289ca025
      Takashi Iwai 提交于
      Basically, the device type specifies the priority of the device to be
      registered / freed, too.  However, the priority value isn't well
      utilized but only it's checked as a group.  This results in
      inconsistent register and free order (where each of them should be in
      reversed direction).
      
      This patch simplifies the device list management code by simply
      inserting a list entry at creation time in an incremental order for
      the priority value.  Since we can just follow the link for register,
      disconnect and free calls, we don't have to specify the group; so the
      whole enum definitions are also simplified as well.
      
      The visible change to outside is that the priorities of some object
      types are revisited.  For example, now the SNDRV_DEV_LOWLEVEL object
      is registered before others (control, PCM, etc) and, in return,
      released after others.  Similarly, SNDRV_DEV_CODEC is in a lower
      priority than SNDRV_DEV_BUS for ensuring the dependency.
      
      Also, the unused SNDRV_DEV_TOPLEVEL, SNDRV_DEV_LOWLEVEL_PRE and
      SNDRV_DEV_LOWLEVEL_NORMAL are removed as a cleanup.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      289ca025
    • T
      ALSA: hwdep: Allow to assign the given parent · 71e2e1c1
      Takashi Iwai 提交于
      Just like PCM, allow hwdep to be assigned to a different parent device
      than the card.  It'll be used for the HD-audio codec device in the
      later patches.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      71e2e1c1
    • T
      ALSA: hwdep: Take private_data as drvdata for sysfs · f806bdb2
      Takashi Iwai 提交于
      For referring to a different object from sysfs ops, take hwdep
      private_data as stored via dev_set_drvdata() at creating the device
      object.  In that way, the same sysfs ops can be used by different
      device types.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f806bdb2
    • T
      ALSA: Create sysfs attribute files via groups · caa751ba
      Takashi Iwai 提交于
      Instead of calling each time device_create_file(), create the groups
      of sysfs attribute files at once in a normal way.  Add a new helper
      function, snd_get_device(), to return the associated device object,
      so that we can handle the sysfs addition locally.
      
      Since the sysfs file addition is done differently now,
      snd_add_device_sysfs_file() helper function is removed.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      caa751ba
    • T
      ALSA: hda - Avoid codec D3 for keeping mute LED up on Lenovo Yxx0 · bf68665d
      Takashi Iwai 提交于
      The GPIO line used for the mute LED control on Lenovo Yxx0 laptops is
      cleared unexpectedly when the codec goes to D3, typically by
      power-saving.  For avoiding it, add a power filter in the fixup.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16373Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      bf68665d
    • T
      ALSA: hda - Add a fixup for HP Folio 13 mute LED · 37c367ec
      Takashi Iwai 提交于
      HP Folio 13 may have a broken BIOS that doesn't set up the mute LED
      GPIO properly, and the driver guesses it wrongly, too.  Add a new
      fixup entry for setting the GPIO pin statically for this laptop.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70991
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      37c367ec
  2. 21 2月, 2014 1 次提交
  3. 20 2月, 2014 1 次提交
  4. 19 2月, 2014 4 次提交
  5. 18 2月, 2014 1 次提交
  6. 17 2月, 2014 2 次提交
  7. 16 2月, 2014 2 次提交
  8. 15 2月, 2014 3 次提交
  9. 14 2月, 2014 17 次提交