Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

"Sample format non available" with snd-usb-audio [solved]

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
vputz
Guru
Guru
User avatar
Posts: 310
Joined: Wed Mar 16, 2005 7:21 pm
Location: Oxford, England

"Sample format non available" with snd-usb-audio [

  • Quote

Post by vputz » Tue Oct 09, 2007 10:53 pm

Okay, annoying problem. I've got an Audigy 2 in my computer (card 0) and a Plantronics headset (card 1). I can see both of them in /proc/asound/devices, and alsamixer can configure them and everything looks right. Playing something using card 0 presumably works (no errors, but I have no speakers right now), but playing anything on the headseat dies. using "aplay -D hw:0,0" works fine, in other words, but "aplay -D hw:1,0" gives me
aplay: set_params:900: Sample format non available
The odd thing is that with an earlier kernel it worked semi-fine (unplug/replug, restart alsa, no worries).

Now, I figured it might be fixable by making an .asoundrc with the line "format (something)". But that's not the case. With "format S16_LE" it gives the same error, although with any other format (ok, I just tried "S32_LE" and "S24_LE") it gives
aplay: set_params:878: Broken configuration for this PCM: no configurations available
Cool. It's a Plantronics USB headset. I'm stumped. Tried searching but just got confused. Save me!
Last edited by vputz on Thu Oct 11, 2007 8:27 pm, edited 1 time in total.
Top
absoluteflatness
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 138
Joined: Sun Jan 21, 2007 6:01 am
Location: Blacksburg or Falls Church, VA

  • Quote

Post by absoluteflatness » Wed Oct 10, 2007 6:22 am

"cat /proc/asound/card1/stream0", or "lsusb -v" should be able to tell you your device's accepted sample rates.

You could also try doing "aplay -D plughw:1,0". That should do any necessary sample conversion for you, hopefully.
Top
vputz
Guru
Guru
User avatar
Posts: 310
Joined: Wed Mar 16, 2005 7:21 pm
Location: Oxford, England

  • Quote

Post by vputz » Wed Oct 10, 2007 6:34 am

Hm.
$ cat /proc/asound/card1/stream0
Plantronics Plantronics Headset at usb-0000:00:02.1-1.3, full speed : USB Audio

Playback:
Status: Stop
Interface 1
Altset 1
Format: 0x2
Channels: 1
Endpoint: 1 OUT (ADAPTIVE)
Rates: 6400 - 48000 (continuous)
Interface 1
Altset 2
Format: 0x2
Channels: 2
Endpoint: 1 OUT (ADAPTIVE)
Rates: 6400 - 48000 (continuous)

Capture:
Status: Stop
Interface 2
Altset 1
Format: 0x0
Channels: 1
Endpoint: 4 IN (SYNC)
Rates: 6400 - 48000 (continuous)
Interface 2
Altset 2
Format: 0x2
Channels: 1
Endpoint: 4 IN (SYNC)
Rates: 6400 - 48000 (continuous)
Interface 2
Altset 3
Format: 0x2
Channels: 2
Endpoint: 4 IN (SYNC)
Rates: 6400 - 48000 (continuous)

$ aplay -D plughw:1,0 a_sound_file.mp3
Playing raw data 'a_sound_file.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:961: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: U8
SUBFORMAT: STD
SAMPLE_BITS: 8
FRAME_BITS: 8
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 1000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 4000
TICK_TIME: 1000
I then tried an .asoundrc with rate 44100 to no avail. I'm sure there's something obvious I'm missing, but Alsa's quirky enough that I'm not sure what it is.
Top
vputz
Guru
Guru
User avatar
Posts: 310
Joined: Wed Mar 16, 2005 7:21 pm
Location: Oxford, England

  • Quote

Post by vputz » Thu Oct 11, 2007 8:28 pm

Found the missing bit. Playing USB audio through a hub seems to require a kernel option I wasn't aware of--I believe it was CONFIG_USB_EHCI_SPLIT_ISO=y. Added that and it seems to be happy.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic