Re: [pulseaudio-discuss] [PATCH] alsa-ucm: Make combination ports have lower priority

2013-07-26 Thread Feng Wei-B34248
Sounds reasonable. -Original Message- From: David Henningsson [mailto:david.hennings...@canonical.com] Sent: Thursday, July 25, 2013 11:47 PM To: pulseaudio-discuss@lists.freedesktop.org Cc: Feng Wei-B34248; David Henningsson Subject: [PATCH] alsa-ucm: Make combination ports have lower

Re: [pulseaudio-discuss] [RFC PATCH 0/4] PA2.0 UCM integration

2012-07-16 Thread Feng Wei
2012/7/17 Arun Raghavan arun.ragha...@collabora.co.uk: On Fri, 2012-05-18 at 18:06 +0800, feng@linaro.org wrote: From: Feng Wei feng@linaro.org Here are patches for UCM integration, most features of pulseaudio are supported by alsa UCM configurations now. Thanks a lot for your work

Re: [pulseaudio-discuss] [alsa-devel] Using UCM with PulseAudio

2012-06-21 Thread Feng Wei
2012/6/20 Arun Raghavan arun.ragha...@collabora.co.uk: Liam, Thanks for clearing things up. On Fri, 2012-06-15 at 18:08 +0100, Liam Girdwood wrote: [...] The first problem is mutual exclusivity of verbs. From what I can understand, verbs are intended to be mutually exclusive -- if you

Re: [pulseaudio-discuss] [RFC PATCH 0/4] PA2.0 UCM integration

2012-06-20 Thread Feng Wei
. + +  Copyright 2011 Wolfson Microelectronics PLC +  Author Margarita Olaya m...@slimlogic.co.uk +  Copyright 2012 Feng Wei feng@linaro.org, Linaro + +  PulseAudio is free software; you can redistribute it and/or modify +  it under the terms of the GNU Lesser General Public License as published

Re: [pulseaudio-discuss] Pulseaudio on pandaboard problem re-visited..

2012-05-14 Thread Feng Wei
2012/5/15 Shawn Ferris shawn.fer...@gmail.com: On Fri, May 4, 2012 at 8:03 AM, Arun Raghavan arun.ragha...@collabora.co.uk wrote: On Fri, 2012-05-04 at 07:44 -0600, Shawn Ferris wrote: Seems your module was missing some arguments. (   0.497|   0.001) I: [pulseaudio] module.c: Loaded

Re: [pulseaudio-discuss] Pulseaudio on pandaboard problem re-visited..

2012-05-04 Thread Feng Wei
2012/5/4 Shawn Ferris shawn.fer...@gmail.com: Could you please provide the pa log to me? For your kernel, I think you should use previous revision of ucm configs at http://bazaar.launchpad.net/~b34248/+junk/alsa-lib-1.0.25/files/95/debian/ucm/. Copy Panda and PandaES to your

Re: [pulseaudio-discuss] Pulseaudio on pandaboard problem re-visited..

2012-05-02 Thread Feng Wei
2012/5/2 Shawn Ferris shawn.fer...@gmail.com: Linaro has its own repository to maintain patched packages, including UCM, I think you could get alsa-lib and pulseaudio packages there to make UCM work better. Thank's Wei (I hope that's your first name.. I have a friend named Wei, so I'm

Re: [pulseaudio-discuss] Pulseaudio on pandaboard problem re-visited..

2012-05-01 Thread Feng Wei
Shawn, Linaro has its own repository to maintain patched packages, including UCM, I think you could get alsa-lib and pulseaudio packages there to make UCM work better. See https://launchpad.net/~linaro-maintainers/+archive/overlay And ucm patches on ubuntu needed for alsa-lib and pulseaudio are

[pulseaudio-discuss] [PATCH] Fix unused buffer size to avoid xrun

2012-04-05 Thread Feng Wei
When set latency is less than period time, we will assgin working buffer less than a period size, which will cause unnecessary xrun and wrong message indicating alsa driver bug. Signed-off-by: Feng Wei feng@linaro.org --- src/modules/alsa/alsa-sink.c |6 +++--- src/modules/alsa/alsa

Re: [pulseaudio-discuss] [PATCH] Fix unused buffer size to avoid xrun

2012-04-05 Thread Feng Wei
David, I'd met xrun on some embedded platform, which will only report hw_ptr at period boundary. Maybe it shouldn't use tsched, I'm not sure. Sorry for inconvenience. 2012/4/5 David Henningsson david.hennings...@canonical.com: On 04/05/2012 10:22 AM, Feng Wei wrote: When set latency is less

Re: [pulseaudio-discuss] [PATCH] Fix unused buffer size to avoid xrun

2012-04-05 Thread Feng Wei
2012/4/5 David Henningsson david.hennings...@canonical.com: On 04/05/2012 10:59 AM, Feng Wei wrote: David, I'd met xrun on some embedded platform, which will only report hw_ptr at period boundary. Maybe it shouldn't use tsched, I'm not sure. Sorry for inconvenience. Actually it does raise

[pulseaudio-discuss] [RFC PATCH v2 0/3] UCM integration

2012-03-15 Thread Feng Wei
Here are patches for UCM integration, most features of pulseaudio are supported by UCM configurations now except jack detection. Feng Wei (3): Integrate UCM basic functions into alsa card module Add use_ucm to udev detect module Add UCM modifier functions into alsa card module src

[pulseaudio-discuss] [RFC PATCH v2 2/3] Add use_ucm to udev detect module

2012-03-15 Thread Feng Wei
Make UCM branches available in alsa module when alsa card detected. --- src/modules/module-udev-detect.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c index 1192194..ccc3374 100644 ---

[pulseaudio-discuss] [RFC PATCH v2 3/3] Add UCM modifier functions into alsa card module

2012-03-15 Thread Feng Wei
In UCM basic functions, we only assign intended roles from modifier to sink/source, but we don't have a chance to set the ucm modifiers. Here we amend the functions so that when special roled stream start or stop or moved, we have the following results: 1. stream will be routed to sink/source

Re: [pulseaudio-discuss] [PATCH] UCM patches on ubuntu 1:1.1-0ubuntu4

2012-02-26 Thread Feng Wei
2012/2/24 Mark Brown broo...@opensource.wolfsonmicro.com: On Fri, Feb 24, 2012 at 03:39:44PM +0800, Feng Wei wrote: 2012/2/24 David Henningsson david.hennings...@canonical.com:  * The competing implementation problem: We've had multiple implementations posted to the PulseAudio mailinglist

Re: [pulseaudio-discuss] [PATCH] UCM patches on ubuntu 1:1.1-0ubuntu4

2012-02-26 Thread Feng Wei
2012/2/25 Arun Raghavan arun.ragha...@collabora.co.uk: On Fri, 2012-02-24 at 15:39 +0800, Feng Wei wrote: Hi David, I'm appreciated for your comments. UCM really has a long way to go. IMO it's not that bad. While I haven't gone over the code at all, I've used it on an OMAP4 and it does work

Re: [pulseaudio-discuss] [PATCH] UCM patches on ubuntu 1:1.1-0ubuntu4

2012-02-23 Thread Feng Wei
Hi David, I'm appreciated for your comments. UCM really has a long way to go. 2012/2/24 David Henningsson david.hennings...@canonical.com: On 02/21/2012 04:34 AM, Feng Wei wrote: Hi Arun, I'm not clear what should I do to upstream patches. I tested them on ubuntu, so that I must follow what

Re: [pulseaudio-discuss] [PATCH] UCM patches on ubuntu 1:1.1-0ubuntu4

2012-02-20 Thread Feng Wei
them to be merged in ubuntu branch. 2012/2/21 Arun Raghavan arun.ragha...@collabora.co.uk: Hi, On Mon, 2012-02-20 at 15:34 +0800, Feng Wei wrote: Somewhat verified on Panda board and i.mx53 board. Do you mean for these to be merged, or is it an RFC? Also, the best way to get these actually

[pulseaudio-discuss] [PATCH] Support jack detection in UCM on ubuntu 1:1.1-0ubuntu4

2012-02-19 Thread Feng Wei
Still can't work well on embedded devices without driver support. Index: pulseaudio-1.1/src/modules/alsa/alsa-jack-inputdev.h === --- pulseaudio-1.1.orig/src/modules/alsa/alsa-jack-inputdev.h 2012-02-16 17:49:05.184505051 +0800 +++

Re: [pulseaudio-discuss] What's the relation ship between mapping prio and sink prio

2012-01-30 Thread Feng Wei
2012/1/30 Tanu Kaskinen ta...@iki.fi: On Mon, 2012-01-30 at 11:08 +0800, Feng Wei wrote: I just want something to be default sink out of the box before any default sink is specified. Would set-default-sink foo in /etc/pulse/default.pa be a suitable solution for you? I'm not sure because

Re: [pulseaudio-discuss] What's the relation ship between mapping prio and sink prio

2012-01-30 Thread Feng Wei
2012/1/31 Tanu Kaskinen ta...@iki.fi: On Tue, 2012-01-31 at 09:43 +0800, Feng Wei wrote: 2012/1/30 Tanu Kaskinen ta...@iki.fi: On Mon, 2012-01-30 at 11:08 +0800, Feng Wei wrote: I just want something to be default sink out of the box before any default sink is specified. Would set

Re: [pulseaudio-discuss] What's the relation ship between mapping prio and sink prio

2012-01-29 Thread Feng Wei
2012/1/28 Tanu Kaskinen ta...@iki.fi: On Thu, 2012-01-05 at 10:01 +0800, Feng Wei wrote: Hi Colin, Sorry for not making the question clearly. In alsa module, we parsed out alsa mapping information from profile-sets and mixer paths, and create sink from mapping, so I thought there should

Re: [pulseaudio-discuss] What's the relation ship between mapping prio and sink prio

2012-01-04 Thread Feng Wei
. 2012/1/4 Colin Guthrie gm...@colin.guthr.ie: 'Twas brillig, and Feng Wei at 04/01/12 10:08 did gyre and gimble: Hi, In alsa module, I can't find a place to use alsa mapping priority. Should it represent sink priority so that we can statically appoint default sink when multiple cards/sinks

Re: [pulseaudio-discuss] Use Pulseaudio with GStreamer

2011-12-20 Thread Feng Wei
2011/12/21 Jeffrey Barish jeff_bar...@earthlink.net: When I play a sound file using ogg123, the sound comes out the USB DAC, as expected. When I play a sound file using my application (which uses GStreamer playbin2), the sound comes out the internal DAC. I found directions to run

Re: [pulseaudio-discuss] [RFC Patch 0/3] Support UCM in Pulseaudio

2011-11-16 Thread Feng Wei
Not yet, will try it in next days. 2011/11/16 Girdwood, Liam l...@ti.com: 2011/11/16 Feng Wei feng@linaro.org: Hi, These patches are for supporting UCM in pulseaudio according to the conclusion of concepts mapping from ELC-E, and based on Margarita's work. Not fully verified on latest

[pulseaudio-discuss] [RFC Patch 4/4] Support UCM in Pulseaudio

2011-11-16 Thread Feng Wei
I'm sorry getting one patch mssing. To test the UCM patch in PA, we need patch to build and enable it. diff --git a/src/Makefile.am b/src/Makefile.am index e3af12f..6644858 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1549,6 +1549,7 @@ module_coreaudio_device_la_LIBADD =

[pulseaudio-discuss] [RFC Patch 1/3] Support UCM in Pulseaudio

2011-11-15 Thread Feng Wei
ucm utils for pulseaudio diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c new file mode 100644 index 000..692ae49 --- /dev/null +++ b/src/modules/alsa/alsa-ucm.c @@ -0,0 +1,908 @@ +/*** + This file is part of PulseAudio. + + Copyright 2011 Wolfson Microelectronics PLC +

[pulseaudio-discuss] [RFC Patch 2/3] Support UCM in Pulseaudio

2011-11-15 Thread Feng Wei
add port for ucm diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index b6cf085..2cd37a9 100644 --- a/src/modules/alsa/alsa-mixer.c +++ b/src/modules/alsa/alsa-mixer.c @@ -3168,6 +3168,8 @@ static void mapping_free(pa_alsa_mapping *m) {

Re: [pulseaudio-discuss] Audio routing policy

2011-10-17 Thread Feng Wei
Can we make such problem simple enough to only use profile to handle policy? We can assume: 1. All needed profile are defined by ucm verb. 2. All sinks and sources in certain profile are defined by ucm devices. 3. Each profile provide several sinks and sources, if pa client don't specify the

Re: [pulseaudio-discuss] alsa ucm in pulseaudio

2011-10-14 Thread Feng Wei
2011/10/14 David Henningsson david.hennings...@canonical.com: On 10/14/2011 11:42 AM, Feng Wei wrote: 2011/10/14 David Henningssondavid.hennings...@canonical.com: On 10/14/2011 09:39 AM, Feng Wei wrote: 2011/10/14 David Henningssondavid.hennings...@canonical.com: On 10/14/2011 04:47 AM

[pulseaudio-discuss] alsa ucm in pulseaudio

2011-10-13 Thread Feng Wei
Hi Liam, Mark, Colin, and all, I study the codes in pulseaudio and alsa ucm patch recently, and create a page of my study result. I appreciate your feedback. The page is at https://wiki.linaro.org/WorkingGroups/Middleware/Multimedia/Specs//AudioIntegration/UCMPulseAudio/Analyzation. Also