[alsa-devel] [WIP PATCH] Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20.
Tobias Hoffmann
smilingthax at googlemail.com
Mon Oct 13 14:02:12 CEST 2014
On 13/10/14 13:38, Clemens Ladisch wrote:
> Tobias Hoffmann wrote:
>> On 07/10/14 17:16, David Henningsson wrote:
>>> + err = set_ctl_urb2(mixer->chip, UAC2_CS_CUR, 0x0100, 0x29, "\x80\xbb\x00\x00", 4);
>> There have been two reports of users that had to replace the set_ctl_urb2 line with:
>>
>> char buffer[4] = { '\x80', '\xbb', '\x00', '\x00' };
>> err = set_ctl_urb2(mixer->chip, UAC2_CS_CUR, 0x0100, 0x29, buffer, 4);
>>
>> otherwise they would get a kernel oops, e.g.:
> [...]
>
> This crash is inside memcpy(), where this memory type cannot make any
> difference.
>
> Please show the entire oops.
The first reporter (18i8) only sent me a patch with exactly that change,
claiming:
> It also oopses my kernel because of some constness issues.
Here are two reports (6i6) with oops trace:
https://github.com/smilingthax/alsa-driver_scarlett/issues/7
https://github.com/smilingthax/alsa-driver_scarlett/issues/2#issuecomment-54364354
Tobias
More information about the Alsa-devel
mailing list