Re: [Alsa-user] Re-opening an ALSA connection

2016-09-26 Thread Johannes Lorenz
On Monday 26 September 2016 10:05:04 Clemens Ladisch wrote: > > * Do you need to init the hardware parameters again? > > No. When you get -ESTRPIPE, the stream was suspended, and all you have > to do is to reinitialize it with snd_pcm_prepare() or snd_pcm_recover(). Thanks, snd_pcm_recover()

[Alsa-user] snd_pcm_hw_params_set_buffer_size returns -EINVAL

2016-09-26 Thread Johannes Lorenz
Hello, this happens in [1]. You can also call snd_pcm_hw_params_set_buffer_size() before snd_pcm_hw_params() (that's probably better?), it always results in (- EINVAL). The google-answers did not help. Any idea? In my case, the buffer size is 256, but it also fails is I use 32768. Thanks on

Re: [Alsa-user] TEAC CR H101DAB receiver not seen as a sound device

2016-09-26 Thread chris hermansen
Bob and list; On Mon, Sep 26, 2016 at 10:03 AM, Bob Williams wrote: > On Mon, 26 Sep 2016 09:35:53 +0100 > Bob Williams wrote: > > > On Mon, 26 Sep 2016 09:16:07 +0100 > > Bob Williams wrote: > > > > > Hello, > > > > > > I

Re: [Alsa-user] General question about capabilities for switches

2016-09-26 Thread Ulrich Sørensen
Clemens Ladisch wrote: >In the "simple" mixer API, controls are either playback or capture. >Having both would imply that there were two independent switches. If that is the case then I do not understand the documentation which states: This document describes standard names of mixer controls.

Re: [Alsa-user] TEAC CR H101DAB receiver not seen as a sound device

2016-09-26 Thread Bob Williams
On Mon, 26 Sep 2016 09:16:07 +0100 Bob Williams wrote: > Hello, > > I have recently purchased a TEAC CR H101DAB receiver which can receive > USB input from my computer. My operating system is openSUSE Leap 42.1 > with kernel 4.1.31-30-default. I am using pulseaudio. > >

Re: [Alsa-user] General question about capabilities for switches

2016-09-26 Thread Clemens Ladisch
Ulrich Sørensen wrote: > Clemens Ladisch wrote: >> In the "simple" mixer API, controls are either playback or capture. >> Having both would imply that there were two independent switches. > > If that is the case then I do not understand the documentation That documentation describes the names of

Re: [Alsa-user] TEAC CR H101DAB receiver not seen as a sound device

2016-09-26 Thread chris hermansen
Bob and list; On Mon, Sep 26, 2016 at 3:04 PM, Bob Williams wrote: > On Mon, 26 Sep 2016 11:12:32 -0700 > chris hermansen wrote: > > > Bob, what connects your computer to your TEAC? A USB cable? > > > Yes, a USB cable. I also have a sound card,

[Alsa-user] TEAC CR H101DAB receiver not seen as a sound device

2016-09-26 Thread Bob Williams
Hello, I have recently purchased a TEAC CR H101DAB receiver which can receive USB input from my computer. My operating system is openSUSE Leap 42.1 with kernel 4.1.31-30-default. I am using pulseaudio. YaST does not see the H101 at all, but alsamixer does. It reports itself as TEAC USB AUDIO

Re: [Alsa-user] arecord -d option

2016-09-26 Thread José Luis Artuch
arecord -f dat -d 2 -D default test.wav is ok El jue, 08-09-2016 a las 18:45 -0300, José Luis Artuch escribió: > On Debian 8 I run > arecord -f dat -d 2 -D hw:0,0 test.wav > but this command never stops. > It does not work the "-d" option ?. > José Luis

Re: [Alsa-user] Re-opening an ALSA connection

2016-09-26 Thread Clemens Ladisch
Johannes Lorenz wrote: > the C++ app I am working on uses ALSA and usually works. However, when I s2ram > my computer while an ALSA connection is active, and the computer starts again, > the connection is broken (snd_pcm_writei returns < 0). In that case, I'd like > to reopen the connection. This

Re: [Alsa-user] TEAC CR H101DAB receiver not seen as a sound device

2016-09-26 Thread Bob Williams
On Mon, 26 Sep 2016 11:12:32 -0700 chris hermansen wrote: > Bob, what connects your computer to your TEAC? A USB cable? > Yes, a USB cable. I also have a sound card, but want to use the TEAC DAC. > What music player do you use? > MPD > What is the output of "aplay -L"