From: Takashi Iwai Subject: Re: [PATCH] [RFC 8/13] Intel SST sound card driver Date: Fri, 03 Jul 2009 17:16:32 +0200 Message-ID: References: <1246604775-12960-1-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 24C2E24914 for ; Fri, 3 Jul 2009 17:16:33 +0200 (CEST) In-Reply-To: <1246604775-12960-1-git-send-email-vinod.koul@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: alsa-devel@alsa-project.org, Harsha Priya List-Id: alsa-devel@alsa-project.org At Fri, 3 Jul 2009 12:36:15 +0530, Vinod Koul wrote: > > This adds support for Moorestown ALSA Sound card driver. > This is an ALSA driver for supporting PCM playback/capture > in traditional ALSA way. Anyone who chooses not to use DSP > for decoding/encoding can use ALSA path to > play/capture (in non low power mode). > This driver registers the control interface and PCM > interface with the LPE driver which finally sends it to > the hardware. This driver allows any subsystem in OS > which wants to use the audio-subsystems to be routed > through the ALSA > > Signed-off-by: Vinod Koul > Signed-off-by: Harsha Priya > > new file: sound/pci/sst/intelmid.c > --- > sound/pci/sst/intelmid.c | 1761 ++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 1761 insertions(+), 0 deletions(-) > create mode 100644 sound/pci/sst/intelmid.c > > diff --git a/sound/pci/sst/intelmid.c b/sound/pci/sst/intelmid.c > new file mode 100644 > index 0000000..28a6dcc > --- /dev/null > +++ b/sound/pci/sst/intelmid.c > @@ -0,0 +1,1761 @@ > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include Include (and ) before files. > +#include "intelmid_snd_control.h" > +#include "intelmid.h" > +#include "intelmid_pvt.h" > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +MODULE_AUTHOR("Harsha Priya "); > +MODULE_AUTHOR("Vinod Koul "); > +MODULE_DESCRIPTION("Intel MAD Sound card driver"); > +MODULE_LICENSE("GPL v2"); > +MODULE_SUPPORTED_DEVICE("{Intel,Intel_MAD}"); > + > +static int card_index = SNDRV_DEFAULT_IDX1;/* Index 0-MAX */ > +static char *card_id = SNDRV_DEFAULT_STR1; /* ID for this card */ These should be index and id, and declared as module parameters. Otherwise you have no way to change them. > +/*structure of all the controls of the sound card that is exposed*/ > +static struct snd_kcontrol_new snd_intelmad_controls[] __devinitdata = { > +#ifdef FULL_CTRL > +{ > + .iface = SNDRV_CTL_ELEM_IFACE_MIXER, > + .name = "Line Volume", Usually you need to specify the direction, either "Playback" or "Capture", before "Volume" or "Switch" suffix. In this case, "Line Playback Volume" or so. > + .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, > + .info = snd_intelmad_line_volume_info, > + .get = snd_intelmad_volume_get, > + .put = snd_intelmad_volume_set, Can it have the dB information via TLV? > + .iface = SNDRV_CTL_ELEM_IFACE_MIXER, > + .name = "DMIC Volume", Ditto. > + .iface = SNDRV_CTL_ELEM_IFACE_MIXER, > + .name = "Master Mute Switch", No "Mute" switch please. Instead use "Master Playback Switch". (mute is a reverse direction thus confusing.) Takashi