[alsa-devel] USB Audio Interface / Denon MC7000 and MC8000 controller

Alexander Tsoy alexander at tsoy.me
Fri Feb 7 20:11:23 CET 2020


В Пт, 07/02/2020 в 19:49 +0100, Tobias пишет:
> Dear Alexander - unfortunately the patch doesn't want to be applied.

It seems I copied it from less with different tab width. The patch
below should be OK.

> 
> $ patch -p1 < ../denon-4.patch
> patching file sound/usb/clock.c
> Hunk #1 FAILED at 187.
> 1 out of 1 hunk FAILED -- saving rejects to file
> sound/usb/clock.c.rej
> 
> I guess it was not your intention only adding one line to 
> /sound/usb/clock.c. so what am I missing here?

No, it was intentional. This patch just adds printing of some info I
need in the following format:

uac_clock_source_is_valid(): err: X ; data: X


diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index 018b1ecb5404..65ee5c24c5d1 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -187,6 +187,8 @@ static bool uac_clock_source_is_valid(struct snd_usb_audio *chip,
 			      snd_usb_ctrl_intf(chip) | (source_id << 8),
 			      &data, sizeof(data));
 
+	dev_info(&dev->dev, "%s(): err: %d ; data: %d\n", __func__, err, data);
+
 	if (err < 0) {
 		dev_warn(&dev->dev,
 			 "%s(): cannot get clock validity for id %d\n",



More information about the Alsa-devel mailing list