[alsa-devel] [PATCH] sh: add SuperH DAC audio driver for ALSA V3
Paul Mundt
lethal at linux-sh.org
Fri Oct 30 12:59:56 CET 2009
On Fri, Oct 30, 2009 at 12:24:03PM +0100, Takashi Iwai wrote:
> At Thu, 22 Oct 2009 17:25:06 -0300,
> Rafael Ignacio Zurita wrote:
> > --- /dev/null
> > +++ b/include/sound/sh_dac_audio.h
> > @@ -0,0 +1,21 @@
> > +/*
> > + * SH_DAC specific configuration, for the dac_audio platform_device
> > + *
> > + * Copyright (C) 2009 Rafael Ignacio Zurita <rizurita at yahoo.com>
> > + *
> > + * This program is free software; you can redistribute it and/or modify it
> > + * under the terms of the GNU General Public License version 2 as published
> > + * by the Free Software Foundation.
> > + */
> > +
> > +#ifndef __INCLUDE_SH_DAC_AUDIO_H
> > +#define __INCLUDE_SH_DAC_AUDIO_H
> > +
> > +struct dac_audio_pdata {
> > + int buffer_size;
> > + int channel;
> > + void (*start)(struct dac_audio_pdata *pd);
> > + void (*stop)(struct dac_audio_pdata *pd);
> > +};
> > +
> > +#endif /* __INCLUDE_SH_DAC_AUDIO_H */
>
> Isn't it better to include this piece into mach/hp6xx.h or so?
> Since it's pretty specific to the platform, it's not necessarily in
> the common sound include path.
>
It's not really platform specific, it's a generic driver for the SH
on-chip DAC. hp6xx is the only platform that is using this at the moment,
but it's forseeable that other SH-3 platforms will enable this, too.
Of course we can hide this header in the sh includes somewhere if you
don't want it in include/sound, but include/sound certainly seems like a
reasonable place for it.
More information about the Alsa-devel
mailing list