- Backport upstream fixes: 0001-local.h-use-__kernel_off_t-from-linux-types.h.patch 0002-conf-cards-add-Audio-Advantage-Micro-II.patch 0003-pcm-Fix-a-wrong-value-shown-in-the-error-message-in-.patch 0004-UCM-Document-some-standard-values.patch 0005-hdspm.h-Update-LTC-ioctl-to-use-struct-hdspm_ltc.patch 0006-Update-iatomic.h-functions-definitions-for-mips.patch OBS-URL: https://build.opensuse.org/request/show/197613 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=139
65 lines
1.7 KiB
Diff
65 lines
1.7 KiB
Diff
From 994ab14b401b2873c5f927215bbb86fe6f6335fc Mon Sep 17 00:00:00 2001
|
|
From: Przemek Rudy <prudy1@o2.pl>
|
|
Date: Tue, 30 Jul 2013 22:31:44 +0200
|
|
Subject: [PATCH 2/6] conf/cards: add Audio Advantage Micro II
|
|
|
|
With related kernel chnages add extended suport for:
|
|
- AES bits controls (via device suffix AESn= or tools like iecset)
|
|
- SPDIF switch control, turning on/off the optical transmitter (via alsamixer tool)
|
|
|
|
Signed-off-by: Przemek Rudy <prudy1@o2.pl>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/conf/cards/USB-Audio.conf | 35 +++++++++++++++++++++++++++++++++++
|
|
1 file changed, 35 insertions(+)
|
|
|
|
diff --git a/src/conf/cards/USB-Audio.conf b/src/conf/cards/USB-Audio.conf
|
|
index 0d93175..8a6d9ca 100644
|
|
--- a/src/conf/cards/USB-Audio.conf
|
|
+++ b/src/conf/cards/USB-Audio.conf
|
|
@@ -101,6 +101,41 @@ USB-Audio."Audiophile USB (tm)".pcm.iec958 {
|
|
}
|
|
}
|
|
|
|
+# For this card we can (and must to get IEC61937) set AES bits
|
|
+USB-Audio."MicroII".pcm.iec958 "cards.USB-Audio.Audio Advantage MicroII.pcm.iec958"
|
|
+USB-Audio."Audio Advantage MicroII".pcm.iec958 {
|
|
+ @args [ CARD AES0 AES1 AES2 AES3 ]
|
|
+ @args.CARD { type string }
|
|
+ @args.AES0 { type integer }
|
|
+ @args.AES1 { type integer }
|
|
+ @args.AES2 { type integer }
|
|
+ @args.AES3 { type integer }
|
|
+
|
|
+ type hooks
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ }
|
|
+
|
|
+ hooks.0 {
|
|
+ type ctl_elems
|
|
+ hook_args [
|
|
+ {
|
|
+ interface PCM
|
|
+ name "IEC958 Playback Default"
|
|
+ preserve true
|
|
+ optional true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ {
|
|
+ name "IEC958 Playback Switch"
|
|
+ lock true
|
|
+ preserve true
|
|
+ value 1
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+}
|
|
|
|
################################################################################
|
|
|
|
--
|
|
1.8.4
|
|
|