Colin Guthrie wrote: > 'Twas brillig, and Colin Guthrie at 09/06/09 09:08 did gyre and gimble: >> So I've pushed the branch "0.9.15-branch" to my own git clone: >> http://colin.guthr.ie/git/pulseaudio/log/?h=0.9.15-branch > > Lennart Poettering (28): > alsa: allow configuration of fallback device strings in profiles > util: if NULL is passed to pa_path_get_filename() just hand it > through > alsa: don't hit an assert when invalid module arguments are passed > alsa: fix wording, we are speaking of card profiles, not output > profiles > alsa: initialize buffer size before number of periods to improve > compat with some backends Okay, this last commit (4bffc7849f7898fa85dd6ac8e735db86b57814b3) broke a Creative SB card (snd-ca0106) when PA is launched with tsched=0. pavucontrol shows a null output sink instead of a real SoundBlaster one. Reverting the commit fixes the issue. The problem can be seen on PA -vvv output. .. .. D: alsa-util.c: Managed to open surround51:0 I: alsa-util.c: Device surround51:0 doesn't support 44100 Hz, changed to 48000 Hz. I: module-alsa-card.c: Found profile 'Input Analog Surround 5.1' D: alsa-util.c: Checking for capture on iec958-ac3-surround-51 (a52) D: alsa-util.c: Trying a52:0 with SND_PCM_NO_AUTO_FORMAT ... I: (alsa-lib)pcm.c: Unknown PCM a52:0 I: alsa-util.c: Error opening PCM device a52:0: No such file or directory D: alsa-util.c: Checking for capture on analog-surround-71 (surround71) D: alsa-util.c: Trying surround71:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open surround71:0 I: alsa-util.c: Device surround71:0 doesn't support 44100 Hz, changed to 48000 Hz. I: module-alsa-card.c: Found profile 'Input Analog Surround 7.1' I: card.c: Created 0 "alsa_card.pci_1102_7_sound_card_0" D: alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open front:0 (Things are starting to differ here, first the good log): I: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz. I: alsa-sink.c: Successfully opened device front:0. I: alsa-sink.c: Selected configuration 'Analog Stereo' (analog-stereo). I: alsa-sink.c: Successfully enabled mmap() mode. I: (alsa-lib)control.c: Invalid CTL front:0 I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory I: alsa-util.c: Successfully attached to mixer 'hw:0' I: alsa-util.c: Cannot find mixer control "Master" or mixer control is no combination of switch/volume. I: alsa-util.c: Cannot find fallback mixer control "PCM" or mixer control is no combination of switch/volume. I: sink.c: Created sink 0 "alsa_output.pci_1102_7_sound_card_0" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right I: sink.c: alsa.resolution_bits = "16" I: sink.c: device.api = "alsa" I: sink.c: device.class = "sound" I: sink.c: alsa.class = "generic" I: sink.c: alsa.subclass = "generic-mix" I: sink.c: alsa.name = "CA0106" I: sink.c: alsa.id = "ca0106" I: sink.c: alsa.subdevice = "0" I: sink.c: alsa.subdevice_name = "subdevice #0" I: sink.c: alsa.device = "0" I: sink.c: alsa.card = "0" I: sink.c: alsa.card_name = "CA0106" I: sink.c: alsa.long_card_name = "Audigy SE [SB0570] at 0xd000 irq 20" I: sink.c: alsa.driver_name = "snd_ca0106" I: sink.c: device.bus = "pci" I: sink.c: device.vendor.id = "1102" I: sink.c: device.vendor.name = "Creative Labs" I: sink.c: device.product.id = "0007" I: sink.c: device.product.name = "CA0106 Soundblaster" I: sink.c: device.bus_path = "/devices/pci0000:00/0000:00:1e.0/0000:05:00.0/sound/card0" I: sink.c: hal.udi = "/org/freedesktop/Hal/devices/pci_1102_7_sound_card_0" I: sink.c: hal.product = "Audigy SE [SB0570] Sound Card" I: sink.c: hal.card_id = "Audigy SE [SB0570]" I: sink.c: device.string = "front:0" I: sink.c: device.buffering.buffer_size = "19200" I: sink.c: device.buffering.fragment_size = "4800" I: sink.c: device.access_mode = "mmap" I: sink.c: device.profile.name = "analog-stereo" I: sink.c: device.profile.description = "Analog Stereo" I: sink.c: device.description = "CA0106 Soundblaster" I: sink.c: device.icon_name = "audio-card-pci (Now the same part in the bad one): I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument D: alsa-util.c: Trying front:0 without SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open front:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument D: alsa-util.c: Trying plug:front:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open plug:front:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument I: alsa-util.c: snd_pcm_hw_params_set_periods_near() failed: Invalid argument D: alsa-util.c: Trying plug:front:0 without SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open plug:front:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument I: alsa-util.c: snd_pcm_hw_params_set_periods_near() failed: Invalid argument I: alsa-util.c: Failed to set hardware parameters on plug:front:0: Invalid argument D: alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open hw:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument D: alsa-util.c: Trying hw:0 without SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open hw:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument D: alsa-util.c: Trying plug:hw:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open plug:hw:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument I: alsa-util.c: snd_pcm_hw_params_set_periods_near() failed: Invalid argument D: alsa-util.c: Trying plug:hw:0 without SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open plug:hw:0 I: alsa-util.c: snd_pcm_hw_params_set_buffer_size_near() failed: Invalid argument I: alsa-util.c: snd_pcm_hw_params_set_periods_near() failed: Invalid argument I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument D: alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Managed to open front:0 I: alsa-util.c: Device front:0 doesn't support 44100 Hz, changed to 48000 Hz. I: alsa-source.c: Successfully opened device front:0. I: alsa-source.c: Selected configuration 'Analog Stereo' (analog-stereo). I: alsa-source.c: Successfully enabled mmap() mode. I: (alsa-lib)control.c: Invalid CTL front:0 I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory I: alsa-util.c: Successfully attached to mixer 'hw:0' I: alsa-util.c: Cannot find mixer control "Capture" or mixer control is no combination of switch/volume. I: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume. I: alsa-util.c: Using mixer control "Mic".