linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: add SuperH DAC audio driver for ALSA V2
Date: Thu, 22 Oct 2009 01:56:00 +0000	[thread overview]
Message-ID: <20091022015600.GA26660@linux-sh.org> (raw)
In-Reply-To: <20091008013423.GA26059@rafazurita.homelinux.net>

On Tue, Oct 20, 2009 at 10:38:36PM -0300, Rafael Ignacio Zurita wrote:
> This is a port of the sound/oss/sh_dac_audio.c driver.
> The driver uses an on-chip 8-bit D/A converter, which has a speaker connected
> to one of its channels, found in several ancient HP machines.
> For interrupts it uses a high-resolution timer (hrtimer).
> Tested on SH7709 based hp6xx (HP Jornada 680/690 and HP Palmtop 620lx/660lx).
>  
> Also, since OSS Emulation works, the old OSS sound/oss/sh_dac_audio.c driver
> would be obsolete soon, and it could be removed.
>  
> Changes since V1:
>  - moved the platform device code into board code.
>  - dropped dac_audio_sync(), since that code is not needed (it was inherited of
>    the old oss driver).
>  - rewrote the code with style problems.
>  
> Signed-off-by: Rafael Ignacio Zurita <rizurita@yahoo.com>
> ---
>  arch/sh/boards/mach-hp6xx/setup.c        |   55 ++++
>  arch/sh/include/mach-common/mach/hp6xx.h |    4 +
>  include/sound/dac_audio.h                |   21 ++
>  sound/sh/Kconfig                         |    8 +
>  sound/sh/Makefile                        |    1 +
>  sound/sh/snd_sh_dac_audio.c              |  453 ++++++++++++++++++++++++++++++
>  6 files changed, 542 insertions(+), 0 deletions(-)
> 
Looks ok to me in general, but you really should rename the header to
sh_dac_audio.h or something similar, since dac_audio is an absurdly
generic name desite being tied entirely to the SH DAC.

Once you have fixed that up you should resend it and make sure to include
the ALSA folks, as they may have some comments on the actual audio bits.

  parent reply	other threads:[~2009-10-22  1:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  1:34 [PATCH] sh: add SuperH DAC audio driver for ALSA Rafael Ignacio Zurita
2009-10-08  8:38 ` Kristoffer Ericson
2009-10-09  1:22 ` Paul Mundt
2009-10-16 15:22 ` Rafael Ignacio Zurita
2009-10-19  7:01 ` Paul Mundt
2009-10-21  1:38 ` [PATCH] sh: add SuperH DAC audio driver for ALSA V2 Rafael Ignacio Zurita
2009-10-22  1:56 ` Paul Mundt [this message]
2009-10-22 20:25 ` [PATCH] sh: add SuperH DAC audio driver for ALSA V3 Rafael Ignacio Zurita
2009-10-26  0:31   ` Paul Mundt
2009-11-03 20:16 ` [PATCH] sh: add SuperH DAC audio driver for ALSA V4 Rafael Ignacio Zurita
2009-11-04  3:13   ` Paul Mundt
2009-11-04  8:19   ` [alsa-devel] " Takashi Iwai

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=20091022015600.GA26660@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).