On Friday, November 8, 2013 1:05:37 PM UTC-7, Keith Ruenheck wrote:
>
> Levi, 
> Thank you for responding.
>
> Making resample-method=speex-fixed-3 in /etc/pulse/daemon.conf file didn't 
> help, still no loopback.  I attached the file in case there are other 
> questionable parameters.
>
> The pactl list command showed that source #1 and sink #0 are 'running', 
> the output is as follows:
>
>
 
OK, the following entry lets us know Sink #0 is running, and everything 
looks to be in good shape there.

Notice that it has a 'Monitor Source', which is essentially a way to get at 
all the samples that have been sent to this sink and thus to its audio 
port.  If samples were playing, we'd expect to see the monitor source 
active.


Sink #0
>     State: RUNNING
>     Name: 
> alsa_output.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC.analog-stereo
>     Description: USB AUDIO  CODEC Analog Stereo
>     Driver: module-alsa-card.c
>     Sample Specification: s16le 2ch 44100Hz
>     Channel Map: front-left,front-right
>     Owner Module: 4
>     Mute: no
>     Volume: 0:  54% 1:  54%
>             0: -16.00 dB 1: -16.00 dB
>             balance 0.00
>     Base Volume: 100%
>                  0.00 dB
>     Monitor Source: 
> alsa_output.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC.analog-stereo.monitor
>     Latency: 0 usec, configured 16666 usec
>     Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
>     Properties:
>         alsa.resolution_bits = "16"
>         device.api = "alsa"
>         device.class = "sound"
>         alsa.class = "generic"
>         alsa.subclass = "generic-mix"
>         alsa.name = "USB Audio"
>         alsa.id = "USB Audio"
>         alsa.subdevice = "0"
>         alsa.subdevice_name = "subdevice #0"
>         alsa.device = "0"
>         alsa.card = "1"
>         alsa.card_name = "USB AUDIO  CODEC"
>         alsa.long_card_name = "BurrBrown from Texas Instruments USB AUDIO  
> CODEC at usb-musb-hdrc.1.auto-1.6,"
>         alsa.driver_name = "snd_usb_audio"
>         device.bus_path = "platform-musb-hdrc.1.auto-usb-0:1.6:1.0"
>         sysfs.path = 
> "/devices/ocp.2/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.6/1-1.6:1.0/sound/card1"
>         udev.id = 
> "usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC"
>         device.bus = "usb"
>         device.vendor.id = "08bb"
>         device.vendor.name = "BurrBrown from Texas Instruments"
>         device.product.id = "29c0"
>         device.product.name = "USB AUDIO  CODEC"
>         device.serial = "BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC"
>         device.string = "hw:1"
>         device.buffering.buffer_size = "352800"
>         device.buffering.fragment_size = "176400"
>         device.access_mode = "mmap+timer"
>         device.profile.name = "analog-stereo"
>         device.profile.description = "Analog Stereo"
>         device.description = "USB AUDIO  CODEC Analog Stereo"
>         alsa.mixer_name = "USB Mixer"
>         alsa.components = "USB08bb:29c0"
>         module-udev-detect.discovered = "1"
>         device.icon_name = "audio-card-usb"
>     Ports:
>         analog-output: Analog Output (priority: 9900)
>     Active Port: analog-output
>     Formats:
>         pcm
>
>

This entry shows us the monitor source for Sink 0, but as you can see it's 
currently in the IDLE state, meaning that no samples are being played out.
 

> Source #0
>     State: IDLE
>     Name: 
> alsa_output.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC.analog-stereo.monitor
>     Description: Monitor of USB AUDIO  CODEC Analog Stereo
>     Driver: module-alsa-card.c
>     Sample Specification: s16le 2ch 44100Hz
>     Channel Map: front-left,front-right
>     Owner Module: 4
>     Mute: no
>     Volume: 0: 100% 1: 100%
>             0: 0.00 dB 1: 0.00 dB
>             balance 0.00
>     Base Volume: 100%
>                  0.00 dB
>     Monitor of Sink: 
> alsa_output.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC.analog-stereo
>     Latency: 0 usec, configured 2000000 usec
>     Flags: DECIBEL_VOLUME LATENCY 
>     Properties:
>         device.description = "Monitor of USB AUDIO  CODEC Analog Stereo"
>         device.class = "monitor"
>         alsa.card = "1"
>         alsa.card_name = "USB AUDIO  CODEC"
>         alsa.long_card_name = "BurrBrown from Texas Instruments USB AUDIO  
> CODEC at usb-musb-hdrc.1.auto-1.6,"
>         alsa.driver_name = "snd_usb_audio"
>         device.bus_path = "platform-musb-hdrc.1.auto-usb-0:1.6:1.0"
>         sysfs.path = 
> "/devices/ocp.2/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.6/1-1.6:1.0/sound/card1"
>         udev.id = 
> "usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC"
>         device.bus = "usb"
>         device.vendor.id = "08bb"
>         device.vendor.name = "BurrBrown from Texas Instruments"
>         device.product.id = "29c0"
>         device.product.name = "USB AUDIO  CODEC"
>         device.serial = "BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC"
>         device.string = "1"
>         module-udev-detect.discovered = "1"
>         device.icon_name = "audio-card-usb"
>     Formats:
>         pcm
>
>
Here we have the actual source attached to the audio input.  It's also 
running, but if you look down at the latency field, you can see the first 
signs of the problem.  It's configured for 16666 usec of latency, but the 
calculated latency is MUCH higher!  Still, it's not clear from this entry 
why it's so high.
 

> Source #1
>     State: RUNNING
>     Name: 
> alsa_input.usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC.analog-stereo
>     Description: USB AUDIO  CODEC Analog Stereo
>     Driver: module-alsa-card.c
>     Sample Specification: s16le 2ch 44100Hz
>     Channel Map: front-left,front-right
>     Owner Module: 4
>     Mute: no
>     Volume: 0: 100% 1: 100%
>             0: 0.00 dB 1: 0.00 dB
>             balance 0.00
>     Base Volume: 100%
>                  0.00 dB
>     Monitor of Sink: n/a
>     Latency: 946634983247447 usec, configured 16666 usec
>     Flags: HARDWARE DECIBEL_VOLUME LATENCY 
>     Properties:
>         alsa.resolution_bits = "16"
>         device.api = "alsa"
>         device.class = "sound"
>         alsa.class = "generic"
>         alsa.subclass = "generic-mix"
>         alsa.name = "USB Audio"
>         alsa.id = "USB Audio"
>         alsa.subdevice = "0"
>         alsa.subdevice_name = "subdevice #0"
>         alsa.device = "0"
>         alsa.card = "1"
>         alsa.card_name = "USB AUDIO  CODEC"
>         alsa.long_card_name = "BurrBrown from Texas Instruments USB AUDIO  
> CODEC at usb-musb-hdrc.1.auto-1.6,"
>         alsa.driver_name = "snd_usb_audio"
>         device.bus_path = "platform-musb-hdrc.1.auto-usb-0:1.6:1.0"
>         sysfs.path = 
> "/devices/ocp.2/47400000.usb/musb-hdrc.1.auto/usb1/1-1/1-1.6/1-1.6:1.0/sound/card1"
>         udev.id = 
> "usb-BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC-00-CODEC"
>         device.bus = "usb"
>         device.vendor.id = "08bb"
>         device.vendor.name = "BurrBrown from Texas Instruments"
>         device.product.id = "29c0"
>         device.product.name = "USB AUDIO  CODEC"
>         device.serial = "BurrBrown_from_Texas_Instruments_USB_AUDIO_CODEC"
>         device.string = "hw:1"
>         device.buffering.buffer_size = "352800"
>         device.buffering.fragment_size = "176400"
>         device.access_mode = "mmap+timer"
>         device.profile.name = "analog-stereo"
>         device.profile.description = "Analog Stereo"
>         device.description = "USB AUDIO  CODEC Analog Stereo"
>         alsa.mixer_name = "USB Mixer"
>         alsa.components = "USB08bb:29c0"
>         module-udev-detect.discovered = "1"
>         device.icon_name = "audio-card-usb"
>     Formats:
>         pcm
>
>
Here we've got the loopback module, which is what is connecting the source 
and sink.  Everything looks fine until we get to the Buffer Latency, which 
is pretty high: 1992569 usec.  That's nearly 2 seconds for samples to get 
through the buffer!  Clearly the problem is here.  And two lines down, we 
see the reason: The resample method is still speex-float-3, and the 
implementation must be using soft floating point emulation somewhere.
 

> Sink Input #0
>     Driver: module-loopback.c
>     Owner Module: 19
>     Client: n/a
>     Sink: 0
>     Sample Specification: s16le 2ch 44143Hz
>     Channel Map: front-left,front-right
>     Format: pcm, format.sample_format = "\"s16le\""  format.rate = 
> "44100"  format.channels = "2"  format.channel_map = 
> "\"front-left,front-right\""
>     Mute: no
>     Volume: 0:  54% 1:  54%
>             0: -16.00 dB 1: -16.00 dB
>             balance 0.00
>     Buffer Latency: 1992569 usec
>     Sink Latency: 0 usec
>     Resample method: speex-float-3
>     Properties:
>         media.name = "Loopback from USB AUDIO  CODEC Analog Stereo"
>         media.role = "abstract"
>         media.icon_name = "audio-card-usb"
>         module-stream-restore.id = "sink-input-by-media-role:abstract"
>
>
This is the source end of the loopback; no issues here.  Apparently all the 
work gets done in the sink end of the loopback.
 

> Source Output #0
>     Driver: module-loopback.c
>     Owner Module: 19
>     Client: n/a
>     Source: 1
>     Sample Specification: s16le 2ch 44100Hz
>     Channel Map: front-left,front-right
>     Format: pcm, format.sample_format = "\"s16le\""  format.rate = 
> "44100"  format.channels = "2"  format.channel_map = 
> "\"front-left,front-right\""
>     Mute: no
>     Volume: 0: 100% 1: 100%
>             0: 0.00 dB 1: 0.00 dB
>             balance 0.00
>     Buffer Latency: 0 usec
>     Source Latency: 0 usec
>     Resample method: n/a
>     Properties:
>         media.name = "Loopback to USB AUDIO  CODEC Analog Stereo"
>         media.role = "abstract"
>         media.icon_name = "audio-card-usb"
>         module-stream-restore.id = "source-output-by-media-role:abstract"
>

So, if you look at the config file you posted, you'll see semicolons in 
front of all the config directives.  I know it's screwy, but that's 
actually one of the comment characters for pulseaudio's config syntax.  You 
changed the right line, but it was a comment before and it's still a 
comment!  Delete the semicolon at the front of that line and you should be 
in much better shape.

>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to