Merge branch 'for-linus' into for-next
Back-merge 4.17-rc3 fixes for further development. This will bump the base to 4.17-rc2, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Este cometimento está contido em:
@@ -1776,7 +1776,8 @@ static int parse_audio_feature_unit(struct mixer_build *state, int unitid,
|
||||
build_feature_ctl(state, _ftr, ch_bits, control,
|
||||
&iterm, unitid, ch_read_only);
|
||||
if (uac_v2v3_control_is_readable(master_bits, control))
|
||||
build_feature_ctl(state, _ftr, 0, i, &iterm, unitid,
|
||||
build_feature_ctl(state, _ftr, 0, control,
|
||||
&iterm, unitid,
|
||||
!uac_v2v3_control_is_writeable(master_bits,
|
||||
control));
|
||||
}
|
||||
@@ -1859,7 +1860,7 @@ static int parse_audio_input_terminal(struct mixer_build *state, int unitid,
|
||||
check_input_term(state, d->bTerminalID, &iterm);
|
||||
if (state->mixer->protocol == UAC_VERSION_2) {
|
||||
/* Check for jack detection. */
|
||||
if (uac_v2v3_control_is_readable(d->bmControls,
|
||||
if (uac_v2v3_control_is_readable(le16_to_cpu(d->bmControls),
|
||||
UAC2_TE_CONNECTOR)) {
|
||||
build_connector_control(state, &iterm, true);
|
||||
}
|
||||
@@ -2561,7 +2562,7 @@ static int snd_usb_mixer_controls(struct usb_mixer_interface *mixer)
|
||||
if (err < 0 && err != -EINVAL)
|
||||
return err;
|
||||
|
||||
if (uac_v2v3_control_is_readable(desc->bmControls,
|
||||
if (uac_v2v3_control_is_readable(le16_to_cpu(desc->bmControls),
|
||||
UAC2_TE_CONNECTOR)) {
|
||||
build_connector_control(&state, &state.oterm,
|
||||
false);
|
||||
|
@@ -353,8 +353,11 @@ static struct usbmix_name_map bose_companion5_map[] = {
|
||||
/*
|
||||
* Dell usb dock with ALC4020 codec had a firmware problem where it got
|
||||
* screwed up when zero volume is passed; just skip it as a workaround
|
||||
*
|
||||
* Also the extension unit gives an access error, so skip it as well.
|
||||
*/
|
||||
static const struct usbmix_name_map dell_alc4020_map[] = {
|
||||
{ 4, NULL }, /* extension unit */
|
||||
{ 16, NULL },
|
||||
{ 19, NULL },
|
||||
{ 0 }
|
||||
|
@@ -349,7 +349,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(struct uac3_cluster_header_descriptor
|
||||
* TODO: this conversion is not complete, update it
|
||||
* after adding UAC3 values to asound.h
|
||||
*/
|
||||
switch (is->bChPurpose) {
|
||||
switch (is->bChRelationship) {
|
||||
case UAC3_CH_MONO:
|
||||
map = SNDRV_CHMAP_MONO;
|
||||
break;
|
||||
|
@@ -139,7 +139,7 @@ static void usb_stream_hwdep_vm_open(struct vm_area_struct *area)
|
||||
snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count));
|
||||
}
|
||||
|
||||
static int usb_stream_hwdep_vm_fault(struct vm_fault *vmf)
|
||||
static vm_fault_t usb_stream_hwdep_vm_fault(struct vm_fault *vmf)
|
||||
{
|
||||
unsigned long offset;
|
||||
struct page *page;
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#include "usbusx2y.h"
|
||||
#include "usX2Yhwdep.h"
|
||||
|
||||
static int snd_us428ctls_vm_fault(struct vm_fault *vmf)
|
||||
static vm_fault_t snd_us428ctls_vm_fault(struct vm_fault *vmf)
|
||||
{
|
||||
unsigned long offset;
|
||||
struct page * page;
|
||||
|
@@ -652,7 +652,7 @@ static void snd_usX2Y_hwdep_pcm_vm_close(struct vm_area_struct *area)
|
||||
}
|
||||
|
||||
|
||||
static int snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf)
|
||||
static vm_fault_t snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf)
|
||||
{
|
||||
unsigned long offset;
|
||||
void *vaddr;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador