Skip to content
  1. Aug 18, 2023
    • Takashi Iwai's avatar
      ALSA: gus: Convert to generic PCM copy ops · e2964cd7
      Takashi Iwai authored
      
      
      This patch converts the GUS driver code to use the new unified PCM
      copy callback.  It's a straightforward conversion from *_user() to
      *_iter() variants.
      
      Note that copy_from/to_iter() returns the copied bytes, hence the
      error condition is adjusted accordingly.
      
      Link: https://lore.kernel.org/r/20230815190136.8987-6-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      e2964cd7
    • Takashi Iwai's avatar
      ALSA: dummy: Convert to generic PCM copy ops · 526a19b3
      Takashi Iwai authored
      
      
      This patch converts the dummy driver code to use the new unified PCM
      copy callback.  As dummy driver doesn't do anything in the callback,
      it's just a simple replacement.
      
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20230815190136.8987-5-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      526a19b3
    • Takashi Iwai's avatar
      ALSA: core: Add memory copy helpers between iov_iter and iomem · 561b4fa9
      Takashi Iwai authored
      
      
      Add two more helpers for copying memory between iov_iter and iomem,
      which will be used by the new PCM copy ops in a few drivers.
      The existing helpers became wrappers of those now.
      
      Note that copy_from/to_iter() returns the copied bytes, hence the
      error condition is adjusted accordingly.
      
      Link: https://lore.kernel.org/r/20230815190136.8987-4-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      561b4fa9
    • Takashi Iwai's avatar
      ALSA: pcm: Add copy ops with iov_iter · cf393bab
      Takashi Iwai authored
      
      
      iov_iter is a universal interface to copy the data chunk from/to
      user-space and kernel in a unified manner.  This API can fit for ALSA
      PCM copy ops, too; we had to split to copy_user and copy_kernel in the
      past, and those can be unified to a single ops with iov_iter.
      
      This patch adds a new PCM copy ops that passes iov_iter for copying
      both kernel and user-space in the same way.  This patch touches only
      the ALSA PCM core part, and the actual users will be replaced in the
      following patches.
      
      The expansion of iov_iter is done in the PCM core right before calling
      each copy callback.  It's a bit suboptimal, but I took this now as
      it's the most straightforward replacement.  The more conversion to
      iov_iter in the caller side is a TODO for future.
      
      As of now, the old copy_user and copy_kernel ops are still kept.
      Once after all users are converted, we'll drop the old copy_user and
      copy_kernel ops, too.
      
      Link: https://lore.kernel.org/r/20230815190136.8987-3-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      cf393bab
    • Takashi Iwai's avatar
      iov_iter: Export import_ubuf() · 70e969eb
      Takashi Iwai authored
      
      
      Export import_ubuf() to be used in sound subsystem for generic memory
      handling as Linus suggested.  It's used for constructing an iov_iter
      of a single segment user-space copy for PCM data.
      
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Link: https://lore.kernel.org/r/CAHk-=wh-mUL6mp4chAc6E_UjwpPLyCPRCJK+iB4ZMD2BqjwGHA@mail.gmail.com
      Link: https://lore.kernel.org/r/20230815190136.8987-2-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      70e969eb
    • Shenghao Ding's avatar
      ALSA: hda/tas2781: Add tas2781 HDA driver · 5be27f1e
      Shenghao Ding authored
      
      
      Create tas2781 side codec HDA driver for Lenovo Laptops. The quantity
      of the speakers has been define in ACPI. All of the tas2781s in the
      laptop will be aggregated as one audio speaker. The code supports
      realtek codec as the primary codec. Code offers several controls for
      digtial/analog gain setting during playback, and other for eq params
      setting in case of different audio profiles, such as music, voice,
      movie, etc.
      
      [ adjusted patch to be applied to the latest for-next branch -- tiwai ]
      
      Signed-off-by: default avatarShenghao Ding <shenghao-ding@ti.com>
      Link: https://lore.kernel.org/r/20230818085836.1442-2-shenghao-ding@ti.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      5be27f1e
    • Shenghao Ding's avatar
      ALSA: hda/tas2781: Add tas2781 HDA driver · 3babae91
      Shenghao Ding authored
      
      
      Integrate tas2781 configs for Lenovo Laptops. All of the tas2781s in the
      laptop will be aggregated as one audio device. The code support realtek
      as the primary codec. Rename "struct cs35l41_dev_name" to
      "struct scodec_dev_name" for all other side codecs instead of the certain
      one.
      
      Signed-off-by: default avatarShenghao Ding <shenghao-ding@ti.com>
      Link: https://lore.kernel.org/r/20230818085836.1442-1-shenghao-ding@ti.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      3babae91
    • Ruan Jinjie's avatar
      ALSA: Make SND_PCMTEST depend on DEBUG_FS · 828b871a
      Ruan Jinjie authored
      
      
      Since pcmtest is a test module that manipulates or gets
      notification via debugfs, without DEBUG_FS it can not work fine.
      So make SND_PCMTEST depend on DEBUG_FS.
      
      Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
      Acked-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
      Link: https://lore.kernel.org/r/20230817093740.1732738-1-ruanjinjie@huawei.com
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      828b871a
    • Takashi Iwai's avatar
      ALSA: aoa: Fix typos in PCM fix patch · a707885a
      Takashi Iwai authored
      There was typos in the previous fix for PCM to detach the struct
      device that caused build errors.  Corrected here.
      
      Fixes: bc41a722
      
       ("ALSA: pcm: Don't embed device")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202308181347.q3XPr3Lm-lkp@intel.com/
      Link: https://lore.kernel.org/r/20230818070913.23336-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a707885a
  2. Aug 17, 2023
  3. Aug 16, 2023
  4. Aug 10, 2023
  5. Aug 08, 2023
  6. Aug 04, 2023
  7. Aug 02, 2023
  8. Aug 01, 2023