alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Question about snd_mixer_selem_get_playback_dB_range()
@ 2011-03-21 12:52 Tanu Kaskinen
  2011-03-21 13:43 ` Raymond Yau
  0 siblings, 1 reply; 8+ messages in thread
From: Tanu Kaskinen @ 2011-03-21 12:52 UTC (permalink / raw)
  To: alsa-devel

Hi,

I have added code to Pulseaudio that checks that the kernel driver
returns the same values if I call
snd_mixer_selem_get_playback_dB_range() or
snd_mixer_selem_ask_playback_vol_dB() with the lowest and highest volume
steps. The reason I do this is that I've seen a driver that didn't
return correct values from _dB_range() (it's fixed nowadays), so it's
possible that the same kind of bugs will be seen in the future too.
Doing this check at Pulseaudio startup helps to detect such bugs early.

My question is about the case where the lowest volume step is mute. Is
it a bug in the driver if _dB_range() returns something else than
SND_CTL_TLV_DB_GAIN_MUTE as the min gain in such case?

-- 
Tanu

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-11  2:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 12:52 Question about snd_mixer_selem_get_playback_dB_range() Tanu Kaskinen
2011-03-21 13:43 ` Raymond Yau
2011-03-21 13:55   ` Tanu Kaskinen
2011-03-21 14:38     ` Clemens Ladisch
2011-03-21 14:44       ` Tanu Kaskinen
2011-03-22  7:02         ` Peter Ujfalusi
2011-03-22  7:11           ` Clemens Ladisch
2011-04-11  2:19             ` Raymond Yau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).