Hi,
On plugging in a set of USB speakers I have PA thinks the volume is 100%
but alsa believes otherwise.
Setting the volume in pavucontrol to 100% (i.e. same as what it is just
now - just move the slider a touch) then the alsa volume is instantly
set to the right values.
Please find attached before and after pacmd list-sinks (edited) and
amixer -c1 dumps.
All on git master as of right now (just pushed 12 new patches)
e2df84497629d61706c455ed2829db0bebb7e5a5.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
Welcome to PulseAudio! Use "help" for usage information.
index: 1
name:
<alsa_output.usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
FLAT_VOLUME DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9549
volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 28.18 ms
max request: 3 KiB
max rewind: 344 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 3
configured latency: 20.00 ms; range is 0.50 .. 2000.00 ms
card: 1
<alsa_card.usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default>
module: 25
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 = "YAMAHA YST-M45D USB Speaker"
alsa.long_card_name = "YAMAHA YAMAHA YST-M45D USB Speaker at
usb-0000:00:1d.7-7.1, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:1d.7-usb-0:7.1:1.0"
sysfs.path =
"/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.1/1-7.1:1.0/sound/card1"
udev.id = "usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default"
device.bus = "usb"
device.vendor.id = "0499"
device.vendor.name = "Yamaha Corp."
device.product.id = "3003"
device.product.name = "YST-M45D USB Speaker"
device.serial = "YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em"
device.form_factor = "speaker"
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 = "YST-M45D USB Speaker Analog Stereo"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB0499:3003"
module-udev-detect.discovered = "1"
device.icon_name = "audio-speakers-usb"
>>>
[colin@jimmy ~]$ amixer -c1
Simple mixer control 'Bass',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 12
Mono: 0 [0%]
Simple mixer control 'Treble',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 61
Mono:
Front Left: Playback 29 [48%] [-32.00dB] [on]
Front Right: Playback 29 [48%] [-32.00dB] [on]
[colin@jimmy ~]$
Set the volume in pavcontrol.....
[colin@jimmy ~]$ pacmd list-sinks
index: 1
name:
<alsa_output.usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
FLAT_VOLUME DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9549
volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
balance 0.00
base volume: 100%
0.00 dB
volume steps: 65537
muted: no
current latency: 24.18 ms
max request: 3 KiB
max rewind: 344 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 3
configured latency: 20.00 ms; range is 0.50 .. 2000.00 ms
card: 1
<alsa_card.usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default>
module: 25
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 = "YAMAHA YST-M45D USB Speaker"
alsa.long_card_name = "YAMAHA YAMAHA YST-M45D USB Speaker at
usb-0000:00:1d.7-7.1, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:1d.7-usb-0:7.1:1.0"
sysfs.path =
"/devices/pci0000:00/0000:00:1d.7/usb1/1-7/1-7.1/1-7.1:1.0/sound/card1"
udev.id = "usb-YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em-00-default"
device.bus = "usb"
device.vendor.id = "0499"
device.vendor.name = "Yamaha Corp."
device.product.id = "3003"
device.product.name = "YST-M45D USB Speaker"
device.serial = "YAMAHA_YAMAHA_YST-M45D_USB_Speaker_Ser_00_em"
device.form_factor = "speaker"
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 = "YST-M45D USB Speaker Analog Stereo"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB0499:3003"
module-udev-detect.discovered = "1"
device.icon_name = "audio-speakers-usb"
>>>
[colin@jimmy ~]$ amixer -c1
Simple mixer control 'Bass',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 12
Mono: 0 [0%]
Simple mixer control 'Treble',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 61
Mono:
Front Left: Playback 61 [100%] [0.00dB] [on]
Front Right: Playback 61 [100%] [0.00dB] [on]
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss