alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: TS Lura <tslura@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Media players report 96khz, proc reports 44khz
Date: Sun, 3 Apr 2011 23:58:45 +0200	[thread overview]
Message-ID: <BANLkTindWcA4WpVf79aDL-43eqWUvMa2XA@mail.gmail.com> (raw)

Hey,

 I am trying to play a 96kHz/24-bit pcm file:


 {{{
 [2309][root@ubuntu:~]# file test.wav
 test.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 32 bit,
 stereo 96000 Hz
 }}}


 Which plays with full 96kHz resolution under aplay. But under any other
 player as VLC, mplayer, totem it plays at 44kHz reported by
 /proc/asound/card1/stream0, even if the player is reporting to be playing
 at 96kHz.

 Others have reported the same problem:

http://www.head-fi.org/forum/thread/243027/how-to-make-m-audio-transit-worn-in-ubuntu

 Some people at mplayer @ irc.freenode.net encouraged me to file a bug
 report on this issue. Hope it is useful.

 Cheers,
 TSLura

I have also filed a ticked with pulseAudio
--
Ticket URL: <http://pulseaudio.org/ticket/930>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


 {{{

 [2336][torstefan@ubuntu:/proc/asound/card1]$ aplay -l
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 card 1: USB [Transit USB], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
 card 1: USB [Transit USB], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 }}}





 {{{
 [2329][root@ubuntu:~]# aplay -D plughw:1,0 test.wav Playing WAVE
 'test.wav' : Signed 32 bit Little Endian, Rate 96000 Hz, Stereo

 Every 0.5s: cat stream0
 Sun Apr  3 23:29:28 2011

 M-Audio Transit USB at usb-0000:00:1d.7-1.2.3, full speed : USB Audio

 Playback:
  Status: Running
    Interface = 1
    Altset = 1
    URBs = 3 [ 8 8 8 ]
    Packet Size = 576
    Momentary freq = 96000 Hz (0x60.0000)
  Interface 1
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 48001 - 96000 (continuous)
  Interface 1
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (NONE)

 }}}

 {{{
 [2329][root@ubuntu:~]# mplayer test.wav
 MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
 mplayer: could not connect to socket
 mplayer: No such file or directory
 Failed to open LIRC support. You will not be able to use your remote
 control.

 Playing test.wav.
 Audio only file format detected.
 ==========================================================================
 Opening audio decoder: [pcm] Uncompressed PCM audio decoder
 AUDIO: 96000 Hz, 2 ch, s32le, 6144.0 kbit/100.00% (ratio: 768000->768000)
 Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
 ==========================================================================
 AO: [pulse] 96000Hz 2ch s32le (4 bytes per sample)
 Video: no video
 Starting playback...
 }}}

 {{{
 Every 0.5s: cat stream0
 Sun Apr  3 23:30:40 2011

 M-Audio Transit USB at usb-0000:00:1d.7-1.2.3, full speed : USB Audio

 Playback:
  Status: Running
    Interface = 1
    Altset = 3
    URBs = 6 [ 4 4 4 4 4 4 ]
    Packet Size = 196
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 1
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 48001 - 96000 (continuous)
  Interface 1
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (NONE)
 }}}

 {{{
 [2330][torstefan@ubuntu:~]$ vlc test.wav
 VLC media player 1.1.4 The Luggage (revision exported)
 Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
 Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
 [0x9894914] main libvlc: Running vlc with the default interface. Use
 'cvlc' to use vlc without interface.
 Blocked: call to setlocale(6, "")
 Blocked: call to sigaction(17, 0xb48ff0d4, 0xb48ff048)
 Warning: call to signal(13, 0x1)
 Warning: call to signal(13, 0x1)
 Warning: call to srand(1302210069)
 Warning: call to rand()
 Blocked: call to setlocale(6, "")

 (process:11503): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
 Warning: call to signal(13, 0x1)
 Warning: call to signal(13, 0x1)
 }}}

 {{{
 Every 0.5s: cat stream0
 Sun Apr  3 23:31:17 2011

 M-Audio Transit USB at usb-0000:00:1d.7-1.2.3, full speed : USB Audio

 Playback:
  Status: Running
    Interface = 1
    Altset = 3
    URBs = 6 [ 4 4 4 4 4 4 ]
    Packet Size = 196
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 1
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 48001 - 96000 (continuous)
  Interface 1
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (NONE)
    Rates: 8000 - 48000 (continuous)
  Interface 1
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 8000 - 48000 (continuous)

 Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 48001 - 96000 (continuous)
  Interface 2
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 8000 - 48000 (continuous)
  Interface 2
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 8000 - 48000 (continuous)

 }}}

 {{{
 [2332][torstefan@ubuntu:~]$ totem test.wav


 Every 0.5s: cat stream0
 Sun Apr  3 23:32:33 2011

 M-Audio Transit USB at usb-0000:00:1d.7-1.2.3, full speed : USB Audio

 Playback:
  Status: Running
    Interface = 1
    Altset = 3
    URBs = 6 [ 4 4 4 4 4 4 ]
    Packet Size = 196
    Momentary freq = 44100 Hz (0x2c.199a)
  Interface 1
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ADAPTIVE)
    Rates: 48001 - 96000 (continuous)
  Interface 1
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (NONE)
    Rates: 8000 - 48000 (continuous)
  Interface 1
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 8000 - 48000 (continuous)

 Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: S24_3LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 48001 - 96000 (continuous)
  Interface 2
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 8000 - 48000 (continuous)
  Interface 2
    Altset 3
    Format: S16_LE
    Channels: 2
    Endpoint: 5 IN (ASYNC)
    Rates: 8000 - 48000 (continuous)
 }}}



 System dmsg
 http://pastebin.com/SmWamhja

--
Ticket URL: <http://pulseaudio.org/ticket/930>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server

             reply	other threads:[~2011-04-03 21:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03 21:58 TS Lura [this message]
2011-04-04 10:58 ` Media players report 96khz, proc reports 44khz Takashi Iwai

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=BANLkTindWcA4WpVf79aDL-43eqWUvMa2XA@mail.gmail.com \
    --to=tslura@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).