From: Pavel Hofman <pavel.hofman@ivitera.com>
To: ajay khandelwal <ajay.lforum@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: SPDIF: How to play mono sound
Date: Tue, 08 Nov 2011 11:18:58 +0100 [thread overview]
Message-ID: <4EB90212.2080000@ivitera.com> (raw)
In-Reply-To: <CAL7V=_ETiUeQ1f30SFh-DLYjbvvjcdNoAN0Q1dtCSoOTNsUirw@mail.gmail.com>
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.
next prev parent reply other threads:[~2011-11-08 10:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 10:04 SPDIF: How to play mono sound ajay khandelwal
2011-11-08 10:18 ` Pavel Hofman [this message]
2011-11-08 13:59 ` ajay khandelwal
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=4EB90212.2080000@ivitera.com \
--to=pavel.hofman@ivitera.com \
--cc=ajay.lforum@gmail.com \
--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