alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* ALSA UCM
@ 2010-11-03 20:38 abraham duenas
  2010-11-04 10:09 ` Liam Girdwood
  0 siblings, 1 reply; 18+ messages in thread
From: abraham duenas @ 2010-11-03 20:38 UTC (permalink / raw)
  To: alsa-devel; +Cc: broonie, lrg

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

Hello,

I recently cloned:
git clone git://git.alsa-project.org/alsa-lib.git alsa-lib
git clone git://git.alsa-project.org/alsa-utils.git alsa-utils
and switched to the "ucm" branch to give it try. I have a panda board
(pandaboard.org it is just a TI OMAP4 platform).

I created some configuration files for my card. My conf file is
'SDP4430.conf' and my verb is on 'hifi'.
I came with a simple program to set my verb and configure it for a
simple device. I'm calling this sequence:
1. open it.... snd_use_case_mgr_open(&uc_mgr,"SDP4430")
2. reset it ....snd_use_case_mgr_reset(uc_mgr)
3. query for my verb.... snd_use_case_get_list(uc_mgr,"_verbs",&mylist)
4. set my verb ... snd_use_case_set(uc_mgr,"_verb",*mylist)
5. set my created device... snd_use_case_set(uc_mgr,"_enadev","Headset.0")
6. close it... snd_use_case_mgr_close(uc_mgr)

Seems to work ok (without any errors) but I can't see any of my amixer
controls set/changed accordingly to my verb/device.
Is this a right sequence to follow? may be my files are not well written?

Thanks for your help!
Abraham

[-- Attachment #2: hifi --]
[-- Type: application/octet-stream, Size: 1213 bytes --]

# Use case Configuration for TI SDP4430 HiFi Music
# By Liam Girdwood <lrg@slimlogic.co.uk>

SectionVerb {
  	EnableSequence [
		cset "name='DL1 Media Playback Volume',index=1 90"
		cset "name-'DL2 Media Playback Volume',index=1 90"
	]

	DisableSequence [
		cset "name='DL1 Media Playback Volume',index=1 0"
		cset "name='DL2 Media Playback Volume',index=1 0"
	]

	# QoS and ALSA PCMs
	Value {
	      TQ HiFi
	      CapturePCM "hw:0"
	      PlaybackPCM "hw:0"
	}
}

SectionDevice."Headset".0 {
	Comment "SDP4430 3.5mm Headset"
	
	EnableSequence [
		cset "name='DL1 Mixer Multimedia',index=0 0"
		cset "name='Sidetone Mixer Playback',index=1 1"
		cset "name='HS Right Playback',index=1 0"
		cset "name='HS Left Playback',index=1 0"
		cset "name='MUX_UL11',index=1 9"
		cset "name='MUX_UL10',index=1 10"
	]

	DisableSequence [
		cset "name='DL1 Mixer Multimedia',index=1 0"
		cset "name='MUX_UL11',index=1 0"
		cset "name='MUX_UL10',index=1 0"
		cset "name='HS Right Playback',index=1 0"
		cset "name='HS Left Playback',index=1 0"
		cset "name='Sidetone Mixer Playback',index=1 0"
	]

	Value {
	      MasterPlaybackVolume "name='Headset Playback Volume' 1"
	      MasterCaptureVolume "name='Capture Volume' 1"
	}
}

[-- Attachment #3: SDP4430.conf --]
[-- Type: application/octet-stream, Size: 2724 bytes --]

# UCM configuration for SDP4430
SectionUseCase."HiFi" {
 		File "hifi"
 		Comment "Play and record HiFi quality Music."
}

SectionDefaults [
		cset "name='Capture Preamplifier Volume',index=2 0,0"
		exec "echo Im setting defaults"
		cset "name='Capture Volume',index=2 0,0"
		cset "name='Aux FM Volume',index=2 0,0"
		cset "name='Headset Playback Volume',index=2 0,0"
		cset "name='Handsfree Playback Volume',index=2 0,0"
		cset "name='Earphone Playback Volume',index=1 0"
		cset "name='Earphone Driver Switch',index=1 0"
		cset "name='HS Right Playback',index=1 0"
		cset "name='HS Left Playback',index=1 0"
		cset "name='HF Right Playback',index=1 0"
		cset "name='HF Left Playback',index=1 0"
		cset "name='Analog Right Capture Route',index=1 3"
		cset "name='Analog Left Capture Route',index=1 3"
		cset "name='DL1 Media Playback Volume',index=1 0"
		cset "name='DL1 Tones Playback Volume',index=1 0"
		cset "name='DL1 Voice Playback Volume',index=1 0"
		cset "name='DL1 Capture Playback Volume',index=1 0"
		cset "name='DL2 Media Playback Volume',index=1 0"
		cset "name='DL2 Tones Playback Volume',index=1 0"
		cset "name='DL2 Voice Playback Volume',index=1 0"
		cset "name='DL2 Capture Playback Volume',index=1 0"
		cset "name='MM_EXT_UL Capture Switch',index=1 0"
		cset "name='MM_EXT_DL Playback Switch',index=1 0"
		cset "name='BT_VX_DL Playback Switch',index=1 0"
		cset "name='PDM_DL Playback Switch',index=1 0"
		cset "name='Sidetone Mixer Capture',index=1 0"
		cset "name='Sidetone Mixer Playback',index=1 0"
		cset "name='Capture Mixer Tones',index=1 0"
		cset "name='Capture Mixer Voice Playback',index=1 0"
		cset "name='Capture Mixer Voice Capture',index=1 0"
		cset "name='Capture Mixer Media Playback',index=1 0"
		cset "name='Voice Capture Mixer Tones Playback',index=1 0"
		cset "name='Voice Capture Mixer Media Playback',index=1 0"
		cset "name='Voice Capture Mixer Capture',index=1 0"
		cset "name='DL2 Mixer Tones',index=1 0"
		cset "name='DL2 Mixer Voice',index=1 0"
		cset "name='DL2 Mixer Capture',index=1 0"
		cset "name='DL2 Mixer Multimedia',index=1 0"
		cset "name='DL1 Mixer Tones',index=1 0"
		cset "name='DL1 Mixer Voice',index=1 0"
		cset "name='DL1 Mixer Capture',index=1 0"
		cset "name='DL1 Mixer Multimedia',index=1 0"
		cset "name='MUX_VX1',index=1 0"
		cset "name='MUX_VX0',index=1 0"
		cset "name='MUX_UL11',index=1 0"
		cset "name='MUX_UL10',index=1 0"
		cset "name='MUX_UL07',index=1 0"
		cset "name='MUX_UL06',index=1 0"
		cset "name='MUX_UL05',index=1 0"
		cset "name='MUX_UL04',index=1 0"
		cset "name='MUX_UL03',index=1 0"
		cset "name='MUX_UL02',index=1 0"
		cset "name='MUX_UL01',index=1 0"
		cset "name='MUX_UL00',index=1 0"
		cset "name='TWL6040 Power Mode',index=1 0"
]

[-- Attachment #4: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-11-12 17:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 20:38 ALSA UCM abraham duenas
2010-11-04 10:09 ` Liam Girdwood
2010-11-04 12:57   ` abraham duenas
2010-11-04 17:09     ` Liam Girdwood
2010-11-04 18:31       ` Jaroslav Kysela
2010-11-04 18:34       ` Jaroslav Kysela
2010-11-04 18:47         ` Liam Girdwood
2010-11-04 18:52           ` Jaroslav Kysela
2010-11-04 19:07             ` Liam Girdwood
2010-11-05 21:23               ` abraham duenas
2010-11-06 12:26                 ` Liam Girdwood
2010-11-09 16:54                   ` abraham duenas
2010-11-10 15:11                     ` Jaroslav Kysela
2010-11-12 15:41                       ` Liam Girdwood
2010-11-12 16:25                         ` Jaroslav Kysela
2010-11-12 16:42                           ` Liam Girdwood
2010-11-12 16:55                             ` Jaroslav Kysela
2010-11-12 17:28                               ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).