From: Alex Lee <lee188@singnet.com.sg>
To: Julian Scheel <julian@jusst.de>
Cc: alsa-devel@alsa-project.org, Daniel Mack <daniel@caiaq.de>
Subject: Re: USB asynchronous mode feedback format
Date: Sat, 16 Oct 2010 09:52:54 +0800 [thread overview]
Message-ID: <1287193974.2133.2.camel@desktop-alex> (raw)
In-Reply-To: <201010151919.41810.julian@jusst.de>
On Fri, 2010-10-15 at 19:19 +0200, Julian Scheel wrote:
>
> Correcting myself. It detects the card, but playback is not possible anymore:
>
> LC_ALL=en speaker-test -Dusb -c 2 -t sine -f 1000
>
> speaker-test 1.0.23
>
> Playback device is usb
> Stream parameters are 48000Hz, S16_LE, 2 channels
> Sine wave rate is 1000.0000Hz
> Rate set to 48000Hz (requested 48000Hz)
> Buffer size range from 96 to 262144
> Period size range from 48 to 131072
> Using max buffer size 262144
> Periods = 4
> Unable to set hw params for playback: Broken pipe
> Setting of hwparams failed: Broken pipe
>
> Is this a hint to not-working feedback? (c:
You may need to respond to the specific requests for get and set of the
sampling rate of the audio stream, once you have the Sample Rate
Attribute set. See my sdr-widget code to process these requests:
// assume all other requests are for AUDIO interface
switch (request)
{
case BR_REQUEST_SET_CUR:
audio_set_cur();
return TRUE;
// No need to break here !
case BR_REQUEST_SET_MIN: //! Set MIN,MAX and RES not
supported
case BR_REQUEST_SET_MAX:
case BR_REQUEST_SET_RES:
return FALSE;
// No need to break here !
case BR_REQUEST_GET_CUR:
audio_get_cur();
return TRUE;
// No need to break here !
case BR_REQUEST_GET_MIN:
audio_get_min();
return TRUE;
// No need to break here !
case BR_REQUEST_GET_MAX:
audio_get_max();
return TRUE;
// No need to break here !
case BR_REQUEST_GET_RES:
audio_get_res();
return TRUE;
// No need to break here !
default:
return FALSE;
// No need to break here !
}
next prev parent reply other threads:[~2010-10-16 1:52 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 8:47 USB asynchronous mode feedback format lee188
2010-10-14 10:27 ` Julian Scheel
2010-10-14 10:48 ` Daniel Mack
2010-10-14 11:01 ` Julian Scheel
2010-10-14 11:16 ` Daniel Mack
2010-10-14 11:32 ` Julian Scheel
2010-10-14 12:06 ` Daniel Mack
2010-10-14 12:30 ` Julian Scheel
2010-10-14 12:33 ` Daniel Mack
2010-10-14 12:56 ` Julian Scheel
2010-10-14 15:10 ` Julian Scheel
2010-10-14 15:33 ` Alex Lee
2010-10-14 15:39 ` Daniel Mack
2010-10-14 15:54 ` Julian Scheel
2010-10-14 16:11 ` Daniel Mack
2010-10-14 20:14 ` Julian Scheel
2010-10-15 8:59 ` Julian Scheel
2010-10-15 9:03 ` Daniel Mack
2010-10-18 16:53 ` Julian Scheel
[not found] ` <3879AFD1-61E6-47FB-8ECB-8A7D7B233B3B@singnet.com.sg>
2010-10-14 11:44 ` Julian Scheel
2010-10-14 11:56 ` Daniel Mack
2010-10-14 11:58 ` Julian Scheel
2010-10-14 15:28 ` Alex Lee
2010-10-14 15:43 ` Julian Scheel
2010-10-15 12:08 ` Julian Scheel
2010-10-15 12:52 ` Alex Lee
2010-10-15 13:04 ` Julian Scheel
2010-10-15 13:31 ` Alex Lee
2010-10-15 14:24 ` Julian Scheel
2010-10-15 14:34 ` Clemens Ladisch
2010-10-16 10:23 ` Julian Scheel
2010-10-15 14:41 ` Alex Lee
2010-10-15 17:16 ` Julian Scheel
2010-10-15 17:19 ` Julian Scheel
2010-10-16 1:52 ` Alex Lee [this message]
2010-10-16 10:25 ` Julian Scheel
2010-10-16 13:58 ` Alex Lee
2010-10-16 16:30 ` Julian Scheel
2010-10-16 18:52 ` Julian Scheel
2010-10-17 10:53 ` Julian Scheel
2010-10-17 11:16 ` Alex Lee
-- strict thread matches above, loose matches on Subject: below --
2010-10-13 15:50 Julian Scheel
2010-10-14 1:28 ` Alex
2010-10-14 5:57 ` Julian Scheel
2010-10-14 6:25 ` Alex
2010-10-14 8:46 ` lee188
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=1287193974.2133.2.camel@desktop-alex \
--to=lee188@singnet.com.sg \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@caiaq.de \
--cc=julian@jusst.de \
/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.