All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [[PATCH] - hdspm 1/2] Add support for RME RayDAT and AIO
Date: Wed, 26 Jan 2011 17:43:06 +0100	[thread overview]
Message-ID: <s5hbp33zkdh.wl%tiwai@suse.de> (raw)
In-Reply-To: <1296057510-10047-2-git-send-email-adi@drcomp.erfurt.thur.de>

At Wed, 26 Jan 2011 16:58:29 +0100,
Adrian Knoth wrote:
> 
> diff --git a/include/hdspm.h b/include/hdspm.h
> index 81990b2..0caf472 100644
> --- a/include/hdspm.h
> +++ b/include/hdspm.h
...
>  struct hdspm_version {
> +	uint8_t card_type; /* enum hdspm_io_type */
> +	char cardname[20];
> +	unsigned int serial;
>  	unsigned short firmware_rev;
> +	int addons;
>  };
>  
>  #define SNDRV_HDSPM_IOCTL_GET_VERSION _IOR('H', 0x43, struct hdspm_version)

Changing the existing ioctl isn't so pretty.
If any, I'd vote for changing the ioctl number.

> +/* These tables map the ALSA channels 1..N to the channels that we
> +   need to use in order to find the relevant channel buffer. RME
> +   refers to this kind of mapping as between "the ADAT channel and
> +   the DMA channel." We index it using the logical audio channel,
> +   and the value is the DMA channel (i.e. channel buffer number)
> +   where the data for that channel can be read/written from/to.
> +*/
> +
> +static char channel_map_unity_ss[HDSPM_MAX_CHANNELS] = {
> +	0, 1, 2, 3, 4, 5, 6, 7,
> +	8, 9, 10, 11, 12, 13, 14, 15,
> +	16, 17, 18, 19, 20, 21, 22, 23,
> +	24, 25, 26, 27, 28, 29, 30, 31,
> +	32, 33, 34, 35, 36, 37, 38, 39,
> +	40, 41, 42, 43, 44, 45, 46, 47,
> +	48, 49, 50, 51, 52, 53, 54, 55,
> +	56, 57, 58, 59, 60, 61, 62, 63
> +};

Please don't put static arrays in the public header files.

Otherwise it looks OK.  It's huge, and maybe there are something to be
fixed.  But We can fix things after merging.

However, the problem is that this patch isn't applicable cleanly to
the latest sound git tree: 
    git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git

I can change the patch path easily, but the contents get rejected at
this time, and I have no gut to fix manually.

Could you rebase your patch to the git tree above?
Or, you can use alsa-driver-snapshot tarball if you don't want to
use the whole kernel git tree.


thanks,

Takashi

  parent reply	other threads:[~2011-01-26 16:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 15:58 [hdspm: Add RME RayDAT/AIO 0/2] Reworked support for RayDAT/AIO Adrian Knoth
2011-01-26 15:58 ` [[PATCH] - hdspm 2/2] Add RayDAT and AIO strings to Kconfig Adrian Knoth
     [not found] ` <1296057510-10047-2-git-send-email-adi@drcomp.erfurt.thur.de>
2011-01-26 16:43   ` Takashi Iwai [this message]
2011-01-26 18:35     ` [[PATCH] - hdspm 1/2] Add support for RME RayDAT and AIO Adrian Knoth

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=s5hbp33zkdh.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=adi@drcomp.erfurt.thur.de \
    --cc=alsa-devel@alsa-project.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.