From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
General PulseAudio Discussion
<pulseaudio-discuss@lists.freedesktop.org>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Cc: Takashi Iwai <tiwai@suse.de>, Mark Brown <broonie@kernel.org>,
Linux Upstreaming Team <linux@endlessm.com>,
"han.lu" <han.lu@linux.intel.com>
Subject: Re: [alsa-devel] ASoC and pulseaudio
Date: Mon, 14 Mar 2016 10:23:18 -0500 [thread overview]
Message-ID: <56E6D766.2010904@linux.intel.com> (raw)
In-Reply-To: <1457943567.3888.18.camel@loki>
[snip]
>>> UCM also does not currently support #include. The intention is to provide a
>>> method to define mixer settings on a codec per codec basis and the these
>>> could be #included into a machine UCM file. The machine UCM file would
>>> also define settings for any quirks and would #include any codec UCM files
>>> that were needed. PA would load the machine UCM file (based on
>>> improvements to the driver naming above) intead of the generic UCM file
>>> that is loaded atm.
>>>
>>> Liam
>>>
>>
>> We can fix this from driver level and user space level:
>> (1) to reporting more information from driver.
>> ALSA sound cards have 3 names. longname, shortname and drivername. e.g.
>> from soc-core.c :-
>>
>> snprintf(card->snd_card->shortname, sizeof(card->snd_card->shortname),
>> "%s", card->name);
>> snprintf(card->snd_card->longname, sizeof(card->snd_card->longname),
>> "%s", card->long_name ? card->long_name : card->name);
>> snprintf(card->snd_card->driver, sizeof(card->snd_card->driver),
>> "%s", card->driver_name ? card->driver_name : card->name);
>>
>> We can additionally set the long_name and driver_name in ASoC if they were not set.
>>
>> The naming scheme could be :-
>>
>> a) shortname is current machine driver name i.e. "byt-rt5640"
>> b) longname is DMI boardname + 1 i.e. "Minnowboard Max: byt-rt5640"
>> c) driver name is platform driver name i.e. "baytrail-pcm-audio"
>>
>> (2) to enable UCM to support "include" parsing, so each codec will have its own UCM file to define all the use cases for the codec only, and the codec UCM file can be included and the codec use cases can be referenced by different machine driver UCM files.
I don't think a single codec UCM file would work since the register
settings would conflict. You will have to create different UCM snippets
for specific codec configurations that are included by machine drivers,
e.g. one for dmics, one for amics, one for stereo speakers, etc.
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
next prev parent reply other threads:[~2016-03-14 15:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAL9uMOHRjcCJomr6zzR0ySh384AVj1FRvASZSp3KsPqfeS8Lzw@mail.gmail.com>
[not found] ` <56C8AEFD.4060808@linux.intel.com>
[not found] ` <1456225994.6424.35.camel@loki>
[not found] ` <B51200AC81AB024499A3C2C9A1BB90A83D3AABF9@SHSMSX101.ccr.corp.intel.com>
2016-03-14 8:19 ` ASoC and pulseaudio Liam Girdwood
2016-03-14 15:23 ` Pierre-Louis Bossart [this message]
2016-03-14 16:06 ` Mark Brown
2016-03-15 6:01 ` Liam Girdwood
2016-03-15 8:45 ` Mark Brown
2016-03-15 8:55 ` Takashi Iwai
2016-03-15 9:48 ` Liam Girdwood
2016-03-15 9:56 ` Takashi Iwai
2016-03-15 10:58 ` Liam Girdwood
2016-03-16 14:57 ` [pulseaudio-discuss] " Vinod Koul
2016-03-16 15:09 ` [alsa-devel] " Mark Brown
2016-03-16 15:17 ` Takashi Iwai
2016-03-16 15:53 ` [pulseaudio-discuss] " Vinod Koul
2016-03-16 17:59 ` [alsa-devel] " Liam Girdwood
2016-03-17 11:23 ` [pulseaudio-discuss] " Lu, Han
2016-03-17 11:28 ` [alsa-devel] " Lu, Han
2016-03-17 16:29 ` Vinod Koul
2016-03-16 17:58 ` Liam Girdwood
2016-03-16 17:57 ` Liam Girdwood
2016-03-15 10:00 ` Mark Brown
2016-03-15 10:48 ` [alsa-devel] " Liam Girdwood
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=56E6D766.2010904@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=han.lu@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux@endlessm.com \
--cc=pulseaudio-discuss@lists.freedesktop.org \
--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).