From: Paul Fertser <fercerpav@gmail.com>
To: patch@alsa-project.org
Cc: Paul Fertser <fercerpav@gmail.com>,
alsa-devel@alsa-project.org, Oliver Grawert <ogra@ubuntu.com>
Subject: [PATCH] Add default config for tegra-alc5632 (as found on paz00)
Date: Tue, 7 Feb 2012 00:51:38 +0400 [thread overview]
Message-ID: <1328561498-19337-1-git-send-email-fercerpav@gmail.com> (raw)
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
next reply other threads:[~2012-02-06 20:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 20:51 Paul Fertser [this message]
2012-02-07 5:52 ` [PATCH] Add default config for tegra-alc5632 (as found on paz00) 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
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=1328561498-19337-1-git-send-email-fercerpav@gmail.com \
--to=fercerpav@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=ogra@ubuntu.com \
--cc=patch@alsa-project.org \
/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).