alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: mengdong.lin@linux.intel.com
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com,
	Mengdong Lin <mengdong.lin@linux.intel.com>,
	mengdong.lin@intel.com
Subject: [PATCH v5 0/3] ucm: Automatically load the best config file based on the card long name
Date: Mon, 16 Jan 2017 18:42:19 +0800	[thread overview]
Message-ID: <cover.1484562657.git.mengdong.lin@linux.intel.com> (raw)

From: Mengdong Lin <mengdong.lin@linux.intel.com>

Intel DSP platform drivers are used by many different devices. For user
space to differentiate them, now ASoC provide API for machine drivers to
include the DMI info (vendor, product and board) in card long name. This
series will add UCM support for loading best device-specific configuration
based on the card long name.

Mengdong Lin (2):
  ucm: Load device-specific configuration file based on the card long
    name
  ucm: Add command 'get _file' to get the config file name of the opened
    card

History:
v2: Request the device-specific file name to match the card long name,
    no long use automatic key word matching and scoring to avoid error
    and uncertainty. And add command to check the name of actually loaded
    configuration file.

v3: Fix num in strncpy of the long name, which should be
    MAX_CARD_LONG_NAME - 1, not MAX_CARD_LONG_NAME (80).


v4: No code change. Just update on comments because the kernel v4 patches
    add DMI product version to the card long name, and use "-" as
    the separator between DMI fields.

v5: Revise the comments. Add patch to assure the input card name not to
    exceed the maximum card long name supported by kernel to avoid use
    strncpy and strncmp later. 

Mengdong Lin (3):
  ucm: Assure the user input card name not to exceed max size of card
    long name
  ucm: Load device-specific configuration file based on the card long
    name
  ucm: Add command 'get _file' to get the config file name of the opened
    card

 include/use-case.h  |   1 +
 src/ucm/main.c      |  14 +++++++
 src/ucm/parser.c    | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 src/ucm/ucm_local.h |   3 ++
 4 files changed, 119 insertions(+), 4 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-01-16 10:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-16 10:42 mengdong.lin [this message]
2017-01-16 10:44 ` [PATCH v5 1/3] ucm: Assure the user input card name not to exceed max size of card long name mengdong.lin
2017-01-16 10:44 ` [PATCH v5 2/3] ucm: Load device-specific configuration file based on the " mengdong.lin
2017-01-16 10:44 ` [PATCH v5 3/3] ucm: Add command 'get _file' to get the config file name of the opened card mengdong.lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1484562657.git.mengdong.lin@linux.intel.com \
    --to=mengdong.lin@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=mengdong.lin@intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).