Yes:

$ pasuspender -- aplay -D a52:CARD=PCH PCM.wav 
Wiedergabe: WAVE 'PCM.wav' : Signed 16 bit Little Endian, Rate: 44100 Hz, stereo
aplay: set_params:1239: Kanalanzahl nicht unterstützt

My Translation: 
$ pasuspender -- aplay -D a52:CARD=PCH PCM.wav 
Play: WAVE 'PCM.wav' : Signed 16 bit Little Endian, Rate: 44100 Hz, stereo
aplay: set_params:1239: Channel count not supported

But this works: Dolby Dgital Output to my amp but 6 Ch audio/x-raw input to 
alsa. 
$ pasuspender -- gst-launch-1.0 -v filesrc 
location=/home/daniel/workspace/Testsounds/Norrlanda.wav  ! decodebin ! 
audioconvert ! alsasink device='a52:CARD=PCH'
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
 caps = audio/x-wav
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
 caps = NULL
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstWavParse:wavparse0.GstPad:src:
 caps = audio/x-dts, rate=(int)44100, channels=(int)6, depth=(int)14, 
endianness=(int)1234, framed=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDcaParse:dcaparse0.GstPad:sink:
 caps = audio/x-dts, rate=(int)44100, channels=(int)6, depth=(int)14, 
endianness=(int)1234, framed=(boolean)false
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDcaParse:dcaparse0.GstPad:src:
 caps = audio/x-dts, framed=(boolean)true, rate=(int)44100, channels=(int)6, 
endianness=(int)1234, depth=(int)14, block-size=(int)1024, frame-size=(int)4096
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDtsDec:dtsdec0.GstPad:sink: 
caps = audio/x-dts, framed=(boolean)true, rate=(int)44100, channels=(int)6, 
endianness=(int)1234, depth=(int)14, block-size=(int)1024, frame-size=(int)4096
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstDtsDec:dtsdec0.GstPad:src: 
caps = audio/x-raw, format=(string)F32LE, layout=(string)interleaved, 
rate=(int)44100, channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = 
audio/x-raw, layout=(string)interleaved, rate=(int)44100, format=(string)S16LE, 
channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstAlsaSink:alsasink0.GstPad:sink: caps = audio/x-raw, 
layout=(string)interleaved, rate=(int)44100, format=(string)S16LE, 
channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = 
audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)44100, 
channels=(int)6, channel-mask=(bitmask)0x000000000000003f
/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad1:
 caps = audio/x-raw, format=(string)F32LE, layout=(string)interleaved, 
rate=(int)44100, channels=(int)6, channel-mask=(bitmask)0x000000000000003f
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
^Chandling interrupt.
SIGINT empfangen, beende.
Interrupt: Stopping pipeline ...
Execution ended after 0:01:10.423666758
Setting pipeline to PAUSED ...


Here the same with  --gst-debug=alsa:5

4 pasuspender -- gst-launch-1.0 --gst-debug=alsa:5 filesrc 
location=Norrlanda.wav  ! decodebin ! audioconvert ! alsasink 
device='a52:CARD=PCH'
0:00:00.027343672  4382      0x2106040 DEBUG                   alsa 
gstalsaplugin.c:71:plugin_init: binding text domain gst-plugins-base-1.0 to 
locale dir /usr/local/share/locale
0:00:00.027514568  4382      0x2106040 DEBUG                   alsa 
gstalsasink.c:253:gst_alsasink_init:<GstAlsaSink@0x2115fc0> initializing 
alsasink
0:00:00.027717244  4382      0x2106040 DEBUG                   alsa 
gstalsasink.c:286:gst_alsasink_getcaps:<alsasink0> device not open, using 
template caps
0:00:00.027772393  4382      0x2106040 DEBUG                   alsa 
gstalsasink.c:286:gst_alsasink_getcaps:<alsasink0> device not open, using 
template caps
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.040879775  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:182:gst_alsa_detect_formats:<alsasink0> skipping non-raw format
0:00:00.040909336  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:182:gst_alsa_detect_formats:<alsasink0> skipping non-raw format
0:00:00.040928466  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:182:gst_alsa_detect_formats:<alsasink0> skipping non-raw format
0:00:00.040934593  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:182:gst_alsa_detect_formats:<alsasink0> skipping non-raw format
0:00:00.040943526  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:49:gst_alsa_detect_rates:<alsasink0> Min. rate = 4000 (1)
0:00:00.040952071  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:50:gst_alsa_detect_rates:<alsasink0> Max. rate = 2147483647 (-1)
0:00:00.040963049  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:383:gst_alsa_detect_channels:<alsasink0> Min. channels = 6 (6)
0:00:00.040972296  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:384:gst_alsa_detect_channels:<alsasink0> Max. channels = 6 (6)
0:00:00.040985254  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:484:gst_alsa_open_iec958_pcm:<alsasink0> Generated device string 
"a52:CARD=PCH,AES0=6"
0:00:00.041005695  4382 0x7fca48047140 WARN                    alsa 
conf.c:4578:parse_args: alsalib error: Unknown parameter AES0
0:00:00.041015943  4382 0x7fca48047140 WARN                    alsa 
conf.c:4711:snd_config_expand: alsalib error: Parse arguments error: No such 
file or directory
0:00:00.041025018  4382 0x7fca48047140 WARN                    alsa 
pcm.c:2239:snd_pcm_open_noupdate: alsalib error: Unknown PCM a52:CARD=PCH,AES0=6
0:00:00.041034761  4382 0x7fca48047140 DEBUG                   alsa 
gstalsa.c:489:gst_alsa_open_iec958_pcm:<alsasink0> failed opening IEC958 device 
a52:CARD=PCH,AES0=6: No such file or directory
0:00:00.041042094  4382 0x7fca48047140 INFO                    alsa 
gstalsasink.c:318:gst_alsasink_getcaps:<alsasink0> returning caps audio/x-raw, 
format=(string)S16LE, layout=(string)interleaved, rate=(int)[ 4000, 2147483647 
], channels=(int)6, channel-mask=(bitmask)0x000000000000003f
0:00:00.041385944  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:422:set_hwparams:<alsasink0> Negotiating to 6 channels @ 44100 Hz 
(format = S16_LE) SPDIF (0)
0:00:00.041425033  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:465:set_hwparams:<alsasink0> buffer time 200000, min 63990, max 
320000
0:00:00.041435888  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:471:set_hwparams:<alsasink0> period time 10000, min 32000, max 
32000
0:00:00.041444321  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:476:set_hwparams:<alsasink0> periods min 1, max 11
0:00:00.041467460  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:493:set_hwparams:<alsasink0> buffer time 191995
0:00:00.041475287  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:507:set_hwparams:<alsasink0> period time 32000
0:00:00.042759637  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:532:set_hwparams:<alsasink0> buffer size 8467, period size 1411
0:00:00.042779085  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:890:gst_alsasink_prepare:<alsasink0> Hardware setup: 
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 6
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 8467
  period_size  : 1411
  period_time  : 32000

0:00:00.042813499  4382 0x7fca48047140 DEBUG                   alsa 
gstalsasink.c:895:gst_alsasink_prepare:<alsasink0> Software setup: 
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1411
  period_event : 0
  start_threshold  : 8466
  stop_threshold   : 8467
  silence_threshold: 0
  silence_size : 0
  boundary     : 4766497255618248704

Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
0:00:00.047386065  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.048300936  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.049142536  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.049986355  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.050788763  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.051595459  4382      0x1f58190 WARN                    alsa 
pcm_hw.c:588:snd_pcm_hw_start: alsalib error: SNDRV_PCM_IOCTL_START failed 
(-77): File descriptor in bad state
0:00:00.051607789  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written 1411 frames out of 
1411
0:00:00.082888781  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written -11 frames out of 1411
0:00:00.082941021  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1025:gst_alsasink_write:<alsasink0> Write error: Resource 
temporarily unavailable
0:00:00.082979746  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written -11 frames out of 1411
0:00:00.082999426  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1025:gst_alsasink_write:<alsasink0> Write error: Resource 
temporarily unavailable
0:00:00.083024354  4382      0x1f58190 DEBUG                   alsa 
gstalsasink.c:1023:gst_alsasink_write:<alsasink0> written -11 frames out of 1411
SIGINT empfangen, beende.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1264609

Title:
  No AC3 paththrough with hda intel ALC887-VD Saucy

Status in “alsa-driver” package in Ubuntu:
  New

Bug description:
  Ubuntu 13.10
  linux-image-extra-3.11.0-14-generic:  3.11.0-14.21

  The original problem is that I have not managed to play AC3 sound bit perfect 
from a DVD to the AMP. 
  I think I have tracked down the problem to an Alsa issue:  

  I expect: 
  aplay -vv -D iec958:CARD=PCH,DEV=0 Norrlanda.wav

  to play the file with all 6 channels via fiber optic to my amplifier like 
outlined at 
  http://alsa.opensrc.org/DigitalOut 

  Instead, there is only silence.

  This is the output:

  $ pasuspender -- aplay -v -v -D iec958:CARD=PCH,DEV=0 
/home/daniel/workspace/Testsounds/Norrlanda.wav  
  Wiedergabe: WAVE '/home/daniel/workspace/Testsounds/Norrlanda.wav' : Signed 
16 bit Little Endian, Rate: 44100 Hz, stereo
  Hooks PCM
  Its setup is:
    stream       : PLAYBACK
    access       : RW_INTERLEAVED
    format       : S16_LE
    subformat    : STD
    channels     : 2
    rate         : 44100
    exact rate   : 44100 (44100/1)
    msbits       : 16
    buffer_size  : 16384
    period_size  : 4096
    period_time  : 92879
    tstamp_mode  : NONE
    period_step  : 1
    avail_min    : 4096
    period_event : 0
    start_threshold  : 16384
    stop_threshold   : 16384
    silence_threshold: 0
    silence_size : 0
    boundary     : 4611686018427387904
  Slave: Hardware PCM card 1 'HDA Intel PCH' device 1 subdevice 0
  Its setup is:
    stream       : PLAYBACK
    access       : RW_INTERLEAVED
    format       : S16_LE
    subformat    : STD
    channels     : 2
    rate         : 44100
    exact rate   : 44100 (44100/1)
    msbits       : 16
    buffer_size  : 16384
    period_size  : 4096
    period_time  : 92879
    tstamp_mode  : NONE
    period_step  : 1
    avail_min    : 4096
    period_event : 0
    start_threshold  : 16384
    stop_threshold   : 16384
    silence_threshold: 0
    silence_size : 0
    boundary     : 4611686018427387904
    appl_ptr     : 0
    hw_ptr       : 0
  #############+                                     | 25%

  
  Here some additional observations: 

  * The Norlanda.wav file is played with 6 channels too pulseaudio (6 sliders 
at the pavucontrol input pane) but only PCM Stereo is transmitted to the amp.
  * I can play stereo wave files fine with the aplay command from above 
  * If I switch to non-audio (ac3) mode, I cannot play stereo files any more, 
but the ac3 file produces still silence. 
  $ iecset -D hw:1 audio 0
  Mode: consumer
  Data: non-audio
  Rate: 48000 Hz
  Copyright: permitted
  Emphasis: none
  Category: PCM coder
  Original: original
  Clock: 1000 ppm
   
  I have already setup a build environment for the hda modules, but I got lost 
inside the code. Any ideas how to nail down the problem? 

  Thank you!

  Daniel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1264609/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to