Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284123
b: refs/heads/master
c: c1d70dd
h: refs/heads/master
i:
  284121: 913491c
  284119: ea37c1f
v: v3
  • Loading branch information
Eliot Blennerhassett authored and Takashi Iwai committed Dec 22, 2011
1 parent 70df32f commit ea99b10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8637bc94f6a36c138229ac1ea09faca343f48bd7
refs/heads/master: c1d70dd9c44d7554b97f38b5ce8001d3cbe10f61
20 changes: 8 additions & 12 deletions trunk/sound/pci/asihpi/asihpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,14 +961,12 @@ static void snd_card_asihpi_playback_format(struct snd_card_asihpi *asihpi,

for (format = HPI_FORMAT_PCM8_UNSIGNED;
format <= HPI_FORMAT_PCM24_SIGNED; format++) {
err = hpi_format_create(&hpi_format,
2, format, sample_rate, 128000, 0);
err = hpi_format_create(&hpi_format, asihpi->out_max_chans,
format, sample_rate, 128000, 0);
if (!err)
err = hpi_outstream_query_format(h_stream,
&hpi_format);
err = hpi_outstream_query_format(h_stream, &hpi_format);
if (!err && (hpi_to_alsa_formats[format] != -1))
pcmhw->formats |=
(1ULL << hpi_to_alsa_formats[format]);
pcmhw->formats |= (1ULL << hpi_to_alsa_formats[format]);
}
}

Expand Down Expand Up @@ -1141,14 +1139,12 @@ static void snd_card_asihpi_capture_format(struct snd_card_asihpi *asihpi,
for (format = HPI_FORMAT_PCM8_UNSIGNED;
format <= HPI_FORMAT_PCM24_SIGNED; format++) {

err = hpi_format_create(&hpi_format, 2, format,
sample_rate, 128000, 0);
err = hpi_format_create(&hpi_format, asihpi->in_max_chans,
format, sample_rate, 128000, 0);
if (!err)
err = hpi_instream_query_format(h_stream,
&hpi_format);
err = hpi_instream_query_format(h_stream, &hpi_format);
if (!err)
pcmhw->formats |=
(1ULL << hpi_to_alsa_formats[format]);
pcmhw->formats |= (1ULL << hpi_to_alsa_formats[format]);
}
}

Expand Down

0 comments on commit ea99b10

Please sign in to comment.