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

Dave Matthews n36078 at gmail.com
Mon May 27 21:21:21 UTC 2013


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..
>
> 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
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>


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.

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$


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.

htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106 -r 48000 -f S16_LE -c 2 -d 5
-t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
overrun!!! (at least 0.005 ms long)
htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106,DEV=0 -r 48000 -f S16_LE -c
2 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
overrun!!! (at least 0.005 ms long)
htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106,DEV=1 -r 48000 -f S16_LE -c
2 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106,DEV=2 -r 48000 -f S16_LE -c
2 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
arecord: pcm_read:1801: read error: Input/output error
htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106,DEV=2 -r 48000 -f S16_LE -c
2 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
arecord: pcm_read:1801: read error: Input/output error
htpc at htpc:~/Desktop$ arecord -D hw:CARD=CA0106,DEV=3 -r 48000 -f S16_LE -c
2 -d 5 -t wav test.wav
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz,
Stereo
arecord: pcm_read:1801: read error: Input/output error
htpc at htpc:~/Desktop$

arecord -L lists the following.
htpc at htpc:~$ arecord -L
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=NVidia
    HDA NVidia, ALC888 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    Direct sample mixing device
dmix:CARD=NVidia,DEV=1
    HDA NVidia, ALC888 Digital
    Direct sample mixing device
dmix:CARD=NVidia,DEV=2
    HDA NVidia, ALC888 Analog
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=1
    HDA NVidia, ALC888 Digital
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=2
    HDA NVidia, ALC888 Analog
    Direct sample snooping device
hw:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=1
    HDA NVidia, ALC888 Digital
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=2
    HDA NVidia, ALC888 Analog
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=0
    HDA NVidia, ALC888 Analog
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=1
    HDA NVidia, ALC888 Digital
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=2
    HDA NVidia, ALC888 Analog
    Hardware device with all software conversions
sysdefault:CARD=CX8801
    Conexant CX8801, CX88 Digital
    Default Audio Device
dmix:CARD=CX8801,DEV=0
    Conexant CX8801, CX88 Digital
    Direct sample mixing device
dsnoop:CARD=CX8801,DEV=0
    Conexant CX8801, CX88 Digital
    Direct sample snooping device
hw:CARD=CX8801,DEV=0
    Conexant CX8801, CX88 Digital
    Direct hardware device without any conversions
plughw:CARD=CX8801,DEV=0
    Conexant CX8801, CX88 Digital
    Hardware device with all software conversions
sysdefault:CARD=CA0106
    CA0106, CA0106
    Default Audio Device
front:CARD=CA0106,DEV=0
    CA0106, CA0106
    Front speakers
rear:CARD=CA0106,DEV=0
    CA0106, CA0106
    Rear speakers
center_lfe:CARD=CA0106,DEV=0
    CA0106, CA0106
    Center and Subwoofer speakers
side:CARD=CA0106,DEV=0
    CA0106, CA0106
    Side speakers
surround40:CARD=CA0106,DEV=0
    CA0106, CA0106
    4.0 Surround output to Front and Rear speakers
surround41:CARD=CA0106,DEV=0
    CA0106, CA0106
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CA0106,DEV=0
    CA0106, CA0106
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CA0106,DEV=0
    CA0106, CA0106
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CA0106,DEV=0
    CA0106, CA0106
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CA0106,DEV=0
    CA0106, CA0106
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=CA0106,DEV=0
    CA0106, CA0106
    Direct sample mixing device
dmix:CARD=CA0106,DEV=1
    CA0106, CA0106
    Direct sample mixing device
dmix:CARD=CA0106,DEV=2
    CA0106, CA0106
    Direct sample mixing device
dmix:CARD=CA0106,DEV=3
    CA0106, CA0106
    Direct sample mixing device
dsnoop:CARD=CA0106,DEV=0
    CA0106, CA0106
    Direct sample snooping device
dsnoop:CARD=CA0106,DEV=1
    CA0106, CA0106
    Direct sample snooping device
dsnoop:CARD=CA0106,DEV=2
    CA0106, CA0106
    Direct sample snooping device
dsnoop:CARD=CA0106,DEV=3
    CA0106, CA0106
    Direct sample snooping device
hw:CARD=CA0106,DEV=0
    CA0106, CA0106
    Direct hardware device without any conversions
hw:CARD=CA0106,DEV=1
    CA0106, CA0106
    Direct hardware device without any conversions
hw:CARD=CA0106,DEV=2
    CA0106, CA0106
    Direct hardware device without any conversions
hw:CARD=CA0106,DEV=3
    CA0106, CA0106
    Direct hardware device without any conversions
plughw:CARD=CA0106,DEV=0
    CA0106, CA0106
    Hardware device with all software conversions
plughw:CARD=CA0106,DEV=1
    CA0106, CA0106
    Hardware device with all software conversions
plughw:CARD=CA0106,DEV=2
    CA0106, CA0106
    Hardware device with all software conversions
plughw:CARD=CA0106,DEV=3
    CA0106, CA0106
    Hardware device with all software conversions
htpc at htpc:~$

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


More information about the mythtv-users mailing list