Skip to content

Commit

Permalink
Merge branch 'fix/hda' into topic/misc
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwai committed Jun 17, 2011
2 parents f4b1e98 + ad24094 commit 3409fcd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions sound/firewire/isight.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ static void isight_packet(struct fw_iso_context *context, u32 cycle,
isight->packet_index = -1;
return;
}
fw_iso_context_queue_flush(isight->context);

if (++index >= QUEUE_LENGTH)
index = 0;
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_beep.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
{
return 0;
}
void snd_hda_detach_beep_device(struct hda_codec *codec)
static inline void snd_hda_detach_beep_device(struct hda_codec *codec)
{
}
#endif
Expand Down
11 changes: 7 additions & 4 deletions sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,13 @@ static int via_hp_build(struct hda_codec *codec)
knew->subdevice = HDA_SUBDEV_NID_FLAG | nid;
knew->private_value = nid;

knew = via_clone_control(spec, &via_hp_mixer[1]);
if (knew == NULL)
return -ENOMEM;
knew->subdevice = side_mute_channel(spec);
nid = side_mute_channel(spec);
if (nid) {
knew = via_clone_control(spec, &via_hp_mixer[1]);
if (knew == NULL)
return -ENOMEM;
knew->subdevice = nid;
}

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion sound/pci/lola/lola.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static void lola_reset_setups(struct lola *chip)
lola_setup_all_analog_gains(chip, PLAY, false); /* output, update */
}

static int lola_parse_tree(struct lola *chip)
static int __devinit lola_parse_tree(struct lola *chip)
{
unsigned int val;
int nid, err;
Expand Down
4 changes: 2 additions & 2 deletions sound/usb/6fire/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub)
alsa_rt->hw = pcm_hw;

if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
if (rt->rate >= 0)
if (rt->rate < ARRAY_SIZE(rates))
alsa_rt->hw.rates = rates_alsaid[rt->rate];
alsa_rt->hw.channels_max = OUT_N_CHANNELS;
sub = &rt->playback;
} else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) {
if (rt->rate >= 0)
if (rt->rate < ARRAY_SIZE(rates))
alsa_rt->hw.rates = rates_alsaid[rt->rate];
alsa_rt->hw.channels_max = IN_N_CHANNELS;
sub = &rt->capture;
Expand Down

0 comments on commit 3409fcd

Please sign in to comment.