We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f785f5e commit e98e7a8Copy full SHA for e98e7a8
sound/i2c/cs8427.c
@@ -561,10 +561,13 @@ int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active)
561
if (snd_BUG_ON(!cs8427))
562
return -ENXIO;
563
chip = cs8427->private_data;
564
- if (active)
+ if (active) {
565
memcpy(chip->playback.pcm_status,
566
chip->playback.def_status, 24);
567
- chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
568
+ } else {
569
+ chip->playback.pcm_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
570
+ }
571
snd_ctl_notify(cs8427->bus->card,
572
SNDRV_CTL_EVENT_MASK_VALUE | SNDRV_CTL_EVENT_MASK_INFO,
573
&chip->playback.pcm_ctl->id);
0 commit comments