- Backport upstream fix patches, including the deadlock fix for aplay/arecord (boo#1031525): 0001-ucm-Add-ATTRIBUTE_UNUSED-for-unused-parameters-of-ex.patch 0002-ucm-parser-needs-limits.h.patch 0003-pcm-direct-allow-users-to-configure-different-period.patch 0004-pcm-dshare-enable-silence.patch 0005-pcm-rate-fix-the-hw_ptr-update-until-the-boundary-av.patch 0006-plugin-dynamically-update-avail_min-on-slave.patch 0007-rate-dynamic-update-avail_min-on-slave.patch 0008-topology-fix-unused-const-variable-warning.patch 0009-seq-improve-documentation-about-new-get-pid-card-fun.patch 0010-pcm-direct-returning-semop-error-code-for-semaphore-.patch 0011-pcm-direct-Fix-for-sync-issue-on-xrun-recover.patch 0012-pcm-direct-check-state-before-enter-poll-on-timer.patch 0013-pcm-direct-don-t-return-bogus-buffer-levels-in-xrun-.patch 0014-conf-ucm-broxton-add-broxton-rt298-conf-files.patch 0015-pcm-direct-Fix-deadlock-in-poll_descriptors.patch 0016-ucm-Assure-the-user-input-card-name-not-to-exceed-ma.patch 0017-ucm-Load-device-specific-configuration-file-based-on.patch 0018-ucm-Add-command-get-_file-to-get-the-config-file-nam.patch 0019-topology-Fix-incorrect-license-in-source-comments.patch 0020-conf-cards-add-support-for-pistachio-card.patch 0021-pcm-multi-Drop-the-fixed-slave_map-in-snd_pcm_multi_.patch 0022-conf-Add-card-config-for-Intel-HDMI-DP-LPE-audio.patch 0023-pcm-Avoid-lock-for-snd_pcm_nonblock.patch 0024-pcm-Disable-locking-in-async-mode.patch 0025-pcm-dmix-Allow-disabling-x86-optimizations.patch 0026-pcm-dmix_rewind-corrupts-application-pointer-fix.patch 0027-pcm-direct-fix-race-on-clearing-timer-events.patch 0028-pcm-file-Enable-file-writing-for-capture-path.patch OBS-URL: https://build.opensuse.org/request/show/483406 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=210
116 lines
2.2 KiB
Diff
116 lines
2.2 KiB
Diff
From 53dc36f1f465e2a1f9ed37906a7f16a438f941e4 Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Tue, 7 Feb 2017 14:25:17 +0100
|
|
Subject: [PATCH 22/43] conf: Add card config for Intel HDMI/DP LPE audio
|
|
|
|
It's a playback-only device with a single PCM dedicated for HDMI/DP
|
|
output. The dmix is working with the latest driver code, so enable it
|
|
for default, while providing the hdmi PCM dev for the accesses with
|
|
AES bits.
|
|
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
src/conf/cards/HdmiLpeAudio.conf | 85 +++++++++++++++++++++++++++++++++++++++
|
|
src/conf/cards/Makefile.am | 1
|
|
2 files changed, 86 insertions(+)
|
|
create mode 100644 src/conf/cards/HdmiLpeAudio.conf
|
|
|
|
--- /dev/null
|
|
+++ b/src/conf/cards/HdmiLpeAudio.conf
|
|
@@ -0,0 +1,85 @@
|
|
+#
|
|
+# Configuration for the Intel HDMI/DP LPE audio
|
|
+#
|
|
+
|
|
+<confdir:pcm/front.conf>
|
|
+
|
|
+HdmiLpeAudio.pcm.front.0 {
|
|
+ @args [ CARD ]
|
|
+ @args.CARD {
|
|
+ type string
|
|
+ }
|
|
+ type softvol
|
|
+ slave.pcm {
|
|
+ type hw
|
|
+ card $CARD
|
|
+ }
|
|
+ control {
|
|
+ name "PCM Playback Volume"
|
|
+ card $CARD
|
|
+ }
|
|
+}
|
|
+
|
|
+# default with dmix+softvol
|
|
+HdmiLpeAudio.pcm.default {
|
|
+ @args [ CARD ]
|
|
+ @args.CARD {
|
|
+ type string
|
|
+ }
|
|
+ type plug
|
|
+ slave.pcm {
|
|
+ type softvol
|
|
+ slave.pcm {
|
|
+ @func concat
|
|
+ strings [ "dmix:" $CARD ]
|
|
+ }
|
|
+ control {
|
|
+ name "PCM Playback Volume"
|
|
+ card $CARD
|
|
+ }
|
|
+ }
|
|
+}
|
|
+
|
|
+<confdir:pcm/surround40.conf>
|
|
+<confdir:pcm/surround21.conf>
|
|
+<confdir:pcm/surround41.conf>
|
|
+<confdir:pcm/surround50.conf>
|
|
+<confdir:pcm/surround51.conf>
|
|
+
|
|
+<confdir:pcm/hdmi.conf>
|
|
+
|
|
+HdmiLpeAudio.pcm.hdmi.0 {
|
|
+ @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"
|
|
+ lock true
|
|
+ preserve true
|
|
+ value [ $AES0 $AES1 $AES2 $AES3 ]
|
|
+ }
|
|
+ ]
|
|
+ }
|
|
+}
|
|
--- a/src/conf/cards/Makefile.am
|
|
+++ b/src/conf/cards/Makefile.am
|
|
@@ -30,6 +30,7 @@ cfg_files = aliases.conf \
|
|
FireWave.conf \
|
|
GUS.conf \
|
|
HDA-Intel.conf \
|
|
+ HdmiLpeAudio.conf \
|
|
ICE1712.conf \
|
|
ICE1724.conf \
|
|
ICH.conf \
|