[alsa-devel] SPDIF: How to play mono sound

Pavel Hofman pavel.hofman at ivitera.com
Tue Nov 8 11:18:58 CET 2011

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


More information about the Alsa-devel mailing list