[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Mediastreamer could not attach mixer to card

From: Denny Wright
Subject: Re: [Linphone-developers] Mediastreamer could not attach mixer to card
Date: Fri, 19 Feb 2010 14:46:05 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100111 Thunderbird/3.0.1

Hi Jehan,

This was helpful. I had been using audio_stream_start to initiate the stream but it doesn't insert the MSVolume filters. I had to use audio_stream_new and audio_stream_start_now so I could do audio_stream_enable_gain_control() in between (as in linphone_core_start_media_streams).

Is there a good document on the audio_stream API? It appears to be missing functions to get/set the speaker volume although it does set the mic volume. I'm trying to figure out the scale (0-100 or 0.0-1.0 or is it per the sound card).


On 2/17/2010 7:20 AM, jehan.monnier wrote:
Hi Denny,

Linphone make use of  MSVolume filters to control both capture and playback volume.

Hereunder  typical Linphone filter graphs

02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSAndSoundRead:0xaf488,0-->MSVolume:0x1fc0d0,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSVolume:0x1fc0d0,0-->MSGsmEnc:0xaf780,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSGsmEnc:0xaf780,0-->MSRtpSend:0x204878,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSRtpRecv:0x1f1e58,0-->MSGsmDec:0x1fc080,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSGsmDec:0x1fc080,0-->MSDtmfGen:0x1fbb30,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSDtmfGen:0x1fbb30,0-->MSEqualizer:0x1fce70,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSEqualizer:0x1fce70,0-->MSVolume:0x1fc1b0,0
02-17 13:54:02.797 I/mediastreamer(13041): ms_filter_link: MSVolume:0x1fc1b0,0-->MSAndSoundWrite:0xaf710,0



Le 12 févr. 10 à 19:12, Denny Wright a écrit :

Hi Simon,
Thanks for the input. That may explain my issue. I'm using mediastreamer2 directly (with no linphone) and ms_snd_card_set_level() does not adjust the volume.

How then does linphone adjust the playback and capture volume? Do I have to use ALSA directly?


On 2/11/2010 2:17 PM, Simon Morlat wrote:
I have also these errors with my notebook, and it's not preventing
linphone to work at all.

ALSA lib conf.c:4600:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:902:(snd_ctl_open_noupdate) Invalid CTL default:0
ortp-warning-Could not attach mixer to card: Invalid argument
The first two are errors printed by libasound, and probably only it
knows what it means. They appeared after an upgrade of libasound (about
one year ago), without any change in linphone.
Alsa configuration is something very obscure to me. 

The warning indicates that the volume control mediastreamer2 can do on
the sound card won't work, however it is not used in linphone.


Le mercredi 10 février 2010 à 11:20 -0700, Denny Wright a écrit :
Hi all,

I get the following when ms_init() runs. I found a reference to this
error in the archive and it was resolved by editing alsa.conf (or
perhaps /etc/asound.conf?)

Unfortunately, I haven't figured out what the edits should be. Does
anyone have any suggestions?


ortp-message-Registering all filters...
ortp-message-Registering all soundcard handlers
ortp-message-Card ALSA: default added
ALSA lib conf.c:4600:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:902:(snd_ctl_open_noupdate) Invalid CTL default:0
ortp-warning-Could not attach mixer to card: Invalid argument
ortp-message-Card ALSA: omap3530lv_som added
ortp-message-Card OSS: /dev/dsp added
ortp-message-Registering all webcam handlers
ortp-message-Webcam StaticImage: Static picture added
ortp-message-Loading plugins
ortp-message-Cannot open directory /usr/lib/mediastreamer/plugins: No
such file
or directory
ortp-message-ms_init() done

I have an OMAP ARM board with a TI TPS65950 (i.e. TWL4030) and we're
only using a portion of the audio channels. Here's some of my ALSA
config (the mixer works fine with ALSA). What other information can I

# cat /proc/asound/cards
 0 [omap3530lvsom  ]: twl4030 - omap3530lv_som
                      omap3530lv_som (twl4030)
# aplay -L
    Default Audio Device
    Discard all samples (playback) or generate zero samples (capture)
# amixer controls
numid=4,iface=MIXER,name='Master Playback Switch'
numid=6,iface=MIXER,name='Analog Capture Volume'
numid=3,iface=MIXER,name='DAC2 Analog Playback Volume'
numid=2,iface=MIXER,name='DAC2 Digital Coarse Playback Volume'
numid=1,iface=MIXER,name='DAC2 Digital Fine Playback Volume'
numid=5,iface=MIXER,name='TX2 Digital Capture Volume'

Linphone-developers mailing list

Linphone-developers mailing list

Jehan Monnier
Belledonne Communications SARL
25 Av de Constantine 
38100 Grenoble
tel:+33 9 52 63 65 05

reply via email to

[Prev in Thread] Current Thread [Next in Thread]