From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - liboss 0001228]: Skype Does not work with aoss
Date: Fri, 9 Jun 2006 03:28:23 +0200 [thread overview]
Message-ID: <7138c8383042fab76dcb092b62636a06@bugtrack.alsa-project.org> (raw)
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1228>
======================================================================
Reported By: hil
Assigned To:
======================================================================
Project: ALSA - liboss
Issue ID: 1228
Category:
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 07-03-2005 09:09 CEST
Last Modified: 06-09-2006 03:28 CEST
======================================================================
Summary: Skype Does not work with aoss
Description:
I downloaded alsa-oss-1.0.9rc2 and install by
# ./configure --with-aoss=yes && make && make install
as root. Virtually every program works except skype
(http://www.skype.com/) version 1.1.0.13_API. I downloaded the Fedora
version of skype from the skype official website. Skype only uses
/dev/dsp. I guess skype uses /dev/dsp as microphone input as well. I could
not hear anything and the microphone did not work as well if I run skype
like aoss /usr/bin/skype. If I run skype without aoss, then skype works
just fine.
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001224 artsd-like style
======================================================================
----------------------------------------------------------------------
pzad - 06-08-06 17:30
----------------------------------------------------------------------
Look at SNDCTL_DSP_CHANNELS in OSS API reference.
There is:
The returned value may be different than the one requested. The
application must check the returned value and re-adjust it's operation
based on that information.
Skype wants mono, but from ALSA gets stereo. If I look at OSS API
reference, it is skype fault (it doesn't check return value).
----------------------------------------------------------------------
Raymond - 06-09-06 03:28
----------------------------------------------------------------------
It depend on aoss open which pcm device and the sound card
1) hw
2) plughw
3) default
4) ALSA_OSS_PCM_DEVICE
The "type plug" allow mono/stereo conversion, but it also changed the
values return by snd_pcm_hw_params_get_xxx_min() and
snd_pcm_hw_params_get_xxx_max()
#include <alsa/asoundlib.h>
#include <stdio.h>
char *device_name[3]={"hw:0","plughw:0","default"};
int main(int argc, char **argv)
{
snd_pcm_t *pcm;
snd_pcm_info_t *pcm_info;
snd_pcm_hw_params_t *hw_params;
snd_pcm_format_t format;
char device[16];
int err,i;
int dir,sub;
int channels,chn_min,chn_max;
printf("ALSA %s\n",snd_asoundlib_version());
for (i=0; i<3; i++) {
strcpy(device,device_name[i]);
for (dir=SND_PCM_STREAM_PLAYBACK; dir<= SND_PCM_STREAM_CAPTURE;
dir++) {
err = snd_pcm_open(&pcm, device, dir,SND_PCM_NONBLOCK);
if ( err < 0 ) {
printf(" open %s fail : %s\n",device,snd_strerror(err));
}
else {
snd_pcm_info_alloca(&pcm_info);
err = snd_pcm_info(pcm, pcm_info);
if ( err < 0 ) {
printf(" pcm_info : %s\n",snd_strerror(err));
};
printf("%s %s %s\n",device,snd_pcm_info_get_name(pcm_info),dir ==
SND_PCM_STREAM_PLAYBACK ? "Playback" : "Capture");
snd_pcm_hw_params_malloc(&hw_params);
err = snd_pcm_hw_params_any(pcm, hw_params);
if ( err < 0 ) {
printf("hw_params_any error %s\n",snd_strerror(err));
} else {
err = snd_pcm_hw_params_get_channels_min(hw_params,
&chn_min);
printf("%s channel min=%d\n",device,chn_min);
err = snd_pcm_hw_params_get_channels_max(hw_params, &chn_max);
printf("%s channel max=%d\n",device,chn_max);
for (channels=chn_min; channels<=chn_max; channels++) {
if ( snd_pcm_hw_params_test_channels(pcm,hw_params,channels) == 0 )
printf(" channel : %d\n",channels);
};
};
snd_pcm_close(pcm);
};
};
};
}
Issue History
Date Modified Username Field Change
======================================================================
07-03-05 09:09 hil New Issue
08-09-05 15:33 rapand Note Added: 0005732
08-10-05 00:49 rlrevell Relationship added duplicate of 0001224
08-10-05 00:50 rlrevell Note Added: 0005740
12-31-05 00:19 rlrevell Note Added: 0007315
01-02-06 18:54 rlrevell Relationship deleted duplicate of 0001224
01-02-06 18:55 rlrevell Relationship added related to 0001224
01-02-06 18:56 rlrevell Note Added: 0007375
01-05-06 21:36 Hetfield Note Added: 0007479
01-05-06 21:40 rlrevell Note Added: 0007480
01-05-06 21:42 rlrevell Note Added: 0007481
01-05-06 22:01 Hetfield Note Added: 0007482
01-28-06 05:34 nono31 Note Added: 0007824
01-28-06 05:35 nono31 Issue Monitored: nono31
01-28-06 05:38 rlrevell Note Added: 0007825
01-28-06 06:11 nono31 Note Added: 0007826
01-28-06 06:12 nono31 File Added: strace_aoss_kiax.bz2
01-28-06 06:13 nono31 Note Added: 0007827
03-22-06 00:28 rlrevell Note Added: 0008761
03-22-06 10:02 Hetfield Note Added: 0008849
04-01-06 10:55 Hetfield Note Added: 0009054
06-08-06 04:01 Raymond Note Added: 0010107
06-08-06 17:30 pzad Note Added: 0010114
06-09-06 03:28 Raymond Note Added: 0010125
======================================================================
next reply other threads:[~2006-06-09 1:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 1:28 bugtrack [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-12 16:02 [ALSA - liboss 0001228]: Skype Does not work with aoss bugtrack
2006-07-12 15:52 bugtrack
2006-06-08 15:30 bugtrack
2006-06-08 2:01 bugtrack
2006-04-01 8:55 bugtrack
2006-03-22 9:02 bugtrack
2006-03-21 23:29 bugtrack
2006-01-28 5:13 bugtrack
2006-01-28 5:11 bugtrack
2006-01-28 4:38 bugtrack
2006-01-28 4:34 bugtrack
2006-01-05 21:01 bugtrack
2006-01-05 20:42 bugtrack
2006-01-05 20:40 bugtrack
2006-01-05 20:36 bugtrack
2006-01-02 17:56 bugtrack
2006-01-02 17:55 bugtrack
2006-01-02 17:54 bugtrack
2005-12-30 23:19 bugtrack
2005-08-09 22:50 bugtrack
2005-08-09 22:49 bugtrack
2005-08-09 13:33 bugtrack
2005-07-03 7:09 bugtrack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7138c8383042fab76dcb092b62636a06@bugtrack.alsa-project.org \
--to=bugtrack@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox