Skip to content

ASoC: Add core API to register and cleanup DMI names for card

[email protected] alsa-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 6 repliesIn review
  2. v62 patches 2 repliesSuperseded
  3. v52 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v42 patches2 repliesSuperseded
v32 patches2 repliesSuperseded
v21 patch2 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: core: add API for registering and cleaning up DMI card namesinclude/sound/soc.h sound/soc/soc-core.c+88 -02 replies
2/2ASoC: bytcr-rt5640: register DMI names for cardsound/soc/intel/boards/bytcr_rt5640.c+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH V7 0/2] ASoC: Add core API to register and cleanup DMI names for card

From: "Lu, Han" <[email protected]>

Share more product information, for user space utils such as PA and UCM to distinguish different products.
1. Add core APIs to register and cleanup DMI names for card.
2. Apply the APIs to bytcr-rt5640 driver.

changes on V7:
1. Remove inconsistent API description

changes on V6:
1. Use dynamic allocate and cleanup for card long name
2. Remove unneccessary arguments to simplify the API

changes on V5:
1. Use independent space to store card long_name, to avoid irrelavant info sharing from card component
2. Use letter ';' instead of ':' to separate strings in long name, in case name strings may also contain ':' and confuse user
3. Fix error that vendor name and firmware name were not optional

changes on V4:
1. Replace kmalloc() and snprintf() with ksaprintf() to simplify code

changes on V3:
1. Split the core API and the API call to two patches
2. Replace misused strcat() with snprintf()
3. Code and comment fix

Lu, Han (2):
ASoC: core: add API for registering and cleaning up DMI card names
ASoC: bytcr-rt5640: register DMI names for card

 include/sound/soc.h                   |  3 ++
 sound/soc/intel/boards/bytcr_rt5640.c | 18 ++++++++
 sound/soc/soc-core.c                  | 85 +++++++++++++++++++++++++++++++++++
 3 files changed, 106 insertions(+)
Signature · 1 line
2.5.0