← Back to team overview

ac100 team mailing list archive

Re: [PATCH] arm: tegra: paz00: Enable SPDIF/HDMI audio

 

On Sat, Aug 13, 2011 at 06:58:47PM +0200, Marc Dietrich wrote:
> Hi Julian,
> 
> Am Samstag 13 August 2011, 15:02:01 schrieb Julian Andres Klode:
> > Register the SPDIF device in the board, this device is
> > responsible for HDMI audio.
> > ---
> >  arch/arm/mach-tegra/board-paz00.c |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/arch/arm/mach-tegra/board-paz00.c
> > b/arch/arm/mach-tegra/board-paz00.c index 833e61b..452cb05 100644
> > --- a/arch/arm/mach-tegra/board-paz00.c
> > +++ b/arch/arm/mach-tegra/board-paz00.c
> > @@ -348,6 +348,7 @@ static struct platform_device *paz00_devices[]
> > __initdata = { &tegra_i2s_device1,
> >  	&tegra_das_device,
> >  	&tegra_pcm_device,
> > +	&tegra_spdif_device,
> >  	&audio_device,
> >  	&tegra_avp_device,
> >  };
> 
> I'm not sure what's the use if this. AFAIK, we don't have a SDPIF connector. Or 
> is this a different function?
SPDIF is used for HDMI audio.

> We also need at least some platform data for the device and some support in 
> sound/soc/tegra/paz00.c You may check what seaboard does.
arch/arm:
Seaboard registers an spdif-dit platform device, but that seems to be the


sound/soc:
As far as I can see, the only thing that needs to be done is to setup a second
link in paz00.c (make paz00_alc5632_dai an array and maybe rename, and set
num_links to ARRAY_SIZE(paz00_alc5632_dai)). The device used by seaboard
is:

	{
		.name = "SPDIF",
		.stream_name = "spdif",
		.codec_name = "spdif-dit",
		.platform_name = "tegra-pcm-audio",
		.cpu_dai_name = "tegra-spdif",
		.codec_dai_name = "dit-hifi",
		.ops = &seaboard_spdif_ops,
	},

I'll take a closer look at it tomorrow, and hopefully
provide a complete patch, so that I have HDMI audio.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgp7TRNCwXeq3.pgp
Description: PGP signature


References