diff options
author | Oldřich Jedlička <oldium.pro@seznam.cz> | 2009-08-18 15:24:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:19:13 -0400 |
commit | 7b54360293c9d72b54e462d146c9376287d2f71b (patch) | |
tree | 16309986cc3b89e26ae580638b099f05b3814f11 /drivers/media/video/saa7134 | |
parent | 89dec01b7e251697720ac3d6a5310d72359eba69 (diff) |
V4L/DVB (12490): Report only 32kHz for ALSA
There are several reasons:
- SAA7133/35 uses DDEP (DemDec Easy Programming mode), which works in 32kHz
only
- SAA7134 for TV mode uses DemDec mode (32kHz)
- Radio works in 32kHz only
- When recording 48kHz from Line1/Line2, switching of capture source to TV
means switching to 32kHz without any frequency translation
Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Acked-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-alsa.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/media/video/saa7134/saa7134-alsa.c b/drivers/media/video/saa7134/saa7134-alsa.c index 8b0b64a89874..7c0a3a3d61a6 100644 --- a/drivers/media/video/saa7134/saa7134-alsa.c +++ b/drivers/media/video/saa7134/saa7134-alsa.c | |||
@@ -435,6 +435,16 @@ snd_card_saa7134_capture_pointer(struct snd_pcm_substream * substream) | |||
435 | 435 | ||
436 | /* | 436 | /* |
437 | * ALSA hardware capabilities definition | 437 | * ALSA hardware capabilities definition |
438 | * | ||
439 | * Report only 32kHz for ALSA: | ||
440 | * | ||
441 | * - SAA7133/35 uses DDEP (DemDec Easy Programming mode), which works in 32kHz | ||
442 | * only | ||
443 | * - SAA7134 for TV mode uses DemDec mode (32kHz) | ||
444 | * - Radio works in 32kHz only | ||
445 | * - When recording 48kHz from Line1/Line2, switching of capture source to TV | ||
446 | * means | ||
447 | * switching to 32kHz without any frequency translation | ||
438 | */ | 448 | */ |
439 | 449 | ||
440 | static struct snd_pcm_hardware snd_card_saa7134_capture = | 450 | static struct snd_pcm_hardware snd_card_saa7134_capture = |
@@ -448,9 +458,9 @@ static struct snd_pcm_hardware snd_card_saa7134_capture = | |||
448 | SNDRV_PCM_FMTBIT_U8 | \ | 458 | SNDRV_PCM_FMTBIT_U8 | \ |
449 | SNDRV_PCM_FMTBIT_U16_LE | \ | 459 | SNDRV_PCM_FMTBIT_U16_LE | \ |
450 | SNDRV_PCM_FMTBIT_U16_BE, | 460 | SNDRV_PCM_FMTBIT_U16_BE, |
451 | .rates = SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000, | 461 | .rates = SNDRV_PCM_RATE_32000, |
452 | .rate_min = 32000, | 462 | .rate_min = 32000, |
453 | .rate_max = 48000, | 463 | .rate_max = 32000, |
454 | .channels_min = 1, | 464 | .channels_min = 1, |
455 | .channels_max = 2, | 465 | .channels_max = 2, |
456 | .buffer_bytes_max = (256*1024), | 466 | .buffer_bytes_max = (256*1024), |