Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'sof-nau8825'
Browse files Browse the repository at this point in the history
  • Loading branch information
WeirdTreeThing committed Apr 14, 2024
2 parents ff97d6b + 9e19d7c commit b6ce2a7
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 156 deletions.
37 changes: 16 additions & 21 deletions adl/sof-nau8825/HiFi.osiris.conf → adl/sof-nau8825/HiFi.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
SectionVerb {
EnableSequence [
cset "name='Mic Volume' 230"
cset "name='Frontend PGA Volume' 24"
]
}

# Split 4ch dmic into 2 virtual 2ch mics
Include.pcm_split.File "/common/pcm/split.conf"

Expand All @@ -24,19 +17,21 @@ Macro [
}
]

SectionDevice."Speaker" {
Comment "Speaker"
If.max98360a {
Condition {
Type String
Empty "$${var:max98360a}"
}
False.Include.speaker.File "/codecs/max98357a/speaker.conf"
}


Value {
PlaybackPriority 100
PlaybackPCM "hw:${CardId},0"
If.max98373 {
Condition {
Type String
Empty "$${var:max98373}"
}
EnableSequence [
cset "name='Spk Switch' on"
]
DisableSequence [
cset "name='Spk Switch' off"
]
False.Include.speaker.File "/codecs/max98373/speaker.conf"
}

SectionDevice."Headphones" {
Expand All @@ -60,13 +55,13 @@ SectionDevice."Mic" {

Value {
CapturePriority 100
CapturePCM "hw:${CardId},99"
CapturePCM "hw:${CardId},${var:dmicpcm}"
CaptureChannels 4
}
Macro.pcm_split.SplitPCMDevice {
Name "adl_stereo_in"
Direction Capture
Device 99
Device "${var:dmicpcm}"
HWChannels 4
Channels 2
Channel0 0
Expand All @@ -93,4 +88,4 @@ SectionDevice."Headset" {
]
}

Include.hdmi.File "/codecs/hda/hdmi2345.conf"
Include.hdmi.File "/codecs/hda/${var:hdmi}.conf"
117 changes: 0 additions & 117 deletions adl/sof-nau8825/HiFi.kano.conf

This file was deleted.

27 changes: 10 additions & 17 deletions adl/sof-nau8825/sof-nau8825.conf
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
Syntax 6

If.osiris {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Osiris"
}
True.SectionUseCase."HiFi" {
File "HiFi.osiris.conf"
Comment "Default"
}
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}

If.kano {
Include.platform.File "/platforms/intel-sof/platform.conf"
Include.codec.File "/platforms/intel-sof/codecs.conf"
Include.codec-init.File "/codecs/nau8825/init.conf"

If.max98373 {
Condition {
Type String
Haystack "${sys:devices/virtual/dmi/id/product_name}"
Needle "Kano"
}
True.SectionUseCase."HiFi" {
File "HiFi.kano.conf"
Comment "Default"
Empty "$${var:max98373}"
}
False.Include.max98373-init.File "/codecs/max98373/init.conf"
}
7 changes: 7 additions & 0 deletions codecs/nau8825/init.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# NAU8825 specific volume control settings

BootSequence [
cset "name='Mic Volume' 230"
cset "name='Frontend PGA Volume' 24"
]

File renamed without changes.
2 changes: 1 addition & 1 deletion sof-rt5682/sof-rt5682.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SectionUseCase."HiFi" {
}

Include.platform.File "/platforms/intel-sof/platform.conf"
Include.codec.File "codecs.conf"
Include.codec.File "/platforms/intel-sof/codecs.conf"

# headphone codecs

Expand Down

0 comments on commit b6ce2a7

Please sign in to comment.