* [PATCH] Add default config for tegra-alc5632 (as found on paz00)
@ 2012-02-06 20:51 Paul Fertser
2012-02-07 5:52 ` Stephen Warren
2012-02-07 11:45 ` Mark Brown
0 siblings, 2 replies; 9+ messages in thread
From: Paul Fertser @ 2012-02-06 20:51 UTC (permalink / raw)
To: patch; +Cc: Paul Fertser, alsa-devel, Oliver Grawert
This makes paz00 (aka Toshiba ac100, a popular arm-based netbook) use
dmix/dsnoop by default since it doesn't support hw mixing.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
---
Hi,
I haven't seen any other ASoC configs here so probably i'm missing
something obvious. My reasoning is that when a person uses a regular
notebook with HDA he gets DMix by default so it should be the case for this
less common netbook too.
Rate is set to 44100 because it's unlikely a person will listen to Hi-Fi
music and hence it avoids resampling for the most common usecase. Feel free
to drop if that's inappropriate, the device works fine with 48000 too.
src/conf/cards/Makefile.am | 1 +
src/conf/cards/tegra-alc5632.conf | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 src/conf/cards/tegra-alc5632.conf
diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am
index b7190e7..efed590 100644
--- a/src/conf/cards/Makefile.am
+++ b/src/conf/cards/Makefile.am
@@ -44,6 +44,7 @@ cfg_files = aliases.conf \
RME9652.conf \
SI7018.conf \
SB-XFi.conf \
+ tegra-alc5632.conf \
TRID4DWAVENX.conf \
USB-Audio.conf \
YMF744.conf \
diff --git a/src/conf/cards/tegra-alc5632.conf b/src/conf/cards/tegra-alc5632.conf
new file mode 100644
index 0000000..371fe2a
--- /dev/null
+++ b/src/conf/cards/tegra-alc5632.conf
@@ -0,0 +1,23 @@
+# default with dmix/dsnoop
+tegra-alc5632.pcm.default {
+ @args [ CARD ]
+ @args.CARD {
+ type string
+ }
+ type asym
+ playback.pcm {
+ type plug
+ slave.pcm {
+ @func concat
+ strings [ "dmix:CARD=" $CARD ",RATE=44100" ]
+ }
+ }
+ capture.pcm {
+ type plug
+ slave.pcm {
+ @func concat
+ strings [ "dsnoop:CARD=" $CARD ",RATE=44100" ]
+ }
+ }
+}
+
--
1.7.3.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-06 20:51 [PATCH] Add default config for tegra-alc5632 (as found on paz00) Paul Fertser
@ 2012-02-07 5:52 ` Stephen Warren
2012-02-07 6:57 ` Leon Romanovsky
2012-02-07 11:45 ` Mark Brown
1 sibling, 1 reply; 9+ messages in thread
From: Stephen Warren @ 2012-02-07 5:52 UTC (permalink / raw)
To: Paul Fertser
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org,
Oliver Grawert
On 02/06/2012 12:51 PM, Paul Fertser wrote:
> This makes paz00 (aka Toshiba ac100, a popular arm-based netbook) use
> dmix/dsnoop by default since it doesn't support hw mixing.
This patch appears to match on card name being "tegra-alc5632", but the
device tree code that just got checked in will name the card "Compal
PAZ00" I believe. (and I believe this driver only supports DT not board
files) Am I missing something?
--
nvpublic
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-07 5:52 ` Stephen Warren
@ 2012-02-07 6:57 ` Leon Romanovsky
2012-02-07 11:26 ` Mark Brown
2012-02-07 12:54 ` Paul Fertser
0 siblings, 2 replies; 9+ messages in thread
From: Leon Romanovsky @ 2012-02-07 6:57 UTC (permalink / raw)
To: Stephen Warren
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org, Paul Fertser,
Mark Brown, Marc Dietrich, Oliver Grawert, Andrey Danin
On Tue, Feb 7, 2012 at 07:52, Stephen Warren <swarren@nvidia.com> wrote:
> On 02/06/2012 12:51 PM, Paul Fertser wrote:
>> This makes paz00 (aka Toshiba ac100, a popular arm-based netbook) use
>> dmix/dsnoop by default since it doesn't support hw mixing.
>
> This patch appears to match on card name being "tegra-alc5632", but the
> device tree code that just got checked in will name the card "Compal
> PAZ00" I believe. (and I believe this driver only supports DT not board
> files) Am I missing something?
Stephen, Mark,
I want to raise our old question: "How do we need to call this card ?
Do we need to call it tegra-alc5632, as was in pre-DT era ? Or do we
need to call it "Compal PAZ00" as we introduced in DT patches ?".
The both names are applicable because "Compal PAZ00" is the name of
notebook (hardware board) and tegra-alc5632 is the name of chips were
used.
>
> --
> nvpublic
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
--
Leon Romanovsky | Independent Linux Consultant
www.leon.nu | leon@leon.nu
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-07 6:57 ` Leon Romanovsky
@ 2012-02-07 11:26 ` Mark Brown
2012-02-07 12:54 ` Paul Fertser
1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2012-02-07 11:26 UTC (permalink / raw)
To: Leon Romanovsky
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org,
Stephen Warren, Paul Fertser, Marc Dietrich, Oliver Grawert,
Andrey Danin
[-- Attachment #1.1: Type: text/plain, Size: 450 bytes --]
On Tue, Feb 07, 2012 at 08:57:59AM +0200, Leon Romanovsky wrote:
> I want to raise our old question: "How do we need to call this card ?
> Do we need to call it tegra-alc5632, as was in pre-DT era ? Or do we
> need to call it "Compal PAZ00" as we introduced in DT patches ?".
> The both names are applicable because "Compal PAZ00" is the name of
> notebook (hardware board) and tegra-alc5632 is the name of chips were
> used.
I really don't care.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-06 20:51 [PATCH] Add default config for tegra-alc5632 (as found on paz00) Paul Fertser
2012-02-07 5:52 ` Stephen Warren
@ 2012-02-07 11:45 ` Mark Brown
1 sibling, 0 replies; 9+ messages in thread
From: Mark Brown @ 2012-02-07 11:45 UTC (permalink / raw)
To: Paul Fertser; +Cc: alsa-devel, patch, Oliver Grawert
On Tue, Feb 07, 2012 at 12:51:38AM +0400, Paul Fertser wrote:
> I haven't seen any other ASoC configs here so probably i'm missing
> something obvious. My reasoning is that when a person uses a regular
> notebook with HDA he gets DMix by default so it should be the case for this
> less common netbook too.
It seems depressing that we'd need to go through and add this for every
single card...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-07 6:57 ` Leon Romanovsky
2012-02-07 11:26 ` Mark Brown
@ 2012-02-07 12:54 ` Paul Fertser
2012-02-07 13:13 ` Mark Brown
1 sibling, 1 reply; 9+ messages in thread
From: Paul Fertser @ 2012-02-07 12:54 UTC (permalink / raw)
To: Leon Romanovsky
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org,
Stephen Warren, Mark Brown, Marc Dietrich, Oliver Grawert,
Andrey Danin
On Tue, Feb 07, 2012 at 08:57:59AM +0200, Leon Romanovsky wrote:
> On Tue, Feb 7, 2012 at 07:52, Stephen Warren <swarren@nvidia.com> wrote:
> > On 02/06/2012 12:51 PM, Paul Fertser wrote:
> >> This makes paz00 (aka Toshiba ac100, a popular arm-based netbook) use
> >> dmix/dsnoop by default since it doesn't support hw mixing.
> >
> > This patch appears to match on card name being "tegra-alc5632", but the
> > device tree code that just got checked in will name the card "Compal
> > PAZ00" I believe. (and I believe this driver only supports DT not board
> > files) Am I missing something?
> Stephen, Mark,
> I want to raise our old question: "How do we need to call this card ?
> Do we need to call it tegra-alc5632, as was in pre-DT era ? Or do we
> need to call it "Compal PAZ00" as we introduced in DT patches ?".
>
> The both names are applicable because "Compal PAZ00" is the name of
> notebook (hardware board) and tegra-alc5632 is the name of chips were
> used.
Since alsa-lib config file describes how to best deal with the
combination of chips rather than a particular notebook name
(especially given same device can have different names from different
vendors and at the same time some vendors are ill-minded enough to
call different devices with the same name) it would seem more logical
to stick to the chips' names.
Mark, do you have some idea how to solve the issue at hand (having
dmix on this netbook by default) better? Is quantity of maximum
simultaneous playback/record PCM streams already queryable by the
userspace? Somehow it happened that adding per-device config file was
ok during all these years, is there a better way now?
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-07 12:54 ` Paul Fertser
@ 2012-02-07 13:13 ` Mark Brown
2012-02-24 8:43 ` Paul Fertser
0 siblings, 1 reply; 9+ messages in thread
From: Mark Brown @ 2012-02-07 13:13 UTC (permalink / raw)
To: Paul Fertser
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org,
Stephen Warren, Marc Dietrich, Oliver Grawert, Leon Romanovsky,
Andrey Danin
[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]
On Tue, Feb 07, 2012 at 04:54:04PM +0400, Paul Fertser wrote:
> Since alsa-lib config file describes how to best deal with the
> combination of chips rather than a particular notebook name
> (especially given same device can have different names from different
> vendors and at the same time some vendors are ill-minded enough to
> call different devices with the same name) it would seem more logical
> to stick to the chips' names.
That needn't follow - especially as you move into the higher end the
devices get much more flexible and system concerns have a major impact
on the configuration so the board in use becomes more and more
important.
> Mark, do you have some idea how to solve the issue at hand (having
> dmix on this netbook by default) better? Is quantity of maximum
> simultaneous playback/record PCM streams already queryable by the
> userspace? Somehow it happened that adding per-device config file was
> ok during all these years, is there a better way now?
For almost all devices there's one stream supported in each direction,
if we were assuming any default that'd be it.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-07 13:13 ` Mark Brown
@ 2012-02-24 8:43 ` Paul Fertser
2012-02-27 16:32 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: Paul Fertser @ 2012-02-24 8:43 UTC (permalink / raw)
To: Takashi Iwai
Cc: alsa-devel@alsa-project.org, patch@alsa-project.org,
Stephen Warren, Mark Brown, Marc Dietrich, Oliver Grawert,
Leon Romanovsky, Andrey Danin
Hi,
On Tue, Feb 07, 2012 at 01:13:39PM +0000, Mark Brown wrote:
> On Tue, Feb 07, 2012 at 04:54:04PM +0400, Paul Fertser wrote:
> > Mark, do you have some idea how to solve the issue at hand (having
> > dmix on this netbook by default) better? Is quantity of maximum
> > simultaneous playback/record PCM streams already queryable by the
> > userspace? Somehow it happened that adding per-device config file was
> > ok during all these years, is there a better way now?
>
> For almost all devices there's one stream supported in each direction,
> if we were assuming any default that'd be it.
Takashi, can you please provide some feedback on this thread?
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
2012-02-24 8:43 ` Paul Fertser
@ 2012-02-27 16:32 ` Takashi Iwai
0 siblings, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2012-02-27 16:32 UTC (permalink / raw)
To: Paul Fertser
Cc: alsa-devel@alsa-project.org, Stephen Warren, Mark Brown,
Marc Dietrich, Oliver Grawert, Leon Romanovsky, Andrey Danin
At Fri, 24 Feb 2012 12:43:47 +0400,
Paul Fertser wrote:
>
> Hi,
>
> On Tue, Feb 07, 2012 at 01:13:39PM +0000, Mark Brown wrote:
> > On Tue, Feb 07, 2012 at 04:54:04PM +0400, Paul Fertser wrote:
> > > Mark, do you have some idea how to solve the issue at hand (having
> > > dmix on this netbook by default) better? Is quantity of maximum
> > > simultaneous playback/record PCM streams already queryable by the
> > > userspace? Somehow it happened that adding per-device config file was
> > > ok during all these years, is there a better way now?
> >
> > For almost all devices there's one stream supported in each direction,
> > if we were assuming any default that'd be it.
>
> Takashi, can you please provide some feedback on this thread?
The reason dmix is implemented in a white-list way in alsa-lib is that
dmix isn't always working well. The support was limited on some
architectures, and could be buggy when the buffer transfer isn't
standard.
So, unless the situation doesn't change drastically, I don't think
it's wise to change the policy for now. In your case, just apply
tegra-alc5632, and define an alias of Compal PAZ00. This would be
just a safer option.
Of course, if there are more hundreds of different drivers come up
soon now with different card->driver name strings, and all of them
must be set up with dmix, then we can reconsider.
thanks,
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-02-27 16:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-06 20:51 [PATCH] Add default config for tegra-alc5632 (as found on paz00) Paul Fertser
2012-02-07 5:52 ` Stephen Warren
2012-02-07 6:57 ` Leon Romanovsky
2012-02-07 11:26 ` Mark Brown
2012-02-07 12:54 ` Paul Fertser
2012-02-07 13:13 ` Mark Brown
2012-02-24 8:43 ` Paul Fertser
2012-02-27 16:32 ` Takashi Iwai
2012-02-07 11:45 ` Mark Brown
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).