summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorEldad Zack2013-04-03 23:18:58 +0200
committerTakashi Iwai2013-04-04 08:32:07 +0200
commit1dc669fed61a4ec4270a89e5fb3535802cc45668 (patch)
tree437f2fbd3f8b88f94ef862305cf837a04f23aef3 /sound/pci/hda/hda_intel.c
parentALSA: usb-audio: show err in set_sample_rate_v2 debug (diff)
downloadkernel-qcow2-linux-1dc669fed61a4ec4270a89e5fb3535802cc45668.tar.gz
kernel-qcow2-linux-1dc669fed61a4ec4270a89e5fb3535802cc45668.tar.xz
kernel-qcow2-linux-1dc669fed61a4ec4270a89e5fb3535802cc45668.zip
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>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
0 files changed, 0 insertions, 0 deletions