Skip to content

Commit

Permalink
ucm2: Intel: avs_nau8825 - reuse configurations
Browse files Browse the repository at this point in the history
Move identical pieces to one file.

BugLink: #418
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
perexg committed Oct 8, 2024
1 parent ba8d17b commit 71408e4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 63 deletions.
2 changes: 1 addition & 1 deletion ucm2/Intel/avs/avs_nau8825/Acer-Lars-1.0.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_nau8825/Acer-Lars-1.0-HiFi.conf"
File "/Intel/avs/avs_nau8825/avs_nau8825-HiFi.conf"
Comment "Play HiFi quality Music"
}

Expand Down
34 changes: 0 additions & 34 deletions ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf

This file was deleted.

2 changes: 1 addition & 1 deletion ucm2/Intel/avs/avs_nau8825/Google-Cave-1.0.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Syntax 6

SectionUseCase."HiFi" {
File "/Intel/avs/avs_nau8825/Google-Cave-1.0-HiFi.conf"
File "/Intel/avs/avs_nau8825/avs_nau8825-HiFi.conf"
Comment "Play HiFi quality Music"
}

Expand Down
28 changes: 1 addition & 27 deletions ucm2/Intel/avs/avs_nau8825/Hewlett_Packard-Chell-1.0-HiFi.conf
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
SectionDevice."Headphone" {
Comment "Headphones"

Value {
PlaybackPCM "hw:${CardId},1"
JackControl "Headphone Jack"
}

EnableSequence [
cset "name='Headphone Jack Switch' on"
]

DisableSequence [
cset "name='Headphone Jack Switch' off"
]
}
Include.top.File "/Intel/avs/avs_nau8825/avs_nau8825-HiFi.conf"

SectionDevice."Mic" {
Comment "Headset Microphone"

Value {
CapturePCM "hw:${CardId},1"
CaptureCTL "Mic"
JackControl "Headset Mic"
}

EnableSequence [
cset "name='Headset Mic Switch' on"
cset "name='BIQ Coefficients' 0,155,0,6,255,102,0,0,255,179,0,0,0,154,0,6,255,179,128,0"
]

DisableSequence [
cset "name='Headset Mic Switch' off"
cset "name='BIQ Coefficients' 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
]
}

0 comments on commit 71408e4

Please sign in to comment.