* ppc usb-audio problems @ 2002-10-06 1:05 Albert Jongkit Wong 2002-10-07 11:20 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Albert Jongkit Wong @ 2002-10-06 1:05 UTC (permalink / raw) To: alsa-devel I'm using gentoo linux ver 1.4rc1 on a G4 cube with gcc3.2 and alsa-0.9.0rc3 and am having some major problems getting alsa to work properly. When trying to use the native alsa interface, most programs either give out just static or if they manage to play something coherent, the output is noisy and sounds as if it has been clipped. If I try to use the OSS emulation, I get error messages like: No supported rate found or ** WARNING **: SNDCTL_DSP_SETFMT ioctl failed: Invalid argument (The first is from mpg123 and the second is from xmms). After this message, mpg123 just quits. Xmms however, continues to function and actually gives clear, coorect output. So far, no other program works. Any ideas on what might be happening? I had a similar effect with alsa-0.9.0rc2 on gentoo linux 1.2 using gcc-2.95.3. Thanks, Albert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-06 1:05 ppc usb-audio problems Albert Jongkit Wong @ 2002-10-07 11:20 ` Takashi Iwai 2002-10-09 1:09 ` Albert Jongkit Wong 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-10-07 11:20 UTC (permalink / raw) To: Albert Jongkit Wong; +Cc: alsa-devel At Sat, 5 Oct 2002 18:05:50 -0700 (PDT), Albert Jongkit Wong wrote: > > I'm using gentoo linux ver 1.4rc1 on a G4 cube with gcc3.2 and > alsa-0.9.0rc3 and am having some major problems getting alsa to work > properly. which device are you using? > When trying to use the native alsa interface, most programs either give > out just static or if they manage to play something coherent, the output > is noisy and sounds as if it has been clipped. please try the cvs version if you use a usb driver. the usb driver has been changed largely since rc3. also, please send me the output of "lsusb -v" for the device. this will help debugging very much. ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-07 11:20 ` Takashi Iwai @ 2002-10-09 1:09 ` Albert Jongkit Wong 2002-10-09 10:46 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Albert Jongkit Wong @ 2002-10-09 1:09 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel > which device are you using? The "Apple Speakers" that come with the cube. (They're just 2 usb speakers. No subwoofers or anything like that). > please try the cvs version if you use a usb driver. > the usb driver has been changed largely since rc3. I upgraded my drivers to the latest usb version and now mpg123 works. However, the native alsa interface still doesn't seem to work. Running xmms with the native alsa plugin still produces just static. Trying to start esd produces the following error messages: Audio device open for 44.1Khz, stereo, 16bit failed Trying 44.1Khz, 8bit stereo. Audio device open for 44.1Khz, stereo, 8bit failed Trying 48Khz, 16bit stereo. Audio device open for 48Khz, stereo,16bit failed Trying 22.05Khz, 8bit stereo. Audio device open for 22.05Khz, stereo, 8bit failed Trying 44.1Khz, 16bit mono. Audio device open for 44.1Khz, mono, 8bit failed Trying 22.05Khz, 8bit mono. Audio device open for 22.05Khz, mono, 8bit failed Trying 11.025Khz, 8bit stereo. Audio device open for 11.025Khz, stereo, 8bit failed Trying 11.025Khz, 8bit mono. Audio device open for 11.025Khz, mono, 8bit failed Trying 8.192Khz, 8bit mono. Audio device open for 8.192Khz, mono, 8bit failed Trying 8Khz, 8bit mono. Sound device inadequate for Esound. Fatal. The resulting entry for my speakers from running "lsusb -v" is attached at the end. Let me know if I can provide any more info or any help. Thanks, Albert *** Result from "lsusb -v" *** Bus 001 Device 002: ID ac05:0111 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 10.01 bDeviceClass 0 Interface bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0xac05 idProduct 0x0111 bcdDevice 1.00 iManufacturer 3 Apple Computer, Inc. iProduct 1 Speakers iSerial 2 p4000 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 239 bNumInterfaces 3 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 0 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 43 bInCollection 1 baInterfaceNr( 0) 1 AudioControl Interface Descriptor: bLength 12 bDescriptorType 36 bDescriptorSubtype 2 (INPUT_TERMINAL) bTerminalID 1 wTerminalType 0x0101 USB Streaming bAssocTerminal 0 bNrChannels 2 wChannelConfig 0x0003 Left Front (L) Right Front (R) iChannelNames 0 iTerminal 0 AudioControl Interface Descriptor: bLength 13 bDescriptorType 36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 2 bSourceID 1 bControlSize 2 bmaControls( 0) 0x55 bmaControls( 1) 0x01 Mute Bass Treble Automatic Gain Bass Boost bmaControls( 0) 0x02 bmaControls( 1) 0x00 Volume bmaControls( 0) 0x02 bmaControls( 1) 0x00 Volume iFeature 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 3 wTerminalType 0x0301 Speaker bAssocTerminal 0 bSourceID 2 iTerminal 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 Interface Descriptor: bLength 11 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 junk at descriptor end: 01 00 AudioControl Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 0 frames wFormatTag 1 PCM AudioControl Interface Descriptor: bLength 14 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 1 bSubframeSize 2 bBitResolution 16 bSamFreqType 0 Continuous tLowerSamFreq 5000 tUpperSamFreq 50000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 9 Transfer Type Isochronous Synch Type Adaptive wMaxPacketSize 112 bInterval 1 bRefresh 0 bSynchAddress 0 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bLockDelayUnits 2 Decoded PCM samples wLockDelay 1 Decoded PCM samples Interface Descriptor: bLength 11 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 2 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 junk at descriptor end: 01 00 AudioControl Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 0 frames wFormatTag 1 PCM AudioControl Interface Descriptor: bLength 14 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType 0 Continuous tLowerSamFreq 5000 tUpperSamFreq 50000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 9 Transfer Type Isochronous Synch Type Adaptive wMaxPacketSize 224 bInterval 1 bRefresh 0 bSynchAddress 0 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bLockDelayUnits 2 Decoded PCM samples wLockDelay 1 Decoded PCM samples Interface Descriptor: bLength 11 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 3 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 junk at descriptor end: 01 00 AudioControl Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 0 frames wFormatTag 1 PCM AudioControl Interface Descriptor: bLength 14 bDescriptorType 36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 3 bBitResolution 24 bSamFreqType 0 Continuous tLowerSamFreq 5000 tUpperSamFreq 50000 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 9 Transfer Type Isochronous Synch Type Adaptive wMaxPacketSize 336 bInterval 1 bRefresh 0 bSynchAddress 0 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 bDescriptorSubtype 1 (EP_GENERAL) bmAttributes 0x00 bLockDelayUnits 2 Decoded PCM samples wLockDelay 1 Decoded PCM samples Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 2 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Devices bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.00 bCountryCode 0 bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 49 cannot get report descriptor Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 2 bInterval 8 Language IDs: (length=6) 0009 English(English) 0004 Chinese(Chinese) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-09 1:09 ` Albert Jongkit Wong @ 2002-10-09 10:46 ` Takashi Iwai 2002-10-09 18:08 ` Albert Jongkit Wong 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-10-09 10:46 UTC (permalink / raw) To: Albert Jongkit Wong; +Cc: alsa-devel At Tue, 8 Oct 2002 18:09:18 -0700 (PDT), Albert Jongkit Wong wrote: > > > which device are you using? > > The "Apple Speakers" that come with the cube. (They're just 2 usb > speakers. No subwoofers or anything like that). > > > please try the cvs version if you use a usb driver. > > the usb driver has been changed largely since rc3. > > I upgraded my drivers to the latest usb version and now mpg123 works. > However, the native alsa interface still doesn't seem to work. > > Running xmms with the native alsa plugin still produces just static. do you mean that the playback position moves but no sounds come out? and does oss plugin work? > Trying to start esd produces the following error messages: please check /proc/asound/card0/stream0 which format is supported actually. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-09 10:46 ` Takashi Iwai @ 2002-10-09 18:08 ` Albert Jongkit Wong 2002-10-10 11:44 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Albert Jongkit Wong @ 2002-10-09 18:08 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel > do you mean that the playback position moves but no sounds come out? > and does oss plugin work? With the alsa plugin, the playback position moves and I get stuff that just sounds like static instead of music (the volume controls still work). The oss plugin works fine. I just tried another test by doing: mpg321 -s /mnt/mp3/Mpegs/Anime/Arc\ en\ Ciel,\ Le/DIVE_T~1.MP3 | aplay -c 2 -t raw -r 44100 -f S16_LE - Which worked properly. Is it possible that xmms, esd, mplayer, etc are the broken ones? > please check /proc/asound/card0/stream0 which format is supported > actually. I'm not sure how to read this output, so I'm pasting it below. terran@Mittermeyer asound $ cat card0/stream0 Apple Computer, Inc. Speakers : USB Audio Playback: Status: Stop Interface 1 Altset 1 Format: S16_LE Channels: 1 Endpoint: 1 OUT (ADAPTIVE) Rates: 5000 - 50000 (continous) Interface 1 Altset 2 Format: S16_LE Channels: 2 Endpoint: 1 OUT (ADAPTIVE) Rates: 5000 - 50000 (continous) Interface 1 Altset 3 Format: S24_3LE Channels: 2 Endpoint: 1 OUT (ADAPTIVE) Rates: 5000 - 50000 (continous) Thanks, Albert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-09 18:08 ` Albert Jongkit Wong @ 2002-10-10 11:44 ` Takashi Iwai 2002-10-11 5:31 ` Albert Jongkit Wong 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-10-10 11:44 UTC (permalink / raw) To: Albert Jongkit Wong; +Cc: alsa-devel At Wed, 9 Oct 2002 11:08:43 -0700 (PDT), Albert Jongkit Wong wrote: > > > do you mean that the playback position moves but no sounds come out? > > and does oss plugin work? > > With the alsa plugin, the playback position moves and I get stuff that > just sounds like static instead of music (the volume controls still work). > The oss plugin works fine. strange... > I just tried another test by doing: > > mpg321 -s /mnt/mp3/Mpegs/Anime/Arc\ en\ Ciel,\ Le/DIVE_T~1.MP3 | aplay -c > 2 -t raw -r 44100 -f S16_LE - > > Which worked properly. Is it possible that xmms, esd, mplayer, etc are > the broken ones? i don't think all of them are broken. possibly this behavior might be influenced by the period size, etc. can you check /proc/asound/card0/pcm0p/sub0/hw_params at each case and compare them? > > > please check /proc/asound/card0/stream0 which format is supported > > actually. > > I'm not sure how to read this output, so I'm pasting it below. > > terran@Mittermeyer asound $ cat card0/stream0 > Apple Computer, Inc. Speakers : USB Audio > > Playback: > Status: Stop > Interface 1 > Altset 1 > Format: S16_LE > Channels: 1 > Endpoint: 1 OUT (ADAPTIVE) > Rates: 5000 - 50000 (continous) > Interface 1 > Altset 2 > Format: S16_LE > Channels: 2 > Endpoint: 1 OUT (ADAPTIVE) > Rates: 5000 - 50000 (continous) > Interface 1 > Altset 3 > Format: S24_3LE > Channels: 2 > Endpoint: 1 OUT (ADAPTIVE) > Rates: 5000 - 50000 (continous) ok, the above means that the pcm supports three different formats, 16bit and 24bit, one or two channels for S16_LE. it looks ok. btw, if you look at this file during the pcm is running, the running status is also shown. Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-10 11:44 ` Takashi Iwai @ 2002-10-11 5:31 ` Albert Jongkit Wong 2002-10-11 11:50 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Albert Jongkit Wong @ 2002-10-11 5:31 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel > i don't think all of them are broken. > possibly this behavior might be influenced by the period size, etc. > can you check /proc/asound/card0/pcm0p/sub0/hw_params at each case and > compare them? So I tried playing the same mp3 in 3 methods. The first was using xmms through its oss output device. The second was using xmms with its alsa plugin. The third was using the pipe of raw sound data from mpg123 to aplay (mpg321 -s /mnt/mp3/Mpegs/Anime/Arc\ en\ Ciel,\ Le/DIVE_T~1.MP3 | aplay -c 2 -t raw -r 44100 -f S16_LE -). Here's the output of hw_params for each: xmms (oss) terran@Mittermeyer terran $ cat /proc/asound/card0/pcm0p/sub0/hw_params access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 1024 buffer_size: 16384 tick_time: 10000 OSS format: S16_BE OSS channels: 2 OSS rate: 44100 OSS period bytes: 4096 OSS periods: 16 xmms (alsa) terran@Mittermeyer terran $ cat /proc/asound/card0/pcm0p/sub0/hw_params access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 2205 buffer_size: 16384 tick_time: 10000 mpg123 piped to aplay terran@Mittermeyer terran $ cat /proc/asound/card0/pcm0p/sub0/hw_params access: RW_INTERLEAVED format: S16_LE subformat: STD channels: 2 rate: 44100 (44100/1) period_size: 4096 buffer_size: 16384 tick_time: 10000 You'ore right, the period_size is different for each test. The xmms alsa plugin is not a power of 2 however. Is that problem? esd and mplayer still refuse to start. Esd failing to set any format giving this output: terran@Mittermeyer terran $ esd Audio device open for 44.1Khz, stereo, 16bit failed Trying 44.1Khz, 8bit stereo. Audio device open for 44.1Khz, stereo, 8bit failed Trying 48Khz, 16bit stereo. Audio device open for 48Khz, stereo,16bit failed Trying 22.05Khz, 8bit stereo. Audio device open for 22.05Khz, stereo, 8bit failed Trying 44.1Khz, 16bit mono. Audio device open for 44.1Khz, mono, 8bit failed Trying 22.05Khz, 8bit mono. Audio device open for 22.05Khz, mono, 8bit failed Trying 11.025Khz, 8bit stereo. Audio device open for 11.025Khz, stereo, 8bit failed Trying 11.025Khz, 8bit mono. Audio device open for 11.025Khz, mono, 8bit failed Trying 8.192Khz, 8bit mono. Audio device open for 8.192Khz, mono, 8bit failed Trying 8Khz, 8bit mono. Sound device inadequate for Esound. Fatal. And mplayer apparently couldn't initialize its alsa9 codec: ========================================================================== AO: [alsa9] 24000Hz 2ch Signed 16-bit (Big-Endian) alsa-init: testing and bugreports are welcome. alsa-init: requested format: 24000 Hz, 2 channels, Signed 16-bit (Big-Endian) alsa-init: 1 soundcard found, using: hw:0,0 alsa-init: unable to set format: Invalid argument couldn't open/init audio device -> no sound Audio: no sound!!! Is there any more information I can provide? Thanks for being so patient with this. It is very much appreciated. -Albert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-11 5:31 ` Albert Jongkit Wong @ 2002-10-11 11:50 ` Takashi Iwai 2002-10-12 9:55 ` Albert Jongkit Wong 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-10-11 11:50 UTC (permalink / raw) To: Albert Jongkit Wong; +Cc: alsa-devel Hi, At Thu, 10 Oct 2002 22:31:33 -0700 (PDT), Albert Jongkit Wong wrote: > > > i don't think all of them are broken. > > possibly this behavior might be influenced by the period size, etc. > > can you check /proc/asound/card0/pcm0p/sub0/hw_params at each case and > > compare them? > > > xmms (oss) ... > OSS format: S16_BE ^^^^^^ > xmms (alsa) ... > format: S16_LE ^^^^^^ ah, perhaps xmms alsa plugin doesn't care the endianess. if so, it's a bug of alsa output plugin. > > You'ore right, the period_size is different for each test. The xmms alsa > plugin is not a power of 2 however. Is that problem? > > esd and mplayer still refuse to start. > > Esd failing to set any format giving this output: > > terran@Mittermeyer terran $ esd > Audio device open for 44.1Khz, stereo, 16bit failed > Trying 44.1Khz, 8bit stereo. > Audio device open for 44.1Khz, stereo, 8bit failed > Trying 48Khz, 16bit stereo. > Audio device open for 48Khz, stereo,16bit failed > Trying 22.05Khz, 8bit stereo. > Audio device open for 22.05Khz, stereo, 8bit failed > Trying 44.1Khz, 16bit mono. > Audio device open for 44.1Khz, mono, 8bit failed > Trying 22.05Khz, 8bit mono. > Audio device open for 22.05Khz, mono, 8bit failed > Trying 11.025Khz, 8bit stereo. > Audio device open for 11.025Khz, stereo, 8bit failed > Trying 11.025Khz, 8bit mono. > Audio device open for 11.025Khz, mono, 8bit failed > Trying 8.192Khz, 8bit mono. > Audio device open for 8.192Khz, mono, 8bit failed > Trying 8Khz, 8bit mono. > Sound device inadequate for Esound. Fatal. hmm, most likely the same reason. esd requests big-endian formats (as native machine format), which are not supported on usb devices. try to use the pcm 'plughw:0,0' instead of 'hw:0,0'. (well, iirc, there is a bug in esound alsa output. the command-line option is never passed as the device...) > > And mplayer apparently couldn't initialize its alsa9 codec: > > ========================================================================== > AO: [alsa9] 24000Hz 2ch Signed 16-bit (Big-Endian) > alsa-init: testing and bugreports are welcome. > alsa-init: requested format: 24000 Hz, 2 channels, Signed 16-bit > (Big-Endian) ^^^^^^^^^^^^ > alsa-init: 1 soundcard found, using: hw:0,0 > alsa-init: unable to set format: Invalid argument > couldn't open/init audio device -> no sound > Audio: no sound!!! ditto. you need to convert endianess. plughw:0,0 will do that. ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-11 11:50 ` Takashi Iwai @ 2002-10-12 9:55 ` Albert Jongkit Wong 2002-10-14 22:57 ` Tom Prado 0 siblings, 1 reply; 10+ messages in thread From: Albert Jongkit Wong @ 2002-10-12 9:55 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel Hello, > ah, perhaps xmms alsa plugin doesn't care the endianess. > if so, it's a bug of alsa output plugin. I started hacking at the code. It looks like the xmms alsa plugin is fine (if a bit messy). However, it looks like their mpg123 input plugin is always output big-endian data even when it says it is outputing the native format data...hrm... I'm not sure if that was intentional or not. In either case, it's their bug so I'm bugging them about it now. > hmm, most likely the same reason. > esd requests big-endian formats (as native machine format), which are > not supported on usb devices. > try to use the pcm 'plughw:0,0' instead of 'hw:0,0'. > (well, iirc, there is a bug in esound alsa output. the command-line > option is never passed as the device...) I tried esd -d plughw:0,0 and it worked over here. Is it more proper to communicate to alsa through plughw rather than hw? It sounds like this interface is the smarter way to go... I'm hesitating before suggesting this to esound or mplayer since I'd rather not suggest something wrong. Thanks for helping me with this problem. My system's working great now. :) -Albert ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ppc usb-audio problems 2002-10-12 9:55 ` Albert Jongkit Wong @ 2002-10-14 22:57 ` Tom Prado 0 siblings, 0 replies; 10+ messages in thread From: Tom Prado @ 2002-10-14 22:57 UTC (permalink / raw) To: Albert Jongkit Wong; +Cc: Takashi Iwai, alsa-devel I had shot some emails around with the esound maintainers regarding using plughw:# instead of hw:# as the default device and it was decided to leave it at hw:#. I'd prefer it to be plughw as well. In the meantime, if you need plughw:# to make you card work, just put it in the spawn options in /etc/esd.conf (or /etc/esd/esd.conf depending on dist) Tom Prado On Sat, 12 Oct 2002, Albert Jongkit Wong wrote: > Hello, > > > ah, perhaps xmms alsa plugin doesn't care the endianess. > > if so, it's a bug of alsa output plugin. > > I started hacking at the code. It looks like the xmms alsa plugin is fine > (if a bit messy). However, it looks like their mpg123 input plugin is > always output big-endian data even when it says it is outputing the native > format data...hrm... I'm not sure if that was intentional or not. In > either case, it's their bug so I'm bugging them about it now. > > > hmm, most likely the same reason. > > esd requests big-endian formats (as native machine format), which are > > not supported on usb devices. > > try to use the pcm 'plughw:0,0' instead of 'hw:0,0'. > > (well, iirc, there is a bug in esound alsa output. the command-line > > option is never passed as the device...) > > I tried esd -d plughw:0,0 and it worked over here. Is it more proper to > communicate to alsa through plughw rather than hw? It sounds like this > interface is the smarter way to go... I'm hesitating before suggesting > this to esound or mplayer since I'd rather not suggest something wrong. > > Thanks for helping me with this problem. My system's working great now. > :) > > -Albert > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-devel > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-10-14 22:57 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-10-06 1:05 ppc usb-audio problems Albert Jongkit Wong 2002-10-07 11:20 ` Takashi Iwai 2002-10-09 1:09 ` Albert Jongkit Wong 2002-10-09 10:46 ` Takashi Iwai 2002-10-09 18:08 ` Albert Jongkit Wong 2002-10-10 11:44 ` Takashi Iwai 2002-10-11 5:31 ` Albert Jongkit Wong 2002-10-11 11:50 ` Takashi Iwai 2002-10-12 9:55 ` Albert Jongkit Wong 2002-10-14 22:57 ` Tom Prado
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.