[alsa-devel] [ASoC] machine driver and channel configuration
Timur Tabi
timur at freescale.com
Fri Jun 8 17:31:35 CEST 2007
Matthieu CASTET wrote:
> Hi,
>
> If the platform/cpu_dai driver and codec support capture and playback channels.
> But on the board only the playback link is connected.
>
> In this configuration, the codec and platform/cpu_dai driver shouldn't try to
> use the capture path (and the resource associated to this).
>
>
> Is there a way to do something like that ?
I'm just learning about ASoC myself, but using wm8731.c as an example, wouldn't this work:
struct snd_soc_codec_dai wm8731_dai = {
.name = "WM8731",
.playback = {
.stream_name = "Playback",
.channels_min = 1,
.channels_max = 2,
.rates = WM8731_RATES,
.formats = WM8731_FORMATS,},
.capture = {
.stream_name = "Capture",
.channels_min = 1,
.channels_max = 2,
.rates = WM8731_RATES,
.formats = WM8731_FORMATS,},
Just change capture.channels_min and channels_max to 0.
--
Timur Tabi
Linux Kernel Developer @ Freescale
More information about the Alsa-devel
mailing list