Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263160
b: refs/heads/master
c: 38b6519
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Aug 19, 2011
1 parent c5cab14 commit a0b6aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fe45aeaf2033c9eaa5028ed5ba68b466008876f
refs/heads/master: 38b65190c6ab0be8ce7cff69e734ca5b5e7fa309
3 changes: 2 additions & 1 deletion trunk/sound/usb/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static inline void check_mapped_dB(const struct usbmix_name_map *p,
if (p && p->dB) {
cval->dBmin = p->dB->min;
cval->dBmax = p->dB->max;
cval->initialized = 1;
}
}

Expand Down Expand Up @@ -1092,7 +1093,7 @@ static void build_feature_ctl(struct mixer_build *state, void *raw_desc,
" Switch" : " Volume");
if (control == UAC_FU_VOLUME) {
check_mapped_dB(map, cval);
if (cval->dBmin < cval->dBmax) {
if (cval->dBmin < cval->dBmax || !cval->initialized) {
kctl->tlv.c = mixer_vol_tlv;
kctl->vd[0].access |=
SNDRV_CTL_ELEM_ACCESS_TLV_READ |
Expand Down

0 comments on commit a0b6aa8

Please sign in to comment.