All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Cc: alsa-devel@alsa-project.org
Subject: Re: Detecting the sample format in the driver
Date: Sun, 19 Mar 2006 19:32:55 -0500	[thread overview]
Message-ID: <1142814775.4532.48.camel@mindpipe> (raw)
In-Reply-To: <1142810413.9700.45.camel@localhost.localdomain>

On Sun, 2006-03-19 at 23:20 +0000, Adrian McMenamin wrote:
> for some reason this isn't working for me - and I need to set hardware
> channel parameters on the basis of the sample.
> 
> My hardware plays signed 8 bit, signed 16 bit little endian and 8 bit
> adaptive differential PCM and I have this set...
> 
> 
> 
> .formats =
> 	    (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |
> 	     SNDRV_PCM_FMTBIT_IMA_ADPCM),
> 
> 
> 
> But when I try to detect the format...
> 
> 	if ((substream->runtime)->format == SNDRV_PCM_FMTBIT_S16_LE)
> 		channel->sfmt = SM_16BIT;
> 
> 
> It doesn't seem to work.
> 
> I am assuming the alsa subsystem ought to process the stream for me - ie
> any 16 bit stream will turn up as SNDRV_PCM_FMTBIT_S16_LE - is that
> right? And if it is, why isn't it working?
> 

What does snd_pcm_format_width(runtime->format) return (check emupcm.c
for examples)?

Lee



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

  reply	other threads:[~2006-03-20  0:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-19 23:20 Detecting the sample format in the driver Adrian McMenamin
2006-03-20  0:32 ` Lee Revell [this message]
2006-03-20  8:00 ` Clemens Ladisch
2006-03-20  8:06   ` Adrian McMenamin

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=1142814775.4532.48.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=adrian@mcmen.demon.co.uk \
    --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.