Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Toradex Hardware Configuration Files #448

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
37 changes: 37 additions & 0 deletions ucm2/Toradex/apalis-imx6/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Use case configuration for Toradex Apalis iMX6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ucm2/NXP paths (like current NXP/iMX8 etc.). We prefer to store configurations for similar hardware in one place.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perexg : can you explain better what would you like? These UCM files are related to Toradex board, the actual sound card on these boards does not have much in common with NXP nor i.MX8 boards..

Or maybe you want the boards that use the fsl-asoc-card to be grouped together? How?


SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Playback Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackSwitch "Headphone Playback Switch"
PlaybackVolume "Headphone Playback Volume"
}
}

SectionDevice."Mic" {
Comment "Microphone"

EnableSequence [
cset "name='Capture Switch' on"
]

DisableSequence [
cset "name='Capture Switch' off"
]

Value {
CapturePCM "hw:${CardId}"
CaptureVolume "Capture Volume"
CaptureSwitch "Capture Switch"
}
}
18 changes: 18 additions & 0 deletions ucm2/Toradex/apalis-imx6/apalis-imx6.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Use case configuration for Toradex Apalis iMX6

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/apalis-imx6/HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Playback Switch' on"
cset "name='Headphone Playback Volume' 114"

cset "name='PCM Playback Volume' 144"

cset "name='Capture Switch' on"
cset "name='Capture Volume' 12"
]
19 changes: 19 additions & 0 deletions ucm2/Toradex/apalis-imx8/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Use case configuration for Toradex Apalis iMX8

SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Playback Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackVolume "Headphone Volume"
PlaybackSwitch "Headphone Switch"
}
}
16 changes: 16 additions & 0 deletions ucm2/Toradex/apalis-imx8/apalis-imx8.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use case configuration for Toradex Apalis iMX8

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/apalis-imx8/HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Playback Switch' on"
cset "name='Headphone Playback Volume' 50%"

cset "name='Lineout Playback Switch' on"
cset "name='Lineout Playback Volume' 50%"
]
19 changes: 19 additions & 0 deletions ucm2/Toradex/apalis/eval-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2

SectionDevice."Headphones" {
Comment "Headphones"

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

DisableSequence [
cset "name='Headphone Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackVolume "Headphone Volume"
PlaybackSwitch "Headphone Switch"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall: Missing PCM device specifications (Values) ....

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the Value node, please let me know... thanks!

12 changes: 12 additions & 0 deletions ucm2/Toradex/apalis/eval.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use case configuration for Toradex Apalis iMX8, Evaluation Board v1.2

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/apalis/eval-HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Volume' 50%"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall: If hardware supports volume control, it should be speciified e.g. using PlaybackMixerElem.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to the Value, please let me know, thanks!

]
37 changes: 37 additions & 0 deletions ucm2/Toradex/colibri-imx6/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Use case configuration for Toradex Colibri iMX6

SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Playback Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackSwitch "Headphone Playback Switch"
PlaybackVolume "Headphone Playback Volume"
}
}

SectionDevice."Mic" {
Comment "Microphone"

EnableSequence [
cset "name='Capture Switch' on"
]

DisableSequence [
cset "name='Capture Switch' off"
]

Value {
CapturePCM "hw:${CardId}"
CaptureVolume "Capture Volume"
CaptureSwitch "Capture Switch"
}
}
18 changes: 18 additions & 0 deletions ucm2/Toradex/colibri-imx6/colibri-imx6.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Use case configuration for Toradex Colibri iMX6

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/colibri-imx6/HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Playback Switch' on"
cset "name='Headphone Playback Volume' 114"

cset "name='PCM Playback Volume' 144"

cset "name='Capture Switch' on"
cset "name='Capture Volume' 12"
]
37 changes: 37 additions & 0 deletions ucm2/Toradex/colibri-imx7/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Use case configuration for Toradex Colibri iMX7

SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Playback Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackSwitch "Headphone Playback Switch"
PlaybackVolume "Headphone Playback Volume"
}
}

SectionDevice."Mic" {
Comment "Microphone"

EnableSequence [
cset "name='Capture Switch' on"
]

DisableSequence [
cset "name='Capture Switch' off"
]

Value {
CapturePCM "hw:${CardId}"
CaptureVolume "Capture Volume"
CaptureSwitch "Capture Switch"
}
}
18 changes: 18 additions & 0 deletions ucm2/Toradex/colibri-imx7/colibri-imx7.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Use case configuration for Toradex Colibri iMX7

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/colibri-imx7/HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Playback Switch' on"
cset "name='Headphone Playback Volume' 114"

cset "name='PCM Playback Volume' 144"

cset "name='Capture Switch' on"
cset "name='Capture Volume' 12"
]
37 changes: 37 additions & 0 deletions ucm2/Toradex/colibri-imx8x/HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Use case configuration for Toradex Colibri iMX8X

SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Playback Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackSwitch "Headphone Playback Switch"
PlaybackVolume "Headphone Playback Volume"
}
}

SectionDevice."Mic" {
Comment "Microphone"

EnableSequence [
cset "name='Capture Switch' on"
]

DisableSequence [
cset "name='Capture Switch' off"
]

Value {
CapturePCM "hw:${CardId}"
CaptureVolume "Capture Volume"
CaptureSwitch "Capture Switch"
}
}
18 changes: 18 additions & 0 deletions ucm2/Toradex/colibri-imx8x/colibri-imx8x.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Use case configuration for Toradex Apalis iMX8

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/colibri-imx8x/HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Playback Switch' on"
cset "name='Headphone Playback Volume' 114"

cset "name='PCM Playback Volume' 144"

cset "name='Capture Switch' on"
cset "name='Capture Volume' 12"
]
37 changes: 37 additions & 0 deletions ucm2/Toradex/verdin/dahlia-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Use case configuration for Toradex Dahlia Carrier Board

SectionDevice."Headphone" {
Comment "Headphone"

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

DisableSequence [
cset "name='Headphone Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackVolume "Headphone Volume"
PlaybackSwitch "Headphone Switch"
}
}

SectionDevice."Microphone" {
Comment "Microphone"

EnableSequence [
cset "name='Capture Switch' on"
]

DisableSequence [
cset "name='Capture Switch' off"
]

Value {
CapturePCM "hw:${CardId}"
CaptureVolume "Capture Volume"
CaptureSwitch "Capture Switch"
}
}
15 changes: 15 additions & 0 deletions ucm2/Toradex/verdin/dahlia.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Use case configuration for Toradex Dahlia Carrier Board

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/verdin/dahlia-HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Volume' 50%"
cset "name='Left Capture Inverting Mux' 'IN1L'"
cset "name='Right Capture Inverting Mux' 'IN1R'"
cset "name='Capture Volume' 31"
]
19 changes: 19 additions & 0 deletions ucm2/Toradex/verdin/dev-HiFi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Use case configuration for Toradex Verdin Development Carrier Board

SectionDevice."Headphones" {
Comment "Headphones"

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

DisableSequence [
cset "name='Headphone Switch' off"
]

Value {
PlaybackPCM "hw:${CardId}"
PlaybackVolume "Headphone Volume"
PlaybackSwitch "Headphone Switch"
}
}
12 changes: 12 additions & 0 deletions ucm2/Toradex/verdin/dev.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Use case configuration for Toradex Verdin Development Carrier Board

Syntax 4

SectionUseCase."HiFi" {
File "/Toradex/verdin/dev-HiFi.conf"
Comment "Default"
}

BootSequence [
cset "name='Headphone Volume' 50%"
]
1 change: 1 addition & 0 deletions ucm2/conf.d/fsl-asoc-card/apalis-imx6.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/fsl-asoc-card/colibri-imx6.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/simple-card/apalis-imx8.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/simple-card/apalis-nau8822.conf
1 change: 1 addition & 0 deletions ucm2/conf.d/simple-card/colibri-imx7.conf
Loading