[alsa-devel] Setting audio channels on ICH5 with SALSA
Setting audio channels on ICH5 with SALSA generates and: EINVAL Numbers of channels is 1. Does anyone have some ideias?? ( on ICH6 and ICH7 works well) thanks... Fausto Carvalho Marques Silva
More info: Even getting the number of avaiable audio channels i get error: EINVAL Debuging gets me to:
SNDRV_PCM_HW_PARAM_CHANNELS params->intervals[2] = {min = 2, max = 6, openmin = 0, openmax = 0, integer = 1, empty = 0} so snd_interval_single does not get valid ...
Any help is wellcome... Fausto Carvalho Marques Silva
Setting audio channels on ICH5 with SALSA generates and: EINVAL Numbers of channels is 1. Does anyone have some ideias?? ( on ICH6 and ICH7 works well) thanks... Fausto Carvalho Marques Silva _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Fausto Carvalho Marques SIlva wrote:
Setting audio channels on ICH5 with SALSA generates and: EINVAL Numbers of channels is 1.
The ICH5 AC97 controller does not support mono output; you must use at least a stereo stream.
Even getting the number of avaiable audio channels i get error: EINVAL
What function did you try to use?
Debuging gets me to:
SNDRV_PCM_HW_PARAM_CHANNELS params->intervals[2] = {min = 2, max = 6, ...
It supports 2, 4 or 6 channels; this is not a single value.
HTH Clemens
The ICH5 AC97 controller does not support mono output; you must use at least a stereo stream.
Ok, but lets clear the thing here:
- I ussing salsa v 0.0.6 - Look at this simple code:
if ((err = snd_pcm_hw_params_set_channels (playback_handle, hw_params, 1)) < 0) { fprintf (stderr, "cannot set channel count (%s)\n", snd_strerror (err)); exit (1); }
if ((err = snd_pcm_hw_params_get_channels (hw_params,&j)) < 0) { fprintf (stderr, "cannot set channel count (%s)\n", snd_strerror (err)); exit (1); }
when ussing alsa-lib 1.0.14 with device "hw" i get EINVAL, when ussing alsa-lib 1.0.14 with device "default" i do not get erros (set or get functions) My alsa.conf is the installation default one. I think the dafault device on alsa.conf is setting something the salsa-lib does not... Any help is wellcome...
Fausto Carvalho Marques Silva
At Fri, 13 Jul 2007 14:19:05 -0300, Fausto Carvalho Marques SIlva wrote:
Clemens Ladisch wrote:
Yes: When the hardware does not support the sample format requested by the application, the default device automatically converts it.
Ok...but is there a way to "correct" this on salsa??
No. That's how SALSA gets rid of fat from its body. It supports only hw layer of ALSA-lib (e.g. equivalent with aplay -Dhw).
Do appropriate conversions in the application itself.
Takashi
participants (3)
-
Clemens Ladisch
-
Fausto Carvalho Marques SIlva
-
Takashi Iwai