-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch: updated and added ALSA/PulseAudio configuration files
* see: Dunedan/mbp-2016-linux#111 (comment) * see: https://gist.github.com/MCMrARM/c357291e4e5c18894bea10665dcebffb
- Loading branch information
1 parent
abe7910
commit a53e14b
Showing
5 changed files
with
151 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SUBSYSTEM!="sound", GOTO="pulseaudio_end" | ||
ACTION!="change", GOTO="pulseaudio_end" | ||
KERNEL!="card*", GOTO="pulseaudio_end" | ||
|
||
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x106b", ATTRS{device}=="0x1803", ENV{PULSE_PROFILE_SET}="apple-t2.conf" | ||
|
||
LABEL="pulseaudio_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<confdir:pcm/front.conf> | ||
<confdir:pcm/surround40.conf> | ||
|
||
AppleT2.pcm.default { | ||
@args [ CARD ] | ||
@args.CARD { | ||
type string | ||
} | ||
|
||
type asym | ||
playback.pcm { | ||
type plug | ||
slave.pcm { | ||
type hw | ||
card $CARD | ||
device 0 | ||
} | ||
} | ||
capture.pcm { | ||
type plug | ||
slave.pcm { | ||
type hw | ||
card $CARD | ||
device 1 | ||
} | ||
} | ||
hint.device_output 0 | ||
hint.device_input 1 | ||
} | ||
|
||
AppleT2.pcm.front.0 { | ||
@args [ CARD ] | ||
@args.CARD { | ||
type string | ||
} | ||
type asym | ||
playback.pcm { | ||
type hw | ||
card $CARD | ||
device 0 | ||
} | ||
capture.pcm { | ||
type hw | ||
card $CARD | ||
device 1 | ||
} | ||
hint.device_output 0 | ||
hint.device_input 1 | ||
} | ||
AppleT2.pcm.front.1 { | ||
@args [ CARD ] | ||
@args.CARD { | ||
type string | ||
} | ||
type asym | ||
playback.pcm { | ||
type hw | ||
card $CARD | ||
device 2 | ||
} | ||
capture.pcm { | ||
type hw | ||
card $CARD | ||
device 3 | ||
} | ||
hint.device_output 2 | ||
hint.device_input 3 | ||
} | ||
AppleT2.pcm.front.2 { | ||
@args [ CARD ] | ||
@args.CARD { | ||
type string | ||
} | ||
type hw | ||
card $CARD | ||
device 4 | ||
} |
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
setup-usr-share-pulseaudio-alsa-mixer-profile-sets-apple-t2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[General] | ||
auto-profiles = no | ||
|
||
[Mapping builtin-speaker] | ||
description = Built-in Speaker | ||
device-strings = front:%f | ||
paths-output = builtin-speaker-output | ||
channel-map = front-left,front-right,rear-left,rear-right | ||
priority = 100 | ||
direction = output | ||
|
||
[Mapping builtin-mic] | ||
description = Built-in Mic | ||
device-strings = front:%f | ||
paths-output = builtin-mic-input | ||
channel-map = left,center,right | ||
priority = 100 | ||
direction = input | ||
|
||
[Mapping codec-output] | ||
description = Headphone | ||
device-strings = front:%f,1 | ||
paths-output = codec-output | ||
channel-map = left,right | ||
priority = 100 | ||
direction = output | ||
|
||
[Mapping codec-input] | ||
description = Headphone Mic | ||
device-strings = front:%f,1 | ||
paths-output = codec-input | ||
channel-map = mono | ||
priority = 100 | ||
direction = input | ||
|
||
[Profile output:builtin-speaker+input:builtin-mic] | ||
description = Built-in Speaker + Built-in Mic | ||
output-mappings = builtin-speaker | ||
input-mappings = builtin-mic | ||
skip-probe = yes | ||
|
||
[Profile output:codec-output+input:builtin-mic] | ||
description = Headphones + Built-in Mic | ||
output-mappings = codec-output | ||
input-mappings = builtin-mic | ||
|
||
[Profile output:codec-output+input:codec-input] | ||
description = Headphones + External Mic | ||
output-mappings = codec-output | ||
input-mappings = codec-input | ||
|
||
[Profile output:builtin-speaker+input:codec-input] | ||
description = Built-in Speaker + External Mic | ||
output-mappings = builtin-speaker | ||
input-mappings = codec-input |