Hi,
I've attached the output of running AudioSystemGetLineTest against
openjdk-6-src-b09-11_apr_2008 with USE_TRACE defined, and the description of my
sound card reported by lspci -vv.
Tom
Juraj Svec wrote:
Hi,
could you please send some more information? Output of the
TRACE1("Opening ALSA device %s\n", buffer); above the snd_pcm_open would
be great and also your sound card type and version will definitely help.
Thanks,
Juraj
> Hi,
>
> I'm testing a sound-using applet on Fedora 8. Sun JDK 1.6 runs the
applet
> correctly but OpenJDK does not. The applet attempts to open two
audio playback
> lines in succession, without closing the first before attempting to
open the
> second. The first open attempt succeeds but the second attempt fails
with:
>
> javax.sound.sampled.LineUnavailableException: line with format
PCM_SIGNED
> 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
> at
>
com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:511)
> at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:124)
> at
com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:156)
> at PAPU.start(PAPU.java:198)
> at NES.enableSound(NES.java:390)
> at AppletGui.init(AppletGui.java:38)
> at sun.applet.AppletPanel.run(AppletPanel.java:435)
> at java.lang.Thread.run(Thread.java:674)
>
> The exception message is misleading since the line format is
supported. The
> actual cause of the failure is in:
>
> PLATFORM_API_LinuxOS_ALSA_PCMUtils.c:openPCMfromDeviceID
>
> This call:
>
> ret = snd_pcm_open(handle, buffer,
> isSource?SND_PCM_STREAM_PLAYBACK:SND_PCM_STREAM_CAPTURE,
> SND_PCM_NONBLOCK);
>
> returns the error corresponding to "Device or resource busy".
>
> The attached test case demonstrates the failure.
>
> Tom
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: AudioSystemGetLineTest.java
> Type: text/x-java
> Size: 747 bytes
> Desc: not available
> Url :
http://mail.openjdk.java.net/pipermail/sound-dev/attachments/20071123/3375bb6c/attachment.bin
Java_com_sun_media_sound_PortMixerProvider_nGetNumDevices.
> PORT_GetPortMixerCount
PORT_GetPortMixerCount: Opening alsa device "hw:0"...
< PORT_GetPortMixerCount
Java_com_sun_media_sound_PortMixerProvider_nGetNumDevices returning 1.
Java_com_sun_media_sound_PortMixerProvider_nNewPortMixerInfo(0).
> PORT_GetPortMixerDescription
Opening alsa device "hw:0"...
< PORT_GetPortMixerDescription
Java_com_sun_media_sound_PortMixerProvider_nNewPortMixerInfo succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nGetNumDevices.
Opening alsa device "hw:0"...
Java_com_sun_media_sound_DirectAudioDeviceProvider_nGetNumDevices returning 6.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(0).
Get description for device 0
getAudioDeviceDescriptionByIndex(mixerIndex = 0
Returning dmix:0 [default], ALSA (http://www.alsa-project.org), dmix:0, dmix:0,
dmix:0, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(1).
Get description for device 1
getAudioDeviceDescriptionByIndex(mixerIndex = 1
Opening alsa device "hw:0"...
Returning ICH5 [plughw:0,0], ALSA (http://www.alsa-project.org), Intel ICH5,
Intel ICH, Intel ICH5, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(2).
Get description for device 2
getAudioDeviceDescriptionByIndex(mixerIndex = 2
Opening alsa device "hw:0"...
Returning ICH5 [plughw:0,1], ALSA (http://www.alsa-project.org), Intel ICH5,
Intel ICH - MIC ADC, Intel ICH5 - MIC ADC, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(3).
Get description for device 3
getAudioDeviceDescriptionByIndex(mixerIndex = 3
Opening alsa device "hw:0"...
Returning ICH5 [plughw:0,2], ALSA (http://www.alsa-project.org), Intel ICH5,
Intel ICH - MIC2 ADC, Intel ICH5 - MIC2 ADC, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(4).
Get description for device 4
getAudioDeviceDescriptionByIndex(mixerIndex = 4
Opening alsa device "hw:0"...
Returning ICH5 [plughw:0,3], ALSA (http://www.alsa-project.org), Intel ICH5,
Intel ICH - ADC2, Intel ICH5 - ADC2, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo(5).
Get description for device 5
getAudioDeviceDescriptionByIndex(mixerIndex = 5
Opening alsa device "hw:0"...
Returning ICH5 [plughw:0,4], ALSA (http://www.alsa-project.org), Intel ICH5,
Intel ICH - IEC958, Intel ICH5 - IEC958, 1.0.16rc2
Java_com_sun_media_sound_DirectAudioDeviceProvider_nNewDirectAudioDeviceInfo
succeeded.
Opening ALSA device default
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=10000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=20000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=1
could not get format from alsa for format 14
could not get format from alsa for format 15
could not get format from alsa for format 16
could not get format from alsa for format 17
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=8 bytes, channels=1,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=80000 bytes, channels=10000,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=2, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=8 bytes, channels=1,
sampleRate=-1 enc=2, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=80000 bytes, channels=10000,
sampleRate=-1 enc=2, signed=0, bigEndian=0
could not get format from alsa for format 22
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=1
Opening ALSA device default
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=10000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=20000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=32 bits, frameSize=40000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=1
could not get format from alsa for format 14
could not get format from alsa for format 15
could not get format from alsa for format 16
could not get format from alsa for format 17
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=8 bytes, channels=1,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=80000 bytes, channels=10000,
sampleRate=-1 enc=1, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=2, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=8 bytes, channels=1,
sampleRate=-1 enc=2, signed=0, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=80000 bytes, channels=10000,
sampleRate=-1 enc=2, signed=0, bigEndian=0
could not get format from alsa for format 22
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=1, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=0
AddAudioFormat with sigBits=18 bits, frameSize=-1 bytes, channels=-1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=0, bigEndian=1
AddAudioFormat with sigBits=18 bits, frameSize=30000 bytes, channels=10000,
sampleRate=-1 enc=0, signed=0, bigEndian=1
Opening ALSA device hw:0,0
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=6 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=8 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=10 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=12 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=3 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=4 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=5 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=6 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=8 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=12 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=16 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=20 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=32 bits, frameSize=24 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=4 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=8 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=12 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=16 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=20 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=24 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=6 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=9 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=12 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=15 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=24 bits, frameSize=18 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=3 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=6 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=9 bytes, channels=3,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=12 bytes, channels=4,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=15 bytes, channels=5,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=20 bits, frameSize=18 bytes, channels=6,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,0
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,1
Opening ALSA device hw:0,1
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,2
Opening ALSA device hw:0,2
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,3
Opening ALSA device hw:0,3
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,4
AddAudioFormat with sigBits=16 bits, frameSize=2 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=16 bits, frameSize=4 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=1 bytes, channels=1,
sampleRate=-1 enc=0, signed=1, bigEndian=0
AddAudioFormat with sigBits=8 bits, frameSize=2 bytes, channels=2,
sampleRate=-1 enc=0, signed=1, bigEndian=0
Opening ALSA device hw:0,4
> PORT_Open
> PORT_GetPortCount
Simple mixer control 'Master',0
Simple mixer control 'Master Mono',0
Simple mixer control 'Master Surround',0
Simple mixer control 'Headphone Jack Sense',0
Simple mixer control 'PCM',0
Simple mixer control 'Surround',0
Simple mixer control 'Surround Jack Mode',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Line',0
Simple mixer control 'Line Jack Sense',0
Simple mixer control 'CD',0
Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost (+20dB)',0
Simple mixer control 'Mic Select',0
Simple mixer control 'Video',0
Simple mixer control 'Phone',0
Simple mixer control 'Aux',0
Simple mixer control 'Capture',0
Simple mixer control 'Mix',0
Simple mixer control 'Mix Mono',0
Simple mixer control 'Channel Mode',0
Simple mixer control 'Downmix',0
Simple mixer control 'Exchange Front/Surround',0
Simple mixer control 'External Amplifier',0
Simple mixer control 'High Pass Filter Enable',0
Simple mixer control 'Spread Front to Surround and Center/LFE',0
Simple mixer control 'Stereo Mic',0
Simple mixer control 'V_REFOUT Enable',0
< PORT_GetPortCount
< PORT_Open
> PORT_GetPortCount
< PORT_GetPortCount
Java_com_sun_media_sound_PortMixer_nGetPortType(0).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(0).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Master".
Java_com_sun_media_sound_PortMixer_nGetPortType(1).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(1).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Master Mono".
Java_com_sun_media_sound_PortMixer_nGetPortType(2).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(2).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Master Surround".
Java_com_sun_media_sound_PortMixer_nGetPortType(3).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(3).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "PCM".
Java_com_sun_media_sound_PortMixer_nGetPortType(4).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(4).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Surround".
Java_com_sun_media_sound_PortMixer_nGetPortType(5).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(5).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Center".
Java_com_sun_media_sound_PortMixer_nGetPortType(6).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(6).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "LFE".
Java_com_sun_media_sound_PortMixer_nGetPortType(7).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(7).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Line".
Java_com_sun_media_sound_PortMixer_nGetPortType(8).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(8).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "CD".
Java_com_sun_media_sound_PortMixer_nGetPortType(9).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(9).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Mic".
Java_com_sun_media_sound_PortMixer_nGetPortType(10).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(10).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Phone".
Java_com_sun_media_sound_PortMixer_nGetPortType(11).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 256.
Java_com_sun_media_sound_PortMixer_nGetPortName(11).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Aux".
Java_com_sun_media_sound_PortMixer_nGetPortType(12).
> PORT_GetPortType
< PORT_GetPortType
Java_com_sun_media_sound_PortMixerProvider_nGetPortType returning 1.
Java_com_sun_media_sound_PortMixer_nGetPortName(12).
> PORT_GetPortName
< PORT_GetPortName
Java_com_sun_media_sound_PortMixerProvider_nGetName returning "Capture".
> PORT_Close
< PORT_Close
> DAUDIO_Open
Opening ALSA device plughw:0,0
DAUDIO_Open: period size = 1024 frames, periods = 16. Buffer size: 65536
bytes.
< DAUDIO_Open: Opened device successfully. Handle=0x8b73fe8
> DAUDIO_Open
Opening ALSA device plughw:0,0
DAUDIO_Close
Exception in thread "main" javax.sound.sampled.LineUnavailableException: line
with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
not supported.
at
com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(DirectAudioDevice.java:511)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:124)
at com.sun.media.sound.AbstractDataLine.open(AbstractDataLine.java:156)
at AudioSystemGetLineTest.main(AudioSystemGetLineTest.java:15)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
AC'97 Audio Controller (rev 02)
Subsystem: Dell Unknown device 0155
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 17
Region 0: I/O ports at ee00 [size=256]
Region 1: I/O ports at edc0 [size=64]
Region 2: Memory at febffa00 (32-bit, non-prefetchable) [size=512]
Region 3: Memory at febff900 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0