pax_global_header00006660000000000000000000000064147661460510014524gustar00rootroot0000000000000052 comment=22a6399935b5d43acfbf4df9bc799d3cf8e7b5b1 alsa-ucm-conf-asahi-8/000077500000000000000000000000001476614605100147455ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/.gitignore000066400000000000000000000001221476614605100167300ustar00rootroot00000000000000/alsa-ucm-asahi-*\.src\.rpm /alsa-ucm-asahi\.spec /alsa-ucm-conf-asahi-*\.tar\.gz alsa-ucm-conf-asahi-8/.packit.yaml000066400000000000000000000016501476614605100171640ustar00rootroot00000000000000# See the documentation for more information: # https://packit.dev/docs/configuration/ specfile_path: alsa-ucm-asahi.spec files_to_sync: - alsa-ucm-asahi.spec - .packit.yaml actions: # Fetch the specfile from Rawhide and disable rpmautospec post-upstream-clone: "bash -c \"curl -s https://src.fedoraproject.org/rpms/alsa-ucm-asahi/raw/main/f/alsa-ucm-asahi.spec | sed -e '/^%autochangelog$/d' > alsa-ucm-asahi.spec\"" srpm_build_deps: - bash - curl - sed jobs: - job: copr_build trigger: commit owner: "@asahi" project: packit-builds targets: - fedora-all-aarch64 - fedora-rawhide-i386 - fedora-rawhide-ppc64le - fedora-rawhide-s390x - fedora-rawhide-x86_64 - job: copr_build trigger: pull_request owner: "@asahi" project: packit-builds targets: - fedora-all-aarch64 - fedora-rawhide-i386 - fedora-rawhide-ppc64le - fedora-rawhide-s390x - fedora-rawhide-x86_64 alsa-ucm-conf-asahi-8/LICENSE.asahi000066400000000000000000000030241476614605100170350ustar00rootroot00000000000000BSD 3-Clause License Copyright (c) 2019, Advanced Linux Sound Architecture (ALSA) project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. alsa-ucm-conf-asahi-8/README.asahi000066400000000000000000000005401476614605100167100ustar00rootroot00000000000000# alsa-ucm-conf-asahi This tree contains so-called ALSA UCM configuration describing internal sound peripherals on Apple hardware. This is to overlay the parent alsa-ucm-conf package at /usr/share/alsa. ## License These configuration files are licensed, to anybody obtaining a copy, under the terms of the BSD-3 license. See the LICENSE.asahi file. alsa-ucm-conf-asahi-8/ucm2/000077500000000000000000000000001476614605100156135ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/000077500000000000000000000000001476614605100167625ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/000077500000000000000000000000001476614605100207225ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/3chan/000077500000000000000000000000001476614605100217165ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/3chan/HiFi.conf000066400000000000000000000003251476614605100234040ustar00rootroot00000000000000# For laptops with a three-channel mic array (new-style Airs, Pros) SectionDevice."Mic" { Comment "Microphone" Value { TQ Voice CaptureChannels "3" CapturePriority 100 CapturePCM "hw:${CardId},0" } } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Air J313 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310320ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Air J413 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310330ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Air J415 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310350ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J293 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310660ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J314 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310600ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J316 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310620ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J414 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310610ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J416 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310630ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/aop_audio/MacBook Pro J493 High-Power Audio Interface.conf000066400000000000000000000001411476614605100310700ustar00rootroot00000000000000Syntax 7 SectionUseCase."HiFi" { Comment "Default" File "/conf.d/aop_audio/3chan/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/000077500000000000000000000000001476614605100205445ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/Mac Studio J375.conf000066400000000000000000000003321476614605100237520ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Speaker Volume" File "/conf.d/macaudio/desktops/mono/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/Mac Studio J475.conf000066400000000000000000000003321476614605100237530ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Speaker Volume" File "/conf.d/macaudio/desktops/mono/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/Mac mini J274.conf000066400000000000000000000003431476614605100234370ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l83" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Speaker Playback Volume" File "/conf.d/macaudio/desktops/mono/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/Mac mini J473.conf000066400000000000000000000003321476614605100234360ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Speaker Volume" File "/conf.d/macaudio/desktops/mono/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/Mac mini J474.conf000066400000000000000000000003321476614605100234370ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Speaker Volume" File "/conf.d/macaudio/desktops/mono/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Air J313.conf000066400000000000000000000003771476614605100240320ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l83" Define.PlaybackChannels "2" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Speaker Playback Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Air J413.conf000066400000000000000000000003751476614605100240310ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "4" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Air J415.conf000066400000000000000000000003771476614605100240350ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J293.conf000066400000000000000000000004051476614605100240560ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l83" Define.PlaybackChannels "4" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Front Speaker Playback Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J314.conf000066400000000000000000000003771476614605100240600ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J316.conf000066400000000000000000000003771476614605100240620ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J414.conf000066400000000000000000000003771476614605100240610ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J416.conf000066400000000000000000000003771476614605100240630ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/MacBook Pro J493.conf000066400000000000000000000003741476614605100240650ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { Comment "Default" Define.JackCodec "cs42l84" Define.PlaybackChannels "4" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Front Speaker Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/cs42l83/000077500000000000000000000000001476614605100216465ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/cs42l83/Headphones.conf000066400000000000000000000007461476614605100246020ustar00rootroot00000000000000SectionDevice."Headphones" { Comment "Headphones" EnableSequence [ cset "name='Jack ADC Boost Switch' on" ] Value { PlaybackPriority 300 PlaybackPCM "hw:${CardId},${var:JackDevice}" JackControl "Headphone Jack" PlaybackMixerElem "Jack Mixer" } } SectionDevice."Headset" { Comment "Headset Microphone" Value { CapturePriority 300 CapturePCM "hw:${CardId},${var:JackDevice}" CaptureChannels 1 JackControl "Headset Mic Jack" CaptureMixerElem "Jack ADC" } } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/cs42l84/000077500000000000000000000000001476614605100216475ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/cs42l84/Headphones.conf000066400000000000000000000016271476614605100246020ustar00rootroot00000000000000SectionDevice."Headphones" { Comment "Headphones" EnableSequence [ cset "name='Headphone Switch' on" cset "name='Jack DACA Select' 'ASP RX CH1'" cset "name='Jack DACB Select' 'ASP RX CH2'" ] Value { PlaybackPriority 300 PlaybackPCM "hw:${CardId},${var:JackDevice}" JackControl "Headphone Jack" PlaybackMixerElem "Jack DAC" } } SectionDevice."Headset" { Comment "Headset Microphone" EnableSequence [ cset "name='Headset Mic Switch' on" cset "name='Jack ADC WNF Switch' on" cset "name='Jack WNF Corner Frequency' 1" cset "name='Jack ADC HPF Switch' on" cset "name='Jack HPF Corner Frequency' 1" cset "name='Jack ADC Preamp Gain' 2" cset "name='Jack SDOUT1 Select' 'ADC'" ] Value { CapturePriority 300 CapturePCM "hw:${CardId},${var:JackDevice}" CaptureChannels 1 CaptureMixerElem "Jack ADC PGA" CaptureMasterElem "Jack ADC Preamp" JackControl "Headset Mic Jack" } } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/desktops/000077500000000000000000000000001476614605100224005ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/desktops/mono/000077500000000000000000000000001476614605100233505ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/desktops/mono/HiFi.conf000066400000000000000000000015731476614605100250440ustar00rootroot00000000000000# Mono desktops SectionVerb { EnableSequence [ cset "name='Headphone Playback Mux' 'Primary'" cset "name='Speaker Playback Mux' 'Secondary'" ] Value { TQ "HiFi" } } If.cs42l84 { Condition { Type String String1 "${var:JackCodec}" String2 "cs42l84" } True { Include.hp.File "/conf.d/macaudio/cs42l84/Headphones.conf" } } If.cs42l83 { Condition { Type String String1 "${var:JackCodec}" String2 "cs42l83" } True { Include.hp.File "/conf.d/macaudio/cs42l83/Headphones.conf" } } If.havespk { Condition { Type ControlExists Control "name='${var:SpeakerElem}'" } True { SectionDevice."Speaker" { Comment "Speaker" EnableSequence [ cset "name='Speaker Switch' on" ] EnableSequence [ cset "name='ASI1 Sel' 'LeftRightDiv2'" ] Value { PlaybackPriority 100 PlaybackPCM "hw:${CardId},${var:SpeakerDevice}" } } } } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/iMac J456.conf000066400000000000000000000006531476614605100227010ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { # Well, sure, the iMac isn't a laptop, but it needs essentially # the same config. (That is until there will be support for the # internal mic on the laptops.) Comment "Default" Define.JackCodec "cs42l83" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Playback Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/iMac J457.conf000066400000000000000000000006531476614605100227020ustar00rootroot00000000000000Syntax 6 SectionUseCase."HiFi" { # Well, sure, the iMac isn't a laptop, but it needs essentially # the same config. (That is until there will be support for the # internal mic on the laptops.) Comment "Default" Define.JackCodec "cs42l83" Define.PlaybackChannels "6" Define.JackDevice "0" Define.SpeakerDevice "1" Define.SpeakerElem "Left Woofer 1 Speaker Playback Volume" File "/conf.d/macaudio/laptops/HiFi.conf" } alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/laptops/000077500000000000000000000000001476614605100222265ustar00rootroot00000000000000alsa-ucm-conf-asahi-8/ucm2/conf.d/macaudio/laptops/HiFi.conf000066400000000000000000000016201476614605100237130ustar00rootroot00000000000000# For laptops with 6 speakers (4 woofers and 2 tweeters) SectionVerb { EnableSequence [ cset "name='Headphone Playback Mux' 'Primary'" cset "name='Speaker Playback Mux' 'Secondary'" ] Value { TQ "HiFi" } } If.cs42l84 { Condition { Type String String1 "${var:JackCodec}" String2 "cs42l84" } True { Include.hp.File "/conf.d/macaudio/cs42l84/Headphones.conf" } } If.cs42l83 { Condition { Type String String1 "${var:JackCodec}" String2 "cs42l83" } True { Include.hp.File "/conf.d/macaudio/cs42l83/Headphones.conf" } } If.havespk { Condition { Type ControlExists Control "name='${var:SpeakerElem}'" } True { SectionDevice."Speaker" { Comment "Speakers" EnableSequence [ cset "name='Speaker Switch' on" ] Value { PlaybackChannels "${var:PlaybackChannels}" PlaybackPriority 100 PlaybackPCM "hw:${CardId},${var:SpeakerDevice}" } } } }