Searched hist:"1 dc669fe" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/usb/ |
H A D | clock.c | 1dc669fe Wed Apr 03 16:18:58 CDT 2013 Eldad Zack <eldad@fogrefinery.com> ALSA: usb-audio: UAC2: support read-only freq control
Some clocks might be read-only, e.g., external clocks (see also UAC2 4.7.2.1).
In this case, setting the sample frequency will always fail (even if the rate is equal to the current clock rate), therefore do not write, but read the value and compare to the requested rate. If the clock is read only, avoid reading it twice.
If it doesn't match, return -ENXIO since the clock is invalid for this configuration.
Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> 1dc669fe Wed Apr 03 16:18:58 CDT 2013 Eldad Zack <eldad@fogrefinery.com> ALSA: usb-audio: UAC2: support read-only freq control Some clocks might be read-only, e.g., external clocks (see also UAC2 4.7.2.1). In this case, setting the sample frequency will always fail (even if the rate is equal to the current clock rate), therefore do not write, but read the value and compare to the requested rate. If the clock is read only, avoid reading it twice. If it doesn't match, return -ENXIO since the clock is invalid for this configuration. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|