UCM profiles taken from Ubuntu
When I bought Samsung ARM Chromebook few months ago I had no idea about UCM profiles and burnt speakers (left is dead, right is resting). Then I learnt, took ones from ChromeOS and added them into Ubuntu so other users will be a bit more safe.
Later I had a discussion with some Debian, Ubuntu, Fedora developers about how to solve such problems and how to keep UCM profiles shared between distributions.
Liam Girdwood pointed me to not used git tree at ALSA Project server and finally I reminded myself about it.
The idea is to collect UCM profiles, keep them in one place and create alsa-ucm package in each distribution.
PATCH 1/5 DAISY-I2S: add Samsung ARM Chromebook UCM config from ChromeOS
--- DAISY-I2S/DAISY-I2S.conf | 6 +++++ DAISY-I2S/HiFi.conf | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 DAISY-I2S/DAISY-I2S.conf create mode 100644 DAISY-I2S/HiFi.conf
DAISY-I2S/DAISY-I2S.conf new file +6 -0
@@ -0,0 +1,6 @@ +Comment "Daisy internal card" + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +}
DAISY-I2S/HiFi.conf new file +61 -0
61 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 2/5 PandaBoard: add UCM config from Ubuntu
In reply to Marcin Juszkiewicz--- PandaBoard/FMAnalog | 46 +++++++++++++++++++++++++ PandaBoard/PandaBoard.conf | 45 +++++++++++++++++++++++++ PandaBoard/hifi | 83 ++++++++++++++++++++++++++++++++++++++++++++++ PandaBoard/hifiLP | 46 +++++++++++++++++++++++++ PandaBoard/record | 47 ++++++++++++++++++++++++++ PandaBoard/voice | 46 +++++++++++++++++++++++++ PandaBoard/voiceCall | 67 +++++++++++++++++++++++++++++++++++++ 7 files changed, 380 insertions(+) create mode 100644 PandaBoard/FMAnalog create mode 100644 PandaBoard/PandaBoard.conf create mode 100644 PandaBoard/hifi create mode 100644 PandaBoard/hifiLP create mode 100644 PandaBoard/record create mode 100644 PandaBoard/voice create mode 100644 PandaBoard/voiceCall
PandaBoard/FMAnalog new file +46 -0
@@ -0,0 +1,46 @@ +# Use case Configurationfor TI PandaBoard HiFi Music +# By Liam Girdwood <[email protected]> + +SectionVerb { + EnableSequence [ + cdev "hw:PandaBoard" + cset "name='AMIC_UL PDM Switch' 1" + cset "name='MUX_UL00' 9" + cset "name='MUX_UL01' 10" + cset "name='Capture Volume' 4" + ] + + + DisableSequence [ + cdev "hw:PandaBoard" + cset "name='AMIC_UL PDM Switch' 0" + cset "name='MUX_UL00' 0" + cset "name='MUX_UL01' 0" + cset "name='Capture Volume' 0" + ] + + # Optional TQ and ALSA PCMs + Value { + TQ "Music" + CapturePCM "hw:0,0" + } +} + +SectionDevice."Headset".0 { + Comment "PandaBoard 3.5mm Headset" + + EnableSequence [ + cdev "hw:PandaBoard" + cset "name='Analog Left Capture Route' 2" + cset "name='Analog Right Capture Route' 2" + cset "name='Capture Preamplifier Volume' 2" + ] + + DisableSequence [ + cdev "hw:PandaBoard" + cset "name='Analog Left Capture Route' 3" + cset "name='Analog Right Capture Route' 3" + cset "name='Capture Preamplifier Volume' 0" + ] +} +
PandaBoard/PandaBoard.conf new file +45 -0
45 lines not on this page · raw message
PandaBoard/hifi new file +83 -0
83 lines not on this page · raw message
PandaBoard/hifiLP new file +46 -0
46 lines not on this page · raw message
PandaBoard/record new file +47 -0
47 lines not on this page · raw message
PandaBoard/voice new file +46 -0
46 lines not on this page · raw message
PandaBoard/voiceCall new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 3/5 PandaBoardES: add UCM config from Ubuntu
In reply to Marcin Juszkiewicz--- PandaBoardES/FMAnalog | 46 +++++++++++++++++++++++ PandaBoardES/PandaBoardES.conf | 45 +++++++++++++++++++++++ PandaBoardES/hifi | 83 ++++++++++++++++++++++++++++++++++++++++++ PandaBoardES/hifiLP | 46 +++++++++++++++++++++++ PandaBoardES/record | 47 ++++++++++++++++++++++++ PandaBoardES/voice | 46 +++++++++++++++++++++++ PandaBoardES/voiceCall | 67 ++++++++++++++++++++++++++++++++++ 7 files changed, 380 insertions(+) create mode 100644 PandaBoardES/FMAnalog create mode 100644 PandaBoardES/PandaBoardES.conf create mode 100644 PandaBoardES/hifi create mode 100644 PandaBoardES/hifiLP create mode 100644 PandaBoardES/record create mode 100644 PandaBoardES/voice create mode 100644 PandaBoardES/voiceCall
PandaBoardES/FMAnalog new file +46 -0
@@ -0,0 +1,46 @@ +# Use case Configurationfor TI PandaBoardES HiFi Music +# By Liam Girdwood <[email protected]> + +SectionVerb { + EnableSequence [ + cdev "hw:PandaBoardES" + cset "name='AMIC_UL PDM Switch' 1" + cset "name='MUX_UL00' 9" + cset "name='MUX_UL01' 10" + cset "name='Capture Volume' 4" + ] + + + DisableSequence [ + cdev "hw:PandaBoardES" + cset "name='AMIC_UL PDM Switch' 0" + cset "name='MUX_UL00' 0" + cset "name='MUX_UL01' 0" + cset "name='Capture Volume' 0" + ] + + # Optional TQ and ALSA PCMs + Value { + TQ "Music" + CapturePCM "hw:0,0" + } +} + +SectionDevice."Headset".0 { + Comment "PandaBoardES 3.5mm Headset" + + EnableSequence [ + cdev "hw:PandaBoardES" + cset "name='Analog Left Capture Route' 2" + cset "name='Analog Right Capture Route' 2" + cset "name='Capture Preamplifier Volume' 2" + ] + + DisableSequence [ + cdev "hw:PandaBoardES" + cset "name='Analog Left Capture Route' 3" + cset "name='Analog Right Capture Route' 3" + cset "name='Capture Preamplifier Volume' 0" + ] +} +
PandaBoardES/PandaBoardES.conf new file +45 -0
45 lines not on this page · raw message
PandaBoardES/hifi new file +83 -0
83 lines not on this page · raw message
PandaBoardES/hifiLP new file +46 -0
46 lines not on this page · raw message
PandaBoardES/record new file +47 -0
47 lines not on this page · raw message
PandaBoardES/voice new file +46 -0
46 lines not on this page · raw message
PandaBoardES/voiceCall new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 4/5 SDP4430: add UCM config from Ubuntu
In reply to Marcin Juszkiewicz--- SDP4430/FMAnalog | 46 +++++++++++++++++++++++++++++ SDP4430/SDP4430.conf | 45 ++++++++++++++++++++++++++++ SDP4430/hifi | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ SDP4430/hifiLP | 46 +++++++++++++++++++++++++++++ SDP4430/record | 45 ++++++++++++++++++++++++++++ SDP4430/voice | 46 +++++++++++++++++++++++++++++ SDP4430/voiceCall | 67 ++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 378 insertions(+) create mode 100644 SDP4430/FMAnalog create mode 100644 SDP4430/SDP4430.conf create mode 100644 SDP4430/hifi create mode 100644 SDP4430/hifiLP create mode 100644 SDP4430/record create mode 100644 SDP4430/voice create mode 100644 SDP4430/voiceCall
SDP4430/FMAnalog new file +46 -0
@@ -0,0 +1,46 @@ +# Use case Configurationfor TI SDP4430 HiFi Music +# By Liam Girdwood <[email protected]> + +SectionVerb { + EnableSequence [ + cdev "hw:SDP4430" + cset "name='AMIC_UL PDM Switch' 1" + cset "name='MUX_UL00' 9" + cset "name='MUX_UL01' 10" + cset "name='Capture Volume' 4" + ] + + + DisableSequence [ + cdev "hw:SDP4430" + cset "name='AMIC_UL PDM Switch' 0" + cset "name='MUX_UL00' 0" + cset "name='MUX_UL01' 0" + cset "name='Capture Volume' 0" + ] + + # Optional TQ and ALSA PCMs + Value { + TQ "Music" + CapturePCM "hw:0,0" + } +} + +SectionDevice."Headset".0 { + Comment "SDP4430 3.5mm Headset" + + EnableSequence [ + cdev "hw:SDP4430" + cset "name='Analog Left Capture Route' 2" + cset "name='Analog Right Capture Route' 2" + cset "name='Capture Preamplifier Volume' 2" + ] + + DisableSequence [ + cdev "hw:SDP4430" + cset "name='Analog Left Capture Route' 3" + cset "name='Analog Right Capture Route' 3" + cset "name='Capture Preamplifier Volume' 0" + ] +} +
SDP4430/SDP4430.conf new file +45 -0
45 lines not on this page · raw message
SDP4430/hifi new file +83 -0
83 lines not on this page · raw message
SDP4430/hifiLP new file +46 -0
46 lines not on this page · raw message
SDP4430/record new file +45 -0
45 lines not on this page · raw message
SDP4430/voice new file +46 -0
46 lines not on this page · raw message
SDP4430/voiceCall new file +67 -0
67 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 5/5 tegraalc5632: add UCM config from Ubuntu
In reply to Marcin Juszkiewicz--- tegraalc5632/tegraalc5632.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tegraalc5632/tegraalc5632.conf
tegraalc5632/tegraalc5632.conf new file +30 -0
@@ -0,0 +1,30 @@ +# UCM configuration for tegra-alc5632 + +ValueDefaults { + PlaybackCTL "hw:0" + CaptureCTL "hw:0" +} + +SectionDefaults [ + exec "echo Im setting defaults for tegra-alc5632" + cdev "hw:tegraalc5632" + cset "name='Master Playback Switch' on" + cset "name='Master Playback Volume' 44,44" + cset "name='Headphone Playback Switch' on" + cset "name='Headphone Playback Volume' 21,21" + cset "name='Speaker Playback Switch' on" + cset "name='Speaker Playback Volume' 21,21" + cset "name='Speaker Mix DAC2SPK Playback Switch' on" + cset "name='SpeakerOut Mux' 2" + cset "name='SpeakerOut N Mux' LN/-R" + cset "name='AB-D Amp Mux' 0" + cset "name='HPL Mix DACL2HP Playback Switch' on" + cset "name='HPR Mix DACR2HP Playback Switch' on" + cset "name='Int Spk Switch' on" + cset "name='Left Headphone Mux' 1" + cset "name='Right Headphone Mux' 1" + cset "name='DMIC En Capture Switch' on" + cset "name='DMIC PreFilter Capture Switch' on" + cset "name='DMIC Boost Capture Volume' 4" + cset "name='Rec Capture Volume' 24" +]
Signature · 1 line
1.8.1.2
Re: [PATCH 5/5] tegraalc5632: add UCM config from Ubuntu
Quoted 3 lines · Marcin Juszkiewicz
Signed-off-by Marcin Juszkiewicz <[email protected]>--- tegraalc5632/tegraalc5632.conf | 30 ++++++++++++++++++++++++++++++
I'm not sure that's the correct name for this file.
"alc5632" is the name of the audio CODEC, which could be used in a variety of different boards, each of which might require a different UCM configuration. Shouldn't the file be named based on the board name. At least with upstream kernels, the device tree contains:
nvidia,model = "Compal PAZ00";
which should influence the name the kernel gives to the sound card, and hence I think be the name the UCM config is looked up under?
tegraalc5632/tegraalc5632.conf line 9
Quoted 1 line
tegraalc5632/tegraalc5632.conf new file +1
-0+ exec "echo Im setting defaults for tegra-alc5632"
I'm not sure if that's useful?
I also notice that this file doesn't define any use-cases/verbs/... Presumably a Linux-based OS would expect a certain set of them to exist, and they'd be implemented/named consistently across all UCM configs?
Re: [PATCH 5/5] tegraalc5632: add UCM config from Ubuntu
Quoted 3 lines · Stephen Warren
"alc5632" is the name of the audio CODEC, which could be used in a variety of different boards, each of which might require a different UCM configuration. Shouldn't the file be named based on the board name. At
Yes, it should.
Quoted 3 lines
I also notice that this file doesn't define any use-cases/verbs/... Presumably a Linux-based OS would expect a certain set of them to exist, and they'd be implemented/named consistently across all UCM configs?
I'd expect them to at least fall back to assuming some default thing is available - having a model that is more "do I need to do something special for this mode". Being able to give at least some basic functionality from a minimal starting point seems sensible.
Re: [PATCH 5/5] tegraalc5632: add UCM config fromUbuntu
Hi,
Quoted 6 lines · On Friday 10 May 2013 21:53:30 Mark Brown wrote:
Quoted 3 lines · Stephen Warren
"alc5632" is the name of the audio CODEC, which could be used in a variety of different boards, each of which might require a different UCM configuration. Shouldn't the file be named based on the board name. At
Yes, it should.
I like to help out, but I'm also unfamiliar with UCM profiles. This configuation belong to the AC100 netboot (board name paz00) and a single hifi use case would be sufficient for now. http://www.alsa-
project.org/main/index.php/Use_Case_Manager doesn't give much info. Andrey, Leon, any idea?
Marc
Quoted 9 lines
Quoted 4 lines
I also notice that this file doesn't define any use-cases/verbs/... Presumably a Linux-based OS would expect a certain set of them to exist, and they'd be implemented/named consistently across all UCM configs?
I'd expect them to at least fall back to assuming some default thing is available - having a model that is more "do I need to do something special for this mode". Being able to give at least some basic functionality from a minimal starting point seems sensible.
Re: [PATCH 5/5] tegraalc5632: add UCM config fromUbuntu
Quoted 5 lines · Marc Dietrich
I like to help out, but I'm also unfamiliar with UCM profiles. This configuation belong to the AC100 netboot (board name paz00) and a single hifi use case would be sufficient for now. http://www.alsa-
project.org/main/index.php/Use_Case_Manager doesn't give much info. Andrey, Leon, any idea?
The examples Marcin posted are pretty good to refer to. The main thing that's likely to be useful if the boards have multiple audio inputs or outputs is to add support for them - for a "computer" type form factor (as opposed to phone type form factor) there's probably not going to be huge variation between use cases out of the box anyway.
Re: [PATCH 5/5] tegraalc5632: add UCM config fromUbuntu
Quoted 7 lines · Mark Brown
Quoted 5 lines · Marc Dietrich
I like to help out, but I'm also unfamiliar with UCM profiles. This configuation belong to the AC100 netboot (board name paz00) and a single hifi use case would be sufficient for now. http://www.alsa-
project.org/main/index.php/Use_Case_Manager doesn't give much info. Andrey, Leon, any idea?
I would be happy to help, but I know nothing about UCM.
--
Leon Romanovsky | Independent Linux Consultant
www.leon.nu | [email protected]
At Fri, 10 May 2013 14:51:05 +0200,
Quoted 10 lines · Marcin Juszkiewicz
When I bought Samsung ARM Chromebook few months ago I had no idea about UCM profiles and burnt speakers (left is dead, right is resting). Then I learnt, took ones from ChromeOS and added them into Ubuntu so other users will be a bit more safe.
Later I had a discussion with some Debian, Ubuntu, Fedora developers about how to solve such problems and how to keep UCM profiles shared between distributions.
Quoted 5 lines
Liam Girdwood pointed me to not used git tree at ALSA Project server and finally I reminded myself about it.
The idea is to collect UCM profiles, keep them in one place and create alsa-ucm package in each distribution.
Would it make sense to put into alsa-lib.git? Since UCM itself was already integrated into alsa-lib and there are already tons of card-based config files in alsa-lib/src/conf/*, these also fit to a similar directory there, I think.
They could be in a separate repo, but UCM config is coupled with UCM code, so we may keep in the single repo.
thanks,
Takashi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 14 lines · Jordi Mallach
El dv 10 de 05 de 2013 a les 15:17 +0200, en/na Takashi Iwai va escriure:
Quoted 12 lines
At Fri, 10 May 2013 14:51:05 +0200,
Quoted 10 lines · Marcin Juszkiewicz
When I bought Samsung ARM Chromebook few months ago I had no idea about UCM profiles and burnt speakers (left is dead, right is resting). Then I learnt, took ones from ChromeOS and added them into Ubuntu so other users will be a bit more safe.
Later I had a discussion with some Debian, Ubuntu, Fedora developers about how to solve such problems and how to keep UCM profiles shared between distributions.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Liam Girdwood pointed me to not used git tree at ALSA Project server and finally I reminded myself about it.
The idea is to collect UCM profiles, keep them in one place and create alsa-ucm package in each distribution.
Thanks Marcin! This part of the Debian←→Ubuntu delta was something I wanted to bring up with upstream after the wheezy release.
I'll echo that thought, many thanks Marcin !
Quoted 10 lines
Quoted 7 lines
Would it make sense to put into alsa-lib.git? Since UCM itself was already integrated into alsa-lib and there are already tons of card-based config files in alsa-lib/src/conf/*, these also fit to a similar directory there, I think.
They could be in a separate repo, but UCM config is coupled with UCM code, so we may keep in the single repo.
It makes sense to me, fwiw.
Agreed, the initial intention of the separate repo was to do frequent releases that would be likely out of sync alsa-lib. But I think combining is the best way forward now. Takashi, please feel free to remove the other repo (I think it's mostly empty anyway).
Liam
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Quoted 11 lines · Liam Girdwood
Quoted 4 lines · Jordi Mallach
Quoted 2 lines
They could be in a separate repo, but UCM config is coupled with UCM code, so we may keep in the single repo.
It makes sense to me, fwiw.
Agreed, the initial intention of the separate repo was to do frequent releases that would be likely out of sync alsa-lib. But I think combining is the best way forward now. Takashi, please feel free to remove the other repo (I think it's mostly empty anyway).
Definitely.
At Fri, 10 May 2013 22:00:06 +0100,
Quoted 7 lines · Mark Brown
Quoted 4 lines · Liam Girdwood
Quoted 2 lines · Jordi Mallach
Quoted 2 lines
They could be in a separate repo, but UCM config is coupled with UCM code, so we may keep in the single repo.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
It makes sense to me, fwiw.
Agreed, the initial intention of the separate repo was to do frequent releases that would be likely out of sync alsa-lib. But I think combining is the best way forward now. Takashi, please feel free to remove the other repo (I think it's mostly empty anyway).
Definitely.
Alright. I merged patches and put the stuff in src/conf/ucm/*. Please check alsa-lib git tree later whether it's OK.
thanks,
Takashi