alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [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

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).