Ok, adding:
Code:
--------------------
LOG_DEBUG("getting vol dB");
if ((err = snd_mixer_selem_get_playback_dB (elem,
SND_MIXER_SCHN_FRONT_LEFT, &nleft)) < 0) {
LOG_ERROR("error getting left volume: %s",
snd_strerror(err));
}
if ((err = snd_mixer_selem_get_playback_dB (elem,
SND_MIXER_SCHN_FRONT_RIGHT, &nright)) < 0) {
LOG_ERROR("error getting right volume: %s",
snd_strerror(err));
}
LOG_DEBUG("%s left: %3.1fdB -> %ld right: %3.1fdB -> %ld",
alsa.volume_mixer, ldB, nleft, rdB, nright);
--------------------
..at line 221, I get this in the log after using LMS to request min &
max volumes:
Code:
--------------------
/usr/local/bin/squeezelite -o hw:CARD=DragonFly -V PCM -d output=debug -f
/var/log/squeezelite/squeezelite.log -m 19:9e:74:71:e9:a9 -n
SQUEEZENAS_SqueezeLite -s 127.0.0.1
[14:37:36.051262] output_init_alsa:805 init output
[14:37:36.051463] output_init_alsa:829 requested alsa_buffer: 40 alsa_period:
4 format: any mmap: 1
[14:37:36.051506] output_init_common:342 outputbuf size: 3528000
[14:37:36.051674] output_init_common:366 idle timeout: 0
[14:37:36.056826] output_init_common:405 supported rates: 96000 88200 48000
44100
[14:37:36.064776] output_init_alsa:841 memory locked
[14:37:36.065190] output_thread:629 open output device: hw:CARD=DragonFly
[14:37:36.065211] output_init_alsa:864 set output sched fifo rt: 45
[14:37:36.066391] alsa_open:346 opening device at: 44100
[14:37:36.069457] alsa_open:397 opened device hw:CARD=DragonFly using format:
S24_3LE sample rate: 44100 mmap: 1
[14:37:36.069619] alsa_open:476 buffer: 40 period: 4 -> buffer size: 1764
period size: 441
[14:37:36.115258] set_volume:221 getting vol dB
[14:37:36.115352] set_volume:231 PCM left: -infdB -> 19 right: -infdB -> 19
[14:37:36.115390] set_volume:235 setting vol dB
[14:37:36.119605] set_volume:252 PCM left: -infdB -> 0 right: -infdB -> 0
[14:37:36.120138] set_volume:221 getting vol dB
[14:37:36.120203] set_volume:231 PCM left: -infdB -> 0 right: -infdB -> 0
[14:37:36.120238] set_volume:235 setting vol dB
[14:37:36.120270] set_volume:252 PCM left: -infdB -> 0 right: -infdB -> 0
[14:37:36.181583] _output_frames:59 start buffer frames: 20480
[14:37:36.181722] _output_frames:144 track start sample rate: 44100
replay_gain: 0
[14:38:00.377466] set_volume:221 getting vol dB
[14:38:00.377580] set_volume:231 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
[14:38:00.377626] set_volume:235 setting vol dB
[14:38:00.377658] set_volume:252 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
[14:38:00.378771] set_volume:221 getting vol dB
[14:38:00.378845] set_volume:231 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
[14:38:00.378885] set_volume:235 setting vol dB
[14:38:00.378917] set_volume:252 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
[14:38:12.320471] set_volume:221 getting vol dB
[14:38:12.320589] set_volume:231 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
[14:38:12.320635] set_volume:235 setting vol dB
[14:38:12.320684] set_volume:252 PCM left: 0.0dB -> 0 right: 0.0dB -> 0
--------------------
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix