Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Faber <faber@faberman.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH] hdspm: native float
Date: Tue, 14 Apr 2009 19:11:45 +0200	[thread overview]
Message-ID: <1239729105.18545.12.camel@x200.watzmann.local> (raw)

Adds native float support to the driver. The interface has hardware
support for CoreAudio[tm], why shouldn't jack users benefit from it.

diff a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c

13a14,16
>  *      Modified 2009-04-14 for native float support by Florian Faber
>  *                                               <faber@faberman.de>
>  *
39a43
> #include <sound/pcm_params.h>
198a203
> #define HDSPe_FLOAT_FORMAT         0x2000000
3726a3732,3747
> 
> 
> 	/* Switch to native float format if requested */
> 	if (SNDRV_PCM_FORMAT_FLOAT_LE == params_format(params)) {
> 	  if (!(hdspm->control_register & HDSPe_FLOAT_FORMAT)) {
> 	    snd_printk(KERN_INFO "hdspm: Switching to native 32bit LE float
format.\n");
> 	  }
> 	  hdspm->control_register |= HDSPe_FLOAT_FORMAT;
> 	} else if (SNDRV_PCM_FORMAT_S32_LE == params_format(params)) {
> 	  if (hdspm->control_register & HDSPe_FLOAT_FORMAT) {
> 	    snd_printk(KERN_INFO "hdspm: Switching to native 32bit LE integer
format.\n");
> 	  }
> 	  hdspm->control_register &= ~HDSPe_FLOAT_FORMAT;
> 	}
> 	hdspm_write(hdspm, HDSPM_controlRegister, hdspm->control_register);
> 
3870c3891
< 	.formats = SNDRV_PCM_FMTBIT_S32_LE,
---
> 	.formats = SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_FLOAT_LE,
3895c3916
< 	.formats = SNDRV_PCM_FMTBIT_S32_LE,
---
> 	.formats = SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_FLOAT_LE,

Flo
-- 
Machines can do the work, so people have time to think.
public key 6C002249          x-hkp://wwwkeys.eu.pgp.net

             reply	other threads:[~2009-04-14 17:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 17:11 Florian Faber [this message]
2009-04-16 10:01 ` [PATCH] hdspm: native float Clemens Ladisch
2009-04-16 10:44   ` Florian Faber
2009-04-16 11:48     ` Clemens Ladisch
2009-04-16 12:12       ` Florian Faber
2009-04-16 12:36         ` Takashi Iwai
2009-04-16 12:41         ` Mark Brown
2009-04-16 18:01           ` John Rigg
2009-04-16 18:32           ` John Rigg

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=1239729105.18545.12.camel@x200.watzmann.local \
    --to=faber@faberman.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox