alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Olivier Langlois <olivier@trillion01.com>
To: alsa-devel@alsa-project.org
Subject: Re: need help with loopback driver
Date: Fri, 27 Dec 2013 00:05:39 -0500	[thread overview]
Message-ID: <1388120739.18597.37.camel@Wailaba2> (raw)
In-Reply-To: <1388088465.18597.29.camel@Wailaba2>

Ok mystery solved. the refinement failing wasn't in pcm_rate with params
from pcm_multi but in pcm_hw with pcm_rate params.

The problem was on my side since I forgot to change the sampling rate
from 44100 to 48000 on the aloop capture side. Again depending on the
order I was initializing the aloop subdevices, this was creating a param
mismatch or not.

On Thu, 2013-12-26 at 15:07 -0500, Olivier Langlois wrote:
> Concerning the last problem. Here it is 'loop_44100_16' refine sometimes
> works and sometimes it doesn't. Either something invisible to the param
> dumps is different or maybe some uninitialized variables adds some
> randomness to the result:
> 
> srefine 'loop_44100_16' (client)
> ACCESS:  MMAP_INTERLEAVED MMAP_NONINTERLEAVED
> FORMAT:  S16_LE S32_LE
> SUBFORMAT:  STD
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: 2
> RATE: 192000
> PERIOD_TIME: (20 682667)
> PERIOD_SIZE: [4 131072]
> PERIOD_BYTES: ALL
> PERIODS: [2 32]
> BUFFER_TIME: (41 1365334)
> BUFFER_SIZE: [8 262144]
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> srefine 'loop_44100_16' (slave)
> ACCESS:  MMAP_INTERLEAVED MMAP_NONINTERLEAVED MMAP_COMPLEX
> FORMAT:  S16_LE
> SUBFORMAT:  STD
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: 2
> RATE: [48000 48001)
> PERIOD_TIME: (20 682667)
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: [2 65538)
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> REFINE called:
> ACCESS:  MMAP_INTERLEAVED MMAP_NONINTERLEAVED MMAP_COMPLEX
> FORMAT:  S16_LE
> SUBFORMAT:  STD
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: 2
> RATE: [48000 48001)
> PERIOD_TIME: (20 682667)
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: [2 65538)
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> refine done - result = 0
> 
> 
> lano1106@Wailaba2 ~/dev/alsa_debug $ diff refine_success.txt
> refine_fail.txt 
> 49c49,50
> < refine done - result = 0
> ---
> > refine done - result = -22

      reply	other threads:[~2013-12-27  5:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11  6:33 need help with loopback driver Olivier Langlois
2013-12-13  5:12 ` Olivier Langlois
2013-12-26 20:07   ` Olivier Langlois
2013-12-27  5:05     ` Olivier Langlois [this message]

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=1388120739.18597.37.camel@Wailaba2 \
    --to=olivier@trillion01.com \
    --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;
as well as URLs for NNTP newsgroup(s).