[pulseaudio-discuss] Re: [SOLVED] How to output audio through hdmi-stereo-1or other extra hdmi
Dear DavidI don't think you missed anything. :) Actually, it is a new chip for us. And I haven't check it into alsa. Anyway, I have done it.Thanks for your information.BR//Annie- Original Message -From:"David Henningsson" david.hennings...@canonical.com To: "GeneralPulseAudioDiscussion" pulseaudio-discuss@lists.freedesktop.org Cc:"刘晓丽" xiaoli_liu_an...@x263.netSent:Wed Jun 06 2012 23:25:37 GMT+0800 (China Standard Time)Subject: Re: [pulseaudio-discuss] [SOLVED] How to output audio through hdmi-stereo-1or other extra hdmiOn 06/06/2012 09:07 AM, 刘晓丽 wrote: Sovled! Just porting the coresponding hdmi settings from extra-hdmi.conf to default.conf. e.g segment "hdmi-stereo-extra2" I think quote is neccessary since the format is important.Hello Annie,Thanks for following up and telling us your solution - could you also post alsa-info for your computer? (See https://wiki.ubuntu.com/Audio/AlsaInfo if you don't know what alsa-info is.)I'm interesting in knowing what we missed - all cards with more than one HDMI output should have been using the extra-hdmi.conf by default.Thanks! - Original Message - From:"刘晓丽" ___ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
[pulseaudio-discuss] [PATCH] switch-on-connect: Don't move a stream already moving
When switching profiles, module-bluetooth starts to move all streams from the destroyed sink (resp. source) to the newly created sink (resp. source). At the same time, module-switch-on-connect detects that a new sink (resp. source) is created and tries to move all the streams to it. This crashes as follow: (gdb) bt 0 0xb7ee42f0 in sink_input_may_move_to_cb (i=0x80d9b48, dest=0x80dd3f8) at modules/module-loopback.c:641 1 0xb7d10627 in pa_sink_input_may_move_to (i=0x80d9b48, dest=0x80dd3f8) at pulsecore/sink-input.c:1426 2 0xb7d11c94 in pa_sink_input_move_to (i=0x80d9b48, dest=0x80dd3f8, save=false) at pulsecore/sink-input.c:1730 3 0xb7ec4f53 in sink_put_hook_callback (c=0x807be88, sink=0x80dd3f8, userdata=0x80abb70) at modules/module-switch-on-connect.c:93 4 0xb7ceda5e in pa_hook_fire (hook=0x807c010, data=0x80dd3f8) at pulsecore/hook-list.c:106 5 0xb7d16863 in pa_sink_put (s=0x80dd3f8) at pulsecore/sink.c:651 6 0xb7d7b26b in start_thread (u=0x80a68b0) at modules/bluetooth/module-bluetooth-device.c:2571 7 0xb7d7ba8a in card_set_profile (c=0x80a9530, new_profile=0x80a2b98) at modules/bluetooth/module-bluetooth-device.c:2680 This logic is already implemented in module-device-manager. --- src/modules/module-switch-on-connect.c |8 1 file changed, 8 insertions(+) diff --git a/src/modules/module-switch-on-connect.c b/src/modules/module-switch-on-connect.c index efe1270..d0bdf9e 100644 --- a/src/modules/module-switch-on-connect.c +++ b/src/modules/module-switch-on-connect.c @@ -87,6 +87,10 @@ static pa_hook_result_t sink_put_hook_callback(pa_core *c, pa_sink *sink, void* } PA_IDXSET_FOREACH(i, def-inputs, idx) { +/* Skip this if it is already in the process of being moved anyway */ +if (!i-sink) +continue; + if (i-save_sink || !PA_SINK_INPUT_IS_LINKED(i-state)) continue; @@ -140,6 +144,10 @@ static pa_hook_result_t source_put_hook_callback(pa_core *c, pa_source *source, } PA_IDXSET_FOREACH(o, def-outputs, idx) { +/* Skip this if it is already in the process of being moved anyway */ +if (!o-source) +continue; + if (o-save_source || !PA_SOURCE_OUTPUT_IS_LINKED(o-state)) continue; -- 1.7.9.5 ___ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] [alsa-devel] Internal Mics and Speakers not visible in PulseAudio
On 06/07/2012 04:59 AM, Raymond Yau wrote: David Henningsson david.hennings...@canonical.com mailto:david.hennings...@canonical.com 於 2012年6月1日星期五寫道: On 06/01/2012 04:54 AM, Raymond Yau wrote: 2012/5/30 David Henningssondavid.hennings...@canonical.com mailto:david.hennings...@canonical.com: On 05/30/2012 03:04 PM, Raymond Yau wrote: I am afraid this does not work with desktop computer which has front mic , internal mic, Line in ,CD (or stereo mix with those via hda codecs) With ubuntu 12.04 and unity , if I enable hda jack detect with my ad198x on my desktop, sound preference does not allow me to select front mic since I am still using ac97 front panel (with no jack detect circuit) For those user with hda front audio panel, When the rear mic is unplugged, pulse audio change the input to another sound card if there is no plugged input jacks as pa don't regard cd or stereo mic as valid port of the input source. When the rear mic is plugged before pulaseaudio start and it is the first port of the input in the sound setting ,it change to the webcam mic(second port) after the rear mic is unplugged. So it won't autoselect when The user plugged the rear mic again. He have to select the rear mic in sound setting, the rear mic is the last port in sound setting.it http://setting.it will change to the mic1of another sound card(last port) I think we have to live with these kinds of issues in PulseAudio until Colin has completed his priority list implementation. There are difference for the system settings/sound in unity and gnome In gnome session, the system settings/sound list the three hardcoded ports (front mic, line and rear mic) instead of all the items in the Input source / Capture Source controls ( There is no CD in HDA, and no CD , stereo mix, aux, phone for my other sound cards with ac97 codec) Is there any way to add back Stereo Mix to pulseaudio 's port ? Yes. See: http://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles However if you have additional questions about how to write PulseAudio profiles and paths I might not have the time to help you out with that, hopefully you will be able to sort that out by yourself. I have follows colin's tutorial compiling and running pulse audio from git. You don't need to recompile pulseaudio to change configuration files, they are all in /usr/share/pulseaudio/alsa-mixer Do i need to build the unity/gnome sound setting and what are the name of the system setting sound in gnome and unity? Although there is no aux in sound setting, select analog input in sound setting will select the aux Why changing the input port from rear mic to front mic also change the value of rear mic boost and front mic boost at the same time ? This forbid multi streaming capture using two mic. You can change this by changing the configuration files. In unity session, the system settings/sound only list the plugged jacks. I think the usage of jack detect to select input source automatically is broken for for those motherboards which have three audio jacks in rear panel and retask those pink and blue jacks for surround51 output. The module-switch-on-available-port should check whether Channel mode' is 6 and exclude the result those jack detect of rear mic and line in since they have been retasked for output Hmm. That would lead to quite hairy code in PulseAudio, I'm afraid...and I don't think it's the right way to solve the problem either. I think we could go about this in different ways. 1) The easiest way is to say that if you're changing Channel mode manually in alsamixer, you're on your own. After all, the normal/newbie end user would not know about alsamixer at all, so if you're capable of changing things in alsamixer you're assumed to be capable of configuring PulseAudio's profiles (using the link above) to match that as well. 2) We could make a policy decision to remove the code that retasks the jacks, and direct people to hda-jack-retask if they want to do that. That would mean simpler code for everyone - however, with the recent addition of multi-IO in the Realtek driver (for example), things doesn't seem to head that way... 3) We could add both Line Out Surround Jack and Rear Mic Jack. The Rear Mic Jack would always return present=no when you're in 6-channel surround retask mode, and Line Out Surround Jack would always return present=no when you're in the normal mode. It seem that is not possible to implement 3) in current implementation in hda-jack.c But everything is possible with the right patches :-) I prefer an module parameter of hda for disable the creation of jack detect control since this force pa to fallback like the other sound cards which have no jack detection Why don't you just remove the jack detection from PulseAudio's configuration files instead? The behaviour of desktop users are different from notebook
Re: [pulseaudio-discuss] [PATCH 1/2] add log category
diff --git a/src/daemon/caps.c b/src/daemon/caps.c index 3759388..49a0690 100644 --- a/src/daemon/caps.c +++ b/src/daemon/caps.c @@ -20,6 +20,8 @@ USA. ***/ +#define PA_LOG_CATEGORY_DEFAULT daemon + The above #define is duplicated below in various files. Will it be better to have it #define'ed in a header file and inclued that wherever required ? [deng] Yes, I'll make damon a macro in log.h and then use something similar to the below: #DEFINE PA_LOG_CATEGORY_DEFAULT PA_LOG_CATEGORY_DAEMON See previous comment, applies to above #define as well. Please check all such occurrences below. [deng] About the granularity of the category, I'm afraid I'm still in the first stage which is to make it as simple as possible. e.g. bluetooth module has different c files, and in the current implementation I make different files into different categories, but yes, we can make it one big category. We just need to reach a consensus on this one. ___ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss