Commit 8f2ac0c2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Jaroslav Kysela <perex@suse.cz>

I2C cs8427
Don't reset chip when PCM rate was not changed
parent 2fd33bc1
...@@ -553,6 +553,7 @@ int snd_cs8427_iec958_pcm(snd_i2c_device_t *cs8427, unsigned int rate) ...@@ -553,6 +553,7 @@ int snd_cs8427_iec958_pcm(snd_i2c_device_t *cs8427, unsigned int rate)
SNDRV_CTL_EVENT_MASK_VALUE, SNDRV_CTL_EVENT_MASK_VALUE,
&chip->playback.pcm_ctl->id); &chip->playback.pcm_ctl->id);
reset = chip->rate != rate; reset = chip->rate != rate;
chip->rate = rate;
snd_i2c_unlock(cs8427->bus); snd_i2c_unlock(cs8427->bus);
if (reset) if (reset)
snd_cs8427_reset(cs8427); snd_cs8427_reset(cs8427);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment