On 12/19/2011 03:20 PM, Somebody in the thread at some point said:
On 12/19/2011 01:16 PM, Somebody in the thread at some point said:About Panda UCM, last week I noticed though that there is different wiring on input side between 4430 Panda (line in goes to analogue headset mic inputs on twl6040) and 4460 Panda (line in goes to FM analogue inputs). So this week I plan to make changes to the onboard audio driver to change its alsa card name based on what board it's on, with a view to elaborating out the UCM directories so the recording case is handled correctly depending on the board.That's my concern too. The first thing is we need directories under /usr/share/alsa/ucm with the same audio card names on both panda boards. The second thing is to have correct configurations for both boards. I don't have a 4460 board, Andy, can you help on giving the ucm configurations for it?Yes I'm hoping to sort it out. I'll give you the patches on UCM when they're done.
Okay thanks to Seb for sending the udev and 4430 changes, adapted a bit by me, along with my changes to ucm settings and a kernel patch to create a different audio device name for PandaES ('PandaES'), pulse is kind of working mostly here.
The attached files need going into the rootfs at: /lib/udev/rules.d/90-pulseaudio-omap.rules /usr/share/pulseaudio/alsa-mixer/profile-sets/4430.conf and unpack the tarball in /usr/share/alsa/ucm.It's able to dynamically switch between audio outputs here using pulse interface, but it crashes (recoverably) sometimes doing that.
I wasn't able to convince the pulse UI to do anything with the 'record' UCM setting, although I adapted it for Panda / PandaES routing.
The matching kernel patch you need is now in tilt-3.1 and tilt-linux-linaro-3.1 which Linaro packages.
-Andy -- Andy Green | TI Landing Team Leader Linaro.org │ Open source software for ARM SoCs | Follow Linarohttp://facebook.com/pages/Linaro/155974581091106 - http://twitter.com/#!/linaroorg - http://linaro.org/linaro-blog
# do not edit this file, it will be overwritten on update # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. SUBSYSTEM!="sound", GOTO="pulseaudio_end" ACTION!="change", GOTO="pulseaudio_end" KERNEL!="card*", GOTO="pulseaudio_end" # WA: Specific config for TI board - waiting for driver to be fixed and support pulse probing properly ATTRS{id}=="SDP4430", ENV{PULSE_PROFILE_SET}="4430.conf" ATTRS{id}=="Panda", ENV{PULSE_PROFILE_SET}="4430.conf" ATTRS{id}=="PandaES", ENV{PULSE_PROFILE_SET}="4430.conf" LABEL="pulseaudio_end"
# This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # PulseAudio is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with PulseAudio; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ; TI based board generic static setup ; ; See default.conf for an explanation on the directives used here. [General] auto-profiles = no [Mapping default-mapping-output] description = Default headset testing TI 4430 based board device-strings = plughw:%f,0 channel-map = front-left,front-right direction = output [Mapping mapping-output-6] description = TI 4430 based - output 6 device-strings = plughw:%f,6 channel-map = front-left,front-right direction = output [Mapping mapping-output-8] description = TI 4430 based - output 8 device-strings = plughw:%f,8 channel-map = front-left,front-right direction = output [Mapping default-mapping-input] description = Default headset testing TI 4430 based board device-strings = plughw:%f,0 channel-map = front-left,front-right direction = input [Profile output:default-mapping-output+input:default-mapping-input] description = Default profile 0 output-mappings = default-mapping-output input-mappings = default-mapping-input priority = 50 skip-probe = yes [Profile output:mapping-output-6+input:default-mapping-input] description = profile ouput 6 output-mappings = mapping-output-6 input-mappings = default-mapping-input priority = 50 skip-probe = yes [Profile output:mapping-output-8+input:default-mapping-input] description = profile ouput 8 output-mappings = mapping-output-8 input-mappings = default-mapping-input priority = 50 skip-probe = yes
ucm.tar.gz
Description: GNU Zip compressed data
_______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev