[mythtv-users] audioinputalsa.cpp:336 (AlsaBad) AudioInALSA(default:CARD=CA0106): pcm open failed: Invalid argument

Dave Matthews n36078 at gmail.com
Tue May 28 20:40:19 UTC 2013


On Tue, May 28, 2013 at 4:22 PM, HP-mini <blm-ubunet at slingshot.co.nz> wrote:

> On Mon, 2013-05-27 at 17:21 -0400, Dave Matthews wrote:
> >
> >
> >
> >
> > On Mon, May 27, 2013 at 3:52 PM, HP-mini <blm-ubunet at slingshot.co.nz>
> > wrote:
> >         On Mon, 2013-05-27 at 14:08 -0400, Dave Matthews wrote:
> >         > Let try this with a subject.
> >         >
> >         > Also - the machine upgraded from MythTV 0.24 to 0.25 when
> >         the Ubuntu
> >         > upgrade happened.
> >
> >
> >         > This is the parameter that was in place for years on the old
> >         > installation.  The CA0106 is a soundblaster PCI card.
> >          Something has
> >         > changed in 12.04.  How should I adjust the parameter so
> >         Mythtv gets
> >         > the right sound input device?
> >
> >
> >
> >         Have you tried re-scanning audio devices in FE setup?
> >         (I'm guessing that this scans input devices as well)
> >         Try doing that scan with FE started with logging into
> >         terminal..
> >
> I still believe that after any upgrade you should rescan the audio
> devices in FE setup & pick an appropriate one..
> The debug output is helpful to someone..
>
> No audio input device is configured here..
>
> Just to clarify; Your audio problem is with recording from external
> source ?
>

The rescan gave me a list of device names to try. I had already looked at
it.  The audio is coming from an external device (Dish Network Sat
receiver).





>
>
> >         Can try a test with varied listed "arecord -L" devices
> >          arecord -D hw:CARD=CA0106 -r 48000 -f S16_LE -c 2 -d 5 -t wav
> >         test.wav
>
> >
> > The rescan picks up the card as multiple devices.  I tried them
> > yesterday by adding ,DEV=n to the input device name yesterday with no
> > change.  The scan has lots of invalid argument messages.
> >
> >
> I was not suggesting to edit the returned devices..
>
I wasn't editing.  This was going through the list of possible options for
the audio device line in teh backend setup.


>
> Do you use the soundcard for audio output (as well) ?
>
Yes, it was working.


>
> > Snip of FE setup
> > htpc at htpc:/usr/bin$ mythfrontend
> > - clipped
> > 2013-05-27 16:58:23.296609 I  MythCoreContext: Connecting to backend
> > server: 192.168.1.6:6543 (try 1 of 1)
> > 2013-05-27 16:58:23.297619 I  Using protocol version 72
> > 2013-05-27 16:58:23.339962 I  Bonjour: Service registration complete:
> > name 'Mythfrontend on htpc' type '_mythfrontend._tcp.' domain:
> > 'local.'
> > 2013-05-27 16:58:38.404682 E  ALSA: snd_pcm_info_get_card: Operation
> > not permitted
> > 2013-05-27 16:58:38.705783 I  Pulse: PulseAudio suspend OK
> > 2013-05-27 16:58:38.862827 E  ALSA: snd_pcm_info_get_card: Operation
> > not permitted
> > ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
> > 2013-05-27 16:58:39.153130 E  ALSA:
> > snd_pcm_open("dmix:CARD=CX8801,DEV=0"): No such file or directory
> > ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > 2013-05-27 16:58:39.243846 E  ALSA:
> > snd_pcm_open("dmix:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:39.251421 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=0"): Invalid argument
> > 2013-05-27 16:58:39.259085 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=1"): Invalid argument
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > 2013-05-27 16:58:39.266721 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=2"): Invalid argument
> > 2013-05-27 16:58:39.274741 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=3"): Invalid argument
> > 2013-05-27 16:58:39.283644 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CX8801,DEV=0"): Invalid argument
> > 2013-05-27 16:58:39.291096 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=0"): Invalid argument
> > 2013-05-27 16:58:39.298564 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=1"): Invalid argument
> > 2013-05-27 16:58:39.305576 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=2"): Invalid argument
> > 2013-05-27 16:58:39.565937 E  ALSA:
> > snd_pcm_open("hw:CARD=CX8801,DEV=0"): No such file or directory
> > 2013-05-27 16:58:39.654881 E  ALSA:
> > snd_pcm_open("hw:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:39.913919 E  ALSA:
> > snd_pcm_open("plughw:CARD=CX8801,DEV=0"): No such file or directory
> > 2013-05-27 16:58:40.004756 E  ALSA:
> > snd_pcm_open("plughw:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:40.013547 E  ALSA: snd_pcm_info_get_card: Operation
> > not permitted
> > 2013-05-27 16:58:40.604895 E  ALSA:
> > snd_pcm_open("sysdefault:CARD=CX8801"): No such file or directory
> > 2013-05-27 16:58:41.010641 I  Pulse: PulseAudio resume OK
> > 2013-05-27 16:58:47.019054 I  Pulse: PulseAudio suspend OK
> > 2013-05-27 16:58:47.175943 E  ALSA: snd_pcm_info_get_card: Operation
> > not permitted
> > ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
> > 2013-05-27 16:58:47.563550 E  ALSA:
> > snd_pcm_open("dmix:CARD=CX8801,DEV=0"): No such file or directory
> > ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > 2013-05-27 16:58:47.733510 E  ALSA:
> > snd_pcm_open("dmix:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:47.747357 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=0"): Invalid argument
> > 2013-05-27 16:58:47.761113 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=1"): Invalid argument
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin
> > supports only capture stream
> > 2013-05-27 16:58:47.777301 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=2"): Invalid argument
> > 2013-05-27 16:58:47.791246 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CA0106,DEV=3"): Invalid argument
> > 2013-05-27 16:58:47.804729 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=CX8801,DEV=0"): Invalid argument
> > 2013-05-27 16:58:47.819927 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=0"): Invalid argument
> > 2013-05-27 16:58:47.833686 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=1"): Invalid argument
> > 2013-05-27 16:58:47.849303 E  ALSA:
> > snd_pcm_open("dsnoop:CARD=NVidia,DEV=2"): Invalid argument
> > 2013-05-27 16:58:48.124812 E  ALSA:
> > snd_pcm_open("hw:CARD=CX8801,DEV=0"): No such file or directory
> > 2013-05-27 16:58:48.220098 E  ALSA:
> > snd_pcm_open("hw:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:48.486852 E  ALSA:
> > snd_pcm_open("plughw:CARD=CX8801,DEV=0"): No such file or directory
> > 2013-05-27 16:58:48.576768 E  ALSA:
> > snd_pcm_open("plughw:CARD=NVidia,DEV=2"): No such file or directory
> > 2013-05-27 16:58:48.585301 E  ALSA: snd_pcm_info_get_card: Operation
> > not permitted
> > 2013-05-27 16:58:49.178353 E  ALSA:
> > snd_pcm_open("sysdefault:CARD=CX8801"): No such file or directory
> > 2013-05-27 16:58:49.522759 I  Pulse: PulseAudio resume OK
> > 2013-05-27 16:58:56.054864 I  Received remote 'Clear Cache' request
> > 2013-05-27 16:58:59.469800 I  Bonjour: De-registering service
> > '_mythfrontend._tcp.' on 'Mythfrontend on htpc'
> > 2013-05-27 16:58:59.470311 I  RAOP Device: Cleaning up.
> > 2013-05-27 16:58:59.470342 I  AirPay: Cleaning up.
> > 2013-05-27 16:58:59.470371 I  Pulse: Cleaning up PulseHandler
> > 2013-05-27 16:58:59.470640 I  Deleting UPnP client...
> > 2013-05-27 16:59:00.302544 I  Waiting for threads to exit.
> > htpc at htpc:/usr/bin$
> >
> >
> Not sure what to make of that..
> Those dmix & dsnoop devices must be automatically generated for audio
> devices with hardware mixers..
>

I think that I have come to the conclusion that Ubuntu's method of sticking
pulse in front of alsa is the problem and that tools like alsa-mixer and
gnome-alsamixer are ignored and the pulse default is used.


>
> Is your mythtv user a member of the audio group?
>
>
>
I didn't check it but would assume such due too being able to play old
recordings.



>  >
> > The record test didn''t do what I expected.  I tried it for all of
> > fthe DEV numbers.  None of the recordings gave me sound but a couple
> > gave I/O errors.  When I used the Ubuntu sound sttings tool and click
> > on certain input us for the cared I hear the sound in the speakesr.
>
> Sorry I assumed it was obvious that "arecord ...file.wav" was going to
> attempt to record from some device to a file.
>

It was obvious.


>
> Did you try to play the recorded wav file (not mythtv) with aplay?
>

I used VLC because I had it.

>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

I think I know how to make Ubuntu do what I want it to do now.  It was a
matter of figuring out what they were doing with pulse as the default sound
system.  I didn't have time to fix it last night.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130528/b329ddb9/attachment.html>


More information about the mythtv-users mailing list