All of lore.kernel.org
 help / color / mirror / Atom feed
* SPDIF: How to play mono sound
@ 2011-11-08 10:04 ajay khandelwal
  2011-11-08 10:18 ` Pavel Hofman
  0 siblings, 1 reply; 3+ messages in thread
From: ajay khandelwal @ 2011-11-08 10:04 UTC (permalink / raw)
  To: alsa-devel

Hi all,
 I have a pc with SPDIF out. I want to play audio file with single
channel(mono) using aplay.

How to do that, when I try to play with following command, it gives error

aplay -Diec958:CARDICH6,DEV=0 mono_music.wav

it gives following error
aplay: set_param:1065: Channels count not available.

Thanks and Regards,
Ajay

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

* Re: SPDIF: How to play mono sound
  2011-11-08 10:04 SPDIF: How to play mono sound ajay khandelwal
@ 2011-11-08 10:18 ` Pavel Hofman
  2011-11-08 13:59   ` ajay khandelwal
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Hofman @ 2011-11-08 10:18 UTC (permalink / raw)
  To: ajay khandelwal; +Cc: alsa-devel


Dne 8.11.2011 11:04, ajay khandelwal napsal(a):
> Hi all,
>  I have a pc with SPDIF out. I want to play audio file with single
> channel(mono) using aplay.
> 
> How to do that, when I try to play with following command, it gives error
> 
> aplay -Diec958:CARDICH6,DEV=0 mono_music.wav
> 
> it gives following error
> aplay: set_param:1065: Channels count not available.
> 

How about

aplay -Dplug:iec958:CARDICH6,DEV=0 mono_music.wav

Spdif is a stereo device and does not accept a single channel stream.
The plug plugin will do the conversion:

Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
    0 <- 0
    1 <- 0


Pavel.

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

* Re: SPDIF: How to play mono sound
  2011-11-08 10:18 ` Pavel Hofman
@ 2011-11-08 13:59   ` ajay khandelwal
  0 siblings, 0 replies; 3+ messages in thread
From: ajay khandelwal @ 2011-11-08 13:59 UTC (permalink / raw)
  To: Pavel Hofman; +Cc: alsa-devel

Thanks Pavel,
It worked, just little improvement
 it should be in quotes like this
aplay -D"plug:'iec958:CARD=ICH6,DEV=0'" mono_music.wav
Best Regards,
Ajay
On Tue, Nov 8, 2011 at 3:48 PM, Pavel Hofman <pavel.hofman@ivitera.com>wrote:

>
> Dne 8.11.2011 11:04, ajay khandelwal napsal(a):
>  > Hi all,
> >  I have a pc with SPDIF out. I want to play audio file with single
> > channel(mono) using aplay.
> >
> > How to do that, when I try to play with following command, it gives error
> >
> > aplay -Diec958:CARDICH6,DEV=0 mono_music.wav
> >
> > it gives following error
> > aplay: set_param:1065: Channels count not available.
> >
>
> How about
>
> aplay -Dplug:iec958:CARDICH6,DEV=0 mono_music.wav
>
> Spdif is a stereo device and does not accept a single channel stream.
> The plug plugin will do the conversion:
>
> Plug PCM: Route conversion PCM (sformat=S16_LE)
>  Transformation table:
>    0 <- 0
>    1 <- 0
>
>
> Pavel.
>

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

end of thread, other threads:[~2011-11-08 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 10:04 SPDIF: How to play mono sound ajay khandelwal
2011-11-08 10:18 ` Pavel Hofman
2011-11-08 13:59   ` ajay khandelwal

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.