All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting audio channels on ICH5 with SALSA
@ 2007-07-11 20:04 Fausto Carvalho Marques SIlva
  2007-07-11 22:17 ` Fausto Carvalho Marques SIlva
  0 siblings, 1 reply; 7+ messages in thread
From: Fausto Carvalho Marques SIlva @ 2007-07-11 20:04 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-11 20:04 Setting audio channels on ICH5 with SALSA Fausto Carvalho Marques SIlva
@ 2007-07-11 22:17 ` Fausto Carvalho Marques SIlva
  2007-07-12  6:36   ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: Fausto Carvalho Marques SIlva @ 2007-07-11 22:17 UTC (permalink / raw)
  To: alsa-devel

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
>
>  
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-11 22:17 ` Fausto Carvalho Marques SIlva
@ 2007-07-12  6:36   ` Clemens Ladisch
  2007-07-13 15:47     ` Fausto Carvalho Marques SIlva
  0 siblings, 1 reply; 7+ messages in thread
From: Clemens Ladisch @ 2007-07-12  6:36 UTC (permalink / raw)
  To: Fausto Carvalho Marques SIlva, 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-12  6:36   ` Clemens Ladisch
@ 2007-07-13 15:47     ` Fausto Carvalho Marques SIlva
  2007-07-13 17:19       ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: Fausto Carvalho Marques SIlva @ 2007-07-13 15:47 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel


>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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-13 17:19       ` Clemens Ladisch
@ 2007-07-13 17:19         ` Fausto Carvalho Marques SIlva
  2007-07-13 17:41           ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Fausto Carvalho Marques SIlva @ 2007-07-13 17:19 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai

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??

Fausto Carvalho Marques Silva

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-13 15:47     ` Fausto Carvalho Marques SIlva
@ 2007-07-13 17:19       ` Clemens Ladisch
  2007-07-13 17:19         ` Fausto Carvalho Marques SIlva
  0 siblings, 1 reply; 7+ messages in thread
From: Clemens Ladisch @ 2007-07-13 17:19 UTC (permalink / raw)
  To: Fausto Carvalho Marques SIlva; +Cc: alsa-devel

Fausto Carvalho Marques SIlva wrote:
> I think the default device on alsa.conf is setting something the 
> salsa-lib does not...

Yes: When the hardware does not support the sample format requested by
the application, the default device automatically converts it.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Setting audio channels on ICH5 with SALSA
  2007-07-13 17:19         ` Fausto Carvalho Marques SIlva
@ 2007-07-13 17:41           ` Takashi Iwai
  0 siblings, 0 replies; 7+ messages in thread
From: Takashi Iwai @ 2007-07-13 17:41 UTC (permalink / raw)
  To: Fausto Carvalho Marques SIlva; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-13 17:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-11 20:04 Setting audio channels on ICH5 with SALSA Fausto Carvalho Marques SIlva
2007-07-11 22:17 ` Fausto Carvalho Marques SIlva
2007-07-12  6:36   ` Clemens Ladisch
2007-07-13 15:47     ` Fausto Carvalho Marques SIlva
2007-07-13 17:19       ` Clemens Ladisch
2007-07-13 17:19         ` Fausto Carvalho Marques SIlva
2007-07-13 17:41           ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.